Le quintidi 5 vendémiaire, an CCXX, Isaac Wang a écrit : > I'm trying to find the correct PTS value for a H.264 video being > streamed via UDP. I'm trying to use the AVFrame's > best_effort_timestamp function after calling avcodec_decode_video2, > but all I'm getting are very large negative values (i.e. > -9223372036854775808). Has anyone had experience using > best_effort_timestamp or know of a way to find accurate PTS values?
The value you give looks like AV_NOPTS_VALUE. AFAIK, there are no timestamps in elementary H.264 packets, and neither are there in UDP packets, so unless you are using some higher format or protocol in between, you can not expect to get timestamps at all. Regards, -- Nicolas George
signature.asc
Description: Digital signature
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
