[FFmpeg-user] failed to avoid negative pts

Cecil Westerhof Cecil at decebal.nl
Tue Sep 21 20:11:03 EEST 2021


I tried to cut the first part of an .mkv file with:
    ffmpeg -ss 119 -i input.mkv -codec copy output.mkv 

This gives several times something like the following error:
    [matroska @ 0x561acc0ca700] failed to avoid negative pts -79 in stream 1.
    Try -avoid_negative_ts 1 as a possible workaround.

But as far as I can see the output.mkv is OK. What is happening here?
Is it important that I run it again with:
    -avoid_negative_ts 1

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


More information about the ffmpeg-user mailing list