ffmpeg encoding error: , non monotonically increasing dts to muxer in stream (Bug #1743)
Description
I came across this ffmpeg error when encoding output as ogg/theora.
[ogg @ 01a44020] Application provided invalid, non monotonically increasing dts to muxer in stream 0: -614891469123651720 >= -614891469123651720
This error is preventing frames writing to file.
There is no such error when I transcode to ogg/theora with ffmpeg executable, so I look up the ffmpeg.c and noticed there is a condition check before calling av_rescale_q(). I copied the condition check to cap_ffmpeg_impl.hpp and it works-around the issue.
Yes - I re-configured ffmpeg-0.8.2 to enable vorbis and theora encoding. But I suspect this is a more general 'work-around' then ogg/theora specific issue.
Attached is a one-line-change patch.
Associated revisions
Fixed ffmpeg encoding error (ticket #1743)
Merge pull request #1743 from ilya-lavrenov:ocl_repeat
History
Updated by Andrey Morozov almost 13 years ago
- Target version set to 2.4.0
Updated by Alexander Reshetnikov almost 13 years ago
- Status changed from Open to Done
Updated by Andrey Kamaev over 12 years ago
- Category changed from highgui-images to highgui-video