[Ffmpeg-devel] how to handel pts
Michael Niedermayer
michaelni
Fri Jul 15 18:59:46 CEST 2005
Hi
On Friday 15 July 2005 12:44, Patrick Fischer wrote:
> After lots of problems i can read the pts from an mpeg-ts
> but how to handel the 64bit?
>
> while(av_read_frame(pFormatCtx, &packet)>=0) {
> if(packet.stream_index==videoStream) {
> avcodec_decode_video(pCodecCtx, pFrame, &frameFinished,
> packet.data, packet.size);
> printf("pts : %I64u\n",packet.pts);
what does %I64u mean? gcc at least doesnt understand it
> }
> }
>
> Shows me
> pts : 2099007527
> pts : 2099047527
> pts : 2099207527
> pts : 2099127527
> pts : 2099167527
> pts : 2099327527
> ......
> As I think the pts is a time_stamp whitch is set from the decoder for
> each frame.
> the timer is running 1/90000 sec
whats in time_base?
[...]
--
Michael
More information about the ffmpeg-devel
mailing list