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 have 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With