hi??perhaps you should consider the vf_fps for framerate control.

------------------ Original ------------------
From:  "David Longest"<[email protected]>;
Date:  Wed, Sep 19, 2012 00:27 AM
To:  "This list is about using libavcodec, libavformat, libavutil, 
libavdeviceand libavfilter."<[email protected]>; 

Subject:  Re: [Libav-user] h263 frame rate



After looking further into it, I have been looking at the AVPacket pts and dts 
in order to determine the frame delay. Instead the proper timestamps are being 
placed in the AVFrame pts using the AVCodecContext time_base.

I am currently attempting to play back video at 15 fps. The AVStream's 
time_base is 1: 1200000 while the packet "pts" gets updated by 4004 every 
packet, resulting in ~30fps. However, after decoding the AVFrame using 
avcodec_decode_video2, we get the time_base of 1001:30000 in AVCodecContext, 
but the AVFrame's PTS updates by about 2 each frame. This gives a frame rate of 
~15fps which is what I'm looking for.

In libavcodec 54.23.100, should the AVFrame and AVCodecContext be used for 
determining presentation times for all codecs or is it specific to h263?

_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to