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.
> How to deal with this.
> 
Indeed, PTS values in the stream are growing whole day long and set to zero
about midnight.
Removing the flag AVFMT_FLAG_GENPTS from AVInputFormatContext->flags
(&=~AVFMT_FLAG_GENPTS) has partially solved the problem. The packet_buffer
does not grow to infinity anymore.

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.

-- 
View this message in context: 
http://www.nabble.com/WHY--Why-frames-with-PTS-%3E-8%2C589%2C930%2C000-get-stuck-in-the-input-buffer-%21-tp17664697p17689924.html
Sent from the libav-users mailing list archive at Nabble.com.

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to