[Ffmpeg-devel] new in ffmpeg, needs help with pts and dts

Michael Niedermayer michaelni
Sat Jul 23 22:51:59 CEST 2005


Hi

On Saturday 23 July 2005 04:56, Aloysius Indrayanto wrote:
> Hello,
>
> I'm pretty new in ffmpeg. I can demux and decode audio &
> video, but AV sync is not good yet.
> Could you teel me how to convert the value of "dts" and
> "pts" to the normal time in microsecconds?

the timestamps are in AVStream.time_base units, to convert them to microsecs 
try the following

av_rescale_q(pts, AVStream.time_base, (AVRational){1,1000000})

[...]
-- 
Michael





More information about the ffmpeg-devel mailing list