Hi,

have a look at the docs here:

"
int AVCodecContext::ticks_per_frame

For some codecs, the time base is closer to the field rate than the
frame rate.

Most notably, H.264 and MPEG-2 specify time_base as half of frame
duration if no telecine is used ...

Set to time_base ticks per frame. Default 1, e.g., H.264/MPEG-2 set it
to 2.
"

Hope that helps...


Christian

Sean McAllister schrieb:
> Hmmm I'm not necessarily seeing where it explains it, what am I missing?
> 
> On Sat, Jan 9, 2010 at 10:55 PM, Sean McAllister <[email protected]> wrote:
> 
>> Excellent! Thanks!
>>
>>
>> On Sat, Jan 9, 2010 at 10:22 PM, Art Clarke <[email protected]> wrote:
>>
>>> On Sat, Jan 9, 2010 at 9:08 PM, Sean McAllister <[email protected]>
>>> wrote:
>>>
>>>> So I'm reading the documentation on the AVCodecContext struct:
>>>>
>>>>
>>>>
>>> http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/structAVCodecContext.html#b7bfeb9fa5840aac090e2b0bd0ef7589<http://cekirdek.pardus.org.tr/%7Eismail/ffmpeg-docs/structAVCodecContext.html#b7bfeb9fa5840aac090e2b0bd0ef7589>
>>> <
>>> http://cekirdek.pardus.org.tr/%7Eismail/ffmpeg-docs/structAVCodecContext.html#b7bfeb9fa5840aac090e2b0bd0ef7589
>>>>
>>>> It says that time_stamp should be 1.0/framerate, but I'm checking out
>>> this
>>>> video that's 29.<whatever> FPs, and I get
>>>> a time_stamp of .016683 which corresponds to 59.94FPS, ie time_stamp =
>>>> 1.0/(2.0*frame_rate).  Which is correct?
>>>>
>>>> Sean
>>>>
>>> This might help:
>>> http://wiki.xuggle.com/Concepts
>>>
>>> It explains the concepts of time stamps, time bases and framerate as used
>>> in
>>> Xuggler -- but Xuggler just wraps FFmpeg's libav library so the same
>>> concepts apply.
>>>
>>> - Art
>>>
>>> --
>>> http://www.xuggle.com/
>>> xu‧ggle (zŭ' gl) v. To freely encode, decode, and experience audio and
>>> video.
>>>
>>> Use Xuggle to get the power of FFmpeg in Java.
>>> _______________________________________________
>>> libav-user mailing list
>>> [email protected]
>>> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>>>
>>
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user


_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to