[FFmpeg-user] Clipping off unwanted span of mp4 file

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun Mar 18 20:03:47 EET 2018


2018-03-18 18:31 GMT+01:00, JD <jd1008 at gmail.com>:

> I have an mp4 file that has unwanted span of video
> APPENDED to it.

> How do I delete that appended span?

FFmpeg is not a file editor and therefore is unable to
"delete" something from an existing file.

Fortunately, FFmpeg contains an mp4 demuxer and
an mp4 muxer so you can create a new file (with
possibly very different properties):

> The appended span starts at 2 hours and 30 minutes and 53 seconds.

$ ffmpeg -i input -c copy -t 2:30:53 out.mp4

Carl Eugen


More information about the ffmpeg-user mailing list