[Ffmpeg-devel] Read fps

Michel Bardiaux mbardiaux
Sat Jan 27 12:50:16 CET 2007

Ignazio Castrogiovanni wrote:
> Could someone tell me how to read the header of a video, please. In
> particoular I'm interested in making a function
> that returns the fps of a video from a filename... because I need it for
> other stuff.
> I think it's easy but I can't figure out.
> Thanks a lot.

Your best strategy is to look in ffmpeg.c what 'ffmpeg -i' does.

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

More information about the ffmpeg-devel mailing list