Dear Art, dear all, I have a very similar question as I am currently using the reordered_opaque field which works fine. But if a frame gets dropped (is not recognized as frame due to some sort of bit errors which happens about every three to four hours in the satellite stream I try to decode) reordered_opaque "gets behind", meaning the dropped frames's PTS will be returned at some point but the corresponding frame will not. This is kind of strange as after one day or so the PTS assigned to the decoded frames are so far away from the original PTS that playback is nearly impossible due to stuttering. Is there a possibility to force the library to also drop the PTS when it cannot assign it to a frame?
Regards, Andreas -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Art Clarke Gesendet: Donnerstag, 16. April 2009 17:27 An: Libav* user questions and discussions Betreff: Re: [libav-user] Getting PTS back in decoded frames On Thu, Apr 16, 2009 at 8:04 AM, Mike Kazmier <[email protected]> wrote: > We are using libavcodec to decode various types of video streams. To date, > we have not found a way to get the PTS set in the decoded frame. What we do > now is maintain a "queue" of PTS values, and sort these, then assign the > lowest PTS to the next frame that comes out of the decoder because the > decoder seems to consistently deliver frames in display order. While this > mostly works, its a terrible hack and I think we're doing something wrong. > Is there a some setting we need to enable in our context in order to have > libavcodec attach the correct PTS to our decoded frames? > Take a look at ffplay.c; it uses the relatively recently introduced reorded_opaque field in the AVCodecContext and AVFrame objects to make sure the PTS of a returned AVFrame actually is correct. - Art -- http://www.xuggle.com/ xu‧ggle (zŭ' gl) v. To freely encode, decode, and experience audio and video. Use Xuggle to get the power of FFMPEG in Java. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
