Vladimir Eremeev wrote:
>>> When I call av_write_frame() or av_interleaved_write_frame(), these
> functions complain:
>>> "error, non monotonic time stamps <very-very long negative number> >= <the
>>> same number>"
>>> or
>>> "error, pts < dts"
>>>
>>> What was not set??
>> Maybe the error is just the one described by the above message: you set
>> a wrong pts or dts?
>
> Oh, sorry, I forgot.
> I get these time stamps from the stream.
The first error you quoted (non monotonic timestamps) means that you
called av_write_frame() two times with the dame PTS or DTS value. Since
two different frames cannot have the same timestamp, this is an error,
and the library is complaining. If you do not believe this theory, try
printing the PTS and DTS before calling av_write_frame().
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user