[Libav-user] Batch trimming commands
Simon Daniels
simondaniels23 at gmail.com
Mon Jan 30 19:15:01 CET 2012
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 <cehoyos at ag.or.at> wrote:
> Simon Daniels <simondaniels23 at ...> writes:
>
>> On Fri, Jan 6, 2012 at 4:47 AM, Carl Eugen Hoyos <cehoyos at ...> wrote:
>> > Simon Daniels <simondaniels23 at ...> 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
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
More information about the Libav-user
mailing list