[FFmpeg-devel] How to Read Frame from Multiframe Images?

Michel Bardiaux mbardiaux
Wed Jul 4 10:27:05 CEST 2007

Fribs Mike wrote:
> Hi all,
>   I am trying to read one frame or certain frame from any video type:
>  wmv, avi, mpeg and then I wanna do some processes for that frame.
>   Is it possible to get any header file (with C/C++ language) to make
>  it easy?
>   I hope that my question is clear.

Not at all.

Your best strategy is to first rehearse what you want to do using the 
ffmpeg command line. See especially the options -ss -t -vframes -f 
image2, in the doc and in the list archives.

BTW rehearse on *many* cases, all the containers and codecs you want to 
support, with sample files from all the sources you want to accept, 
because there is a lot of diversity in multimedia files, and some things 
are possible with some but not with others.

*Then* you look at the relevant code in ffmpeg.c, and code something 

Oh, and there is no "C/C++" language...

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