[FFmpeg-devel] Discarded B frames before first keyframe (MPEG)

Michel Bardiaux mbardiaux
Mon Nov 12 12:02:25 CET 2007


Taylan O. Toygarlar a ?crit :
> Hi Everyone,
> 
> I am trying to get the exact frame numbers in my program for MPEG files. 
> But some MPEG files have B frames before the first keyframe, which 
> cannot be decoded and thus completely discarded.
> 
> I want to know how many such frames exist in the file, how can I achieve 
> this programmatically?

There is no other way than to count them.

> 
> Any help is highly appreciated,
> Thanks in advance.
> 


-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/




More information about the ffmpeg-devel mailing list