[Ffmpeg-devel] I want to know what data set to AVCodecContext for H.264

Måns Rullgård mru
Thu Jun 23 17:02:56 CEST 2005

Chang Min Jeon said:
> My program can encode image from TV CARD to mpeg1video. :)
>  I have refereced apiexample.c
>  But I'm trying to encode image to H.264.

Replace any CODEC_ID_MPEG1VIDEO (or similar) with CODEC_ID_H264.  Everything
else should be more or less the same.  Some options are not supported, or make
no sense with H.264, but it should work.

You need to install x264 first, and add --enable-x264 to your configure flags.

M?ns Rullg?rd
mru at inprovide.com

More information about the ffmpeg-devel mailing list