On Fri, 6 Jun 2008, Vladimir Eremeev wrote:

> Vladimir Eremeev wrote:
>>
>> My impression is that PTS in the stream is somehow reflects the real time
>> and is reset to 0 once a day.
>
> However, there is another standing problem.
> If the application is scheduled to save a TV show which spans across that
> "PTS reset" boundary, av_write_frame doesn't save the show part after the
> boundary. It gives the error "non monotone time stamps" for each packet
> which my application passes to it.

Why do you not fix the timestamps before passing them to av_write_frame()? 
Perhaps you could check for the point when it resets to 0, and then add an 
offset to every timestamp that occurs after that.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to