Back

Mac: Easy stitching movie parts? In terminal maybe?

#1
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
Reply
#2
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;
Reply
#3
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?
Reply
May 16 - 30 : Pretty Big Deal: Save 31% on all Premium Subscriptions! - Sign up here
JapanesePod101
#4
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-joi...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...
Reply
#5
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-joi...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
Reply
#6
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.
Reply
#7
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:
Quote:##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
Reply
#8
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)
Reply
#9
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!
Edited: 2012-01-09, 2:48 pm
Reply
#10
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! ^^
Edited: 2012-01-09, 2:47 pm
Reply