[Libav-user] PTS from best_effort_timestamp?
Nicolas George
nicolas.george at normalesup.org
Tue Sep 27 19:21:41 CEST 2011
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20110927/4952ea1c/attachment.asc>
More information about the Libav-user
mailing list