Apologies for top-posting. I didn't see your latest response. It looks like your method works!! Thanks for the tip!
On Wed, Jan 11, 2012 at 5:55 PM, Carl Eugen Hoyos <[email protected]> wrote: > Simon Daniels <simondaniels23@...> writes: > >> On Fri, Jan 6, 2012 at 4:47 AM, Carl Eugen Hoyos <cehoyos@...> wrote: >> > Simon Daniels <simondaniels23@...> writes: >> > >> >> Oftentimes I need to trim several clips out of the same video. >> >> Unfortunately this means ffmpeg.exe must scan over the same sections >> >> of video over and over again to get to the clip's starting point. A >> >> more efficient way to handle this would be to batch trimming commands. >> >> Maybe something like: ffmpeg -i "original.avi" -ss1 0:10:00 -t1 0:00:30 >> > "output1.avi" -ss2 0:15:00 -t2 0:00:30 "output2.avi". >> > >> > Did you test your command line (without "1" and "2" except "output2.avi")? >> > It works fine here. > > In case this was not clear, I meant: > ffmpeg -i "original.avi" -ss 0:10:00 -t 0:00:30 > "output1.avi" -ss 0:15:00 -t 0:00:30 "output2.avi". > >> I tried that and it creates output files with 0 bytes. >> >> Here was my input: >> ./ffmpeg -i "/Users/user/Documents/original.MP4" -vcodec copy -acodec >> copy -ss 00:10:10 -t 00:00:30 -vcodec copy -acodec copy -ss 00:24:15 >> -t 00:00:30 "/Users/user/Documents/output1.MP4" >> "/Users/user/Documents/output2.MP4" > > That looks very different, and if you would not top-post (which is considered > rude here), you would have had a chance to see it yourself. > >> Here was the output: >> ffmpeg version 0.8.git-08d2cee, Copyright (c) 2000-2011 the FFmpeg developers > > This is old, please try current git head. > > Carl Eugen > > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
