[FFmpeg-devel] Problem with av_find_stream_info and possible solution(s)

Luca Abeni lucabe72
Fri Jan 30 16:36:22 CET 2009

Hi Michael,

Michael Niedermayer wrote:
>>> I think the most obvious thing is the simple question if the user
>>> app wants the guessed frame rate or not.
>>> ffplay does not give a damn about it and ffmpeg in some cases
>>> should not need it either but for some cases like avi output
>>> it is essential to have some "reasonable minimal" timebase and not
>>> 1/90000
>>> Adding a flag to enable/disable it should be easy ...
>> Ok; I'll have a look at adding this flag.
>> Anyway, double thinking about it I suspect this flag depends on the 
>> input format... Is adding a flag in the input AVFormat reasonable?
> no
> it belongs in AVFormatContext
> It is a flag set by the user app not fixed per input format

Ok... Sorry for the misunderstanding.

I tried implementing this flag; the result is attached. I am not good
at finding names, so I used the first one I could think about: AVFMT_FLAG_NOTB.
If anyone suggests a more appropriate name, I'll happily change it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: skip_tb.diff
Type: text/x-diff
Size: 2833 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090130/35f34ac1/attachment.diff>

More information about the ffmpeg-devel mailing list