ffmpeg encoding error: , non monotonically increasing dts to muxer in stream (Bug #1743)


Added by Frankie Fong almost 13 years ago. Updated over 12 years ago.


Status:Done Start date:2012-04-03
Priority:Normal Due date:
Assignee:Alexander Reshetnikov % Done:

0%

Category:highgui-video
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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.


cap_ffmpeg_impl_hpp.diff - The one-line-change. (550 Bytes) Frankie Fong, 2012-04-03 10:37 am


Associated revisions

Revision 264dff52
Added by Alexander Reshetnikov almost 13 years ago

Fixed ffmpeg encoding error (ticket #1743)

Revision 5c44afa4
Added by Roman Donchenko over 11 years ago

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

Also available in: Atom PDF