开发者

"invalid, non monotonically increasing dts" error while writing streams to file with ffmpeg

开发者 https://www.devze.com 2023-02-15 23:00 出处:网络
I was finally able to write video stream packets to a file using the function av_interleaved_write_frame(outputContext, &packet);

I was finally able to write video stream packets to a file using the function

av_interleaved_write_frame(outputContext, &packet);

But after a short period of time I got this error:

Application provided invalid, non monotonically increasing dts to muxer 
in stream 0: *numberX* >= *numberY*

Does anybody h开发者_StackOverflow社区ave any idea, what's causing this and how to fix it?


set packet.pts to a correct value before calling av_interleaved_write_frame() it's the time stamp in which this frame is presented (e.g displayed on the screen)

this value should be strictly increasing for each packet

0

精彩评论

暂无评论...
验证码 换一张
取 消