Mac: Easy stitching movie parts? In terminal maybe?

Index » 喫茶店 (Koohii Lounge)

  • 1
 
Mesqueeb Member
From: Japan Registered: 2008-10-14 Posts: 253 Website

So I need something to really easily stitch movie parts on mac.
iMovie is a bother with importing the clips and such,
i don't really mind if I loose quality, I just need it stitched for subs and stuff. ^^

Maybe something in terminal?

It's basicly like: ToyStory 1 part a, b and c. → one file.

Thanks!

-Mesqueeb

Asriel Member
From: 東京 Registered: 2008-02-26 Posts: 1343

I'm not exactly sure what kind of files you have, but if it's just like file.001 file.002 etc... usually you an just do

cat file.001 file.002 > output.avi

Or whatever. It might work for actual movie files too, I'm not sure. What it does is literally concatenates files to each other and puts it out into the output file. Doing it this way shouldn't lose quality at all, but it might not work if it's ToyStoryPart1.avi and ToyStoryPart2.avi. But it might -- Ive never tried;

Mesqueeb Member
From: Japan Registered: 2008-10-14 Posts: 253 Website

When I tried your code like this:

cat a.avi b.avi > c.avi

It seemed to work fine. After 10 minutes I opened the file which size was exactly the sum of the 2. It played alright for the first half in VLC, but then I noticed that the second half only started at the end of the VLC timeline, and then it got all weird and my mac literally crashed. xD

Had to hold power button. xP

There should be some sort of code to be able to use in terminal right?

Advertising (register and sign in to hide this)
JapanesePod101 Sponsor
 
Asriel Member
From: 東京 Registered: 2008-02-26 Posts: 1343

Right, it should have been the sum of the 2, because that's exactly what it is. I should have known that's exactly what would have happened (except I have no idea why it actually crashed...that didn't happen over here)

I don't know how comfortable you are with the terminal, but I'd read up here:
http://ffmpeg.org/faq.html#How-can-I-jo … files_003f

It's for ffmpeg, which is an awesome command line tool for doing pretty much anything audio/video related. I'd come up with things in more detail, but I don't know anything about the files you're trying to combine...

Mesqueeb Member
From: Japan Registered: 2008-10-14 Posts: 253 Website

Asriel wrote:

Right, it should have been the sum of the 2, because that's exactly what it is. I should have known that's exactly what would have happened (except I have no idea why it actually crashed...that didn't happen over here)

I don't know how comfortable you are with the terminal, but I'd read up here:
http://ffmpeg.org/faq.html#How-can-I-jo … files_003f

It's for ffmpeg, which is an awesome command line tool for doing pretty much anything audio/video related. I'd come up with things in more detail, but I don't know anything about the files you're trying to combine...

when trying:
ffmpeg -i input1.avi -same_quant intermediate1.mpg

I got: -bash: ffmpeg: command not found

kodorakun Member
From: Seattle Registered: 2008-10-15 Posts: 276 Website

Mesqueeb -- you have to install ffmpeg. "command not found" is pretty literal, i.e. ffmpeg does not exist on your machine. Read the manual on how to install ffmpeg.

Funny this thread came up as just the other day I was thinking that of the various movies I like to watch dubbed in Japanese a lot of them are "inefficient" in that they are ~2 hours with maybe 1 hour of quality dialogue and that I should just chop the films up to get dialogue-only content.

Mesqueeb Member
From: Japan Registered: 2008-10-14 Posts: 253 Website

Ok, attempt to install ffmpeg:
Searched google for: ffmpeg lion.
Came upon: http://www.ffmpegx.com/download.html?force4u
So I thought, this is perfect and easy!
However, after selecting the 3 items in the ffmpeg installer and pressing "install" I got:

##sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file

And even after googling I don't really find an answer... ><
However I think that there must be a mistake in the process that's actually trying to happen in the terminal while installing this. I get the message prompt, immediately after pressing install, so the first command it sends must miss a little accent somewhere.

Meaning I need to install mencoder, mplayer and mpeg2enc.intel manually somehow...
Could anyone assist me or tell me if my observation is correct?
Has anyone ever gotten ffmpeg on lion before, or is it impossible?

-Mesqueeb

truando Member
From: I wish it was Japan Registered: 2010-07-19 Posts: 363 Website

The easiest is Quick Time Player 7.

Used to be the regular App for movies before they introduced the new Quick Time Player. They then hid the QT Player 7 in the Utilities, but it's still there. With QT7 you could edit movies.

Open movie a, then movie b, cmd all in movie b, go to the end of movie a and copy paste movie b into it. Then continue with c etc. Save as new movie and voila - you have one movie file, which you then open with Quick Time Player (not QT 7)

Mesqueeb Member
From: Japan Registered: 2008-10-14 Posts: 253 Website

truando wrote:

The easiest is Quick Time Player 7.

Used to be the regular App for movies before they introduced the new Quick Time Player. They then hid the QT Player 7 in the Utilities, but it's still there. With QT7 you could edit movies.

Open movie a, then movie b, cmd all in movie b, go to the end of movie a and copy paste movie b into it. Then continue with c etc. Save as new movie and voila - you have one movie file, which you then open with Quick Time Player (not QT 7)

I tried installing it but seems that the stitching is a payed process. Only for pro users.
Thanks for the hint though!!
I got ffmpegx to work!

Last edited by Mesqueeb (2012 January 09, 1:48 pm)

Reply #10 - 2012 January 09, 1:16 pm
Mesqueeb Member
From: Japan Registered: 2008-10-14 Posts: 253 Website

I got ffmpegX to work on lion through help from the program's forum! xD
So now I can stitch all the chinese movies I got from funshion! Put subs on them from shooter, put them into subs2srs, and blam! We have an anki deck! ^^

Last edited by Mesqueeb (2012 January 09, 1:47 pm)

  • 1