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

JD jd1008 at gmail.com
Sun Mar 18 23:27:15 EET 2018



On 03/18/2018 12:03 PM, Carl Eugen Hoyos wrote:
> 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
Thanx Carl. Just what the doc ordered :)



More information about the ffmpeg-user mailing list