ffmpeg – How to combine overlapping clips from single video?
I am trying to use ffmpeg to take a few clips from a video and combine them together, similar to this:
Cut multiple parts of a video with ffmpeg
Except that the clips come from timestamps that overlap. My command looks like this:
"C:\Program Files\ffmpeg\bin\ffmpeg.exe" -y -i "C:\temp\5min.mp4" ^
-vf "select="between(t,4,6.5)+between(t,5,6)", setpts=N/FRAME_RATE/TB" ^
-af "aselect="between(t,4,6.5)+between(t,5,6)", asetpts=N/SR/TB" "C:\temp\5min-clip.mp4"
The video that I get only contains the first clip. I am on the latest version of ffmpeg. How do I accomplish this?
Read more here: Source link
