[Libav-user] Libav* Video to JPG

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Oct 17 12:31:59 EEST 2018

2018-10-15 17:12 GMT+02:00, Ali Osman ┼×AHAN <aliosman_sahan at hotmail.com>:

> I need to decode (and export as jpg) H.264 and MPEG-2 I-pictures from within
> the source code of an application I'm writing in C. I linked against
> libavcodec in the hope that avcodec_decode_video() could do it but it seems
> that it only works for .mpg and not for raw elementary streams.

The libavcodec H.264 decoder works neither on mpg nor elementary streams
but frames as provided by the H.264 parser, also part of libavcodec.
libavformat supports both mpg and elementary streams (and many other
file formats).

Carl Eugen

More information about the Libav-user mailing list