[FFmpeg-user] Multiple parts of a video

Cecil Westerhof Cecil at decebal.nl
Tue May 31 19:43:30 EEST 2022


Michael Koch <astroelectronic at t-online.de> writes:

> I have a short example in chapter 2.57 of my book:
> http://www.astro-electronic.de/FFmpeg_Book.pdf

Just to make sure I understand it, I should do something like:
    ffmpeg -ss %S1% -t %L1% -i %I1%     \
           -ss %S2% -t %L2% -i %I1%     \
           -ss %S3% -t %L3% -i %I1%     \
           -lavfi "concat=n=3:v=1:a=0"  \
           -an %OUT%

But if I understand it well, this works on the iframes, would it not
be better (but longer) to use:
    ffmpeg -i %I1% -ss %S1% -t %L1%     \
           -i %I1% -ss %S2% -t %L2%     \
           -i %I1% -ss %S3% -t %L3%     \
           -lavfi "concat=n=3:v=1:a=0"  \
           -an %OUT%

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


More information about the ffmpeg-user mailing list