[FFmpeg-user] concat & input trimming

Christian Johannesen chrisjohannesen at gmail.com
Wed Mar 30 00:30:22 CEST 2016

Christian Johannesen <chrisjohannesen at gmail.com> wrote:

> Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
>> Christian Johannesen <chrisjohannesen <at> gmail.com> writes:
>> > I am attempting to use the concat filter along with input
>> > trimming which i'm guessing might not be supported in this
>> > combination.
>> Can you confirm that seeking alone works in combination
>> with the concat filter and that only the input option -t
>> is not working as expected?
>> Carl Eugen
> I modified the command to remove the duration with -t. When the ffmpeg
> command starts, I observed the command line process stalled on frame 0 for
> almost 3 minutes. When the transcode completed, the output file was
> assembled out of order. The last input is used first (-ss 00:24:25.089)
> followed by the first input (-ss 00:00:10.052), then the second input (-ss
> 00:01:12.114), then third input (--ss 00:10:49.608) and then the fourth
> input (-ss 00:16:57.767).
> Chris
This looks to be my mistake. I had the -ss & -t in the wrong place, they
needed to be before the input.

ffmpeg -ss 00:00:10.052 -t 00:00:31.949 -i D:\stitchtest\full.mov -ss
00:01:12.114 -t 00:09:07.422 -i D:\stitchtest\full.mov -ss 00:10:49.608 -t
00:06:19.797 -i D:\stitchtest\full.mov -ss 00:16:57.767 -t 00:06:27.262 -i
 D:\stitchtest\full.mov -ss 00:24:25.089 -t 00:00:14.974 -i
D:\stitchtest\full.mov -filter_complex
-map "[v]" -map "[a]" -c:v libx264 -crf 19 -c:a aac -b:a 192k

Thanks for your assistance.

More information about the ffmpeg-user mailing list