removing a segment/segments from video

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

removing a segment/segments from video

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



--
Sent from: http://www.ffmpeg-archive.org/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: removing a segment/segments from video

Michael Koch
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

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".