[FFmpeg-user] removing a segment/segments from video

Michael Koch astroelectronic at t-online.de
Thu Jun 11 15:21:27 EEST 2020


Am 11.06.2020 um 13:50 schrieb drramimagdi:
> i have 10min video i want to cut 4 mins to get 6min
> the output should be 00:00:00-00:02:00 and 00:06:00-00:10:00
> so i want to cut 00:02:00-00:06:00
> i can do it using  avidemux <http://avidemux.sourceforge.net/>
> can it done with ffmpeg?
> i don't want to trim then merge the splitted files, i want it in one command

something like this should work (I haven't tested it):

ffmpeg -i in.mp4 -i in.mp4 -filter_complex 
[0]trim=start=0:end=120[a];[1]trim=start=360[b];[a][b]concat=n=2:v=1:a=1 
out.mp4

Michael



More information about the ffmpeg-user mailing list