[FFmpeg-user] cutting mp4 with ffmpeg

Mark Filipak markfilipak.imdb at gmail.com
Sat Jan 13 21:38:44 EET 2024


On 13/01/2024 13.22, DEF wrote:

> As long as you are not encoding the video, ffmpeg will cut at the
> nearest iframes.

That appears to be not true. ffmpeg appears to cut at the next frame, not the nearest frame.

> If you are particular then you need to re-encode the video.

That is not true.

> avoid using "-to" in the place of "-t" like i explained.

I missed that. Would you care to explain it again. I'd really like to know.

> if you must not reencode and you want to use copyts then you must add
> the option
> "-avoid_negative_ts make_zero"  after your copyts.

I don't think that's a good idea.

--Mark.



More information about the ffmpeg-user mailing list