[Ffmpeg-devel] Is that possible encoding h.264 using ffmpeg?

Erik Slagter erik
Mon Jun 20 10:58:57 CEST 2005


On Mon, 2005-06-20 at 03:31 +0900, Chang Min Jeon wrote:
> I'm trying to encoding data from TV CARD to h.264.
> 
> and I find that /livavformat/movenc.c has following line.
> 
> const CodecTag ff_mov_obj_type[] = {
> { CODEC_ID_MPEG4 , 32 },
> { CODEC_ID_AAC , 64 },
> { CODEC_ID_MPEG1VIDEO, 106 },
> { CODEC_ID_MPEG2VIDEO, 96 },//mpeg2 profiles
> { CODEC_ID_MP2 , 107 },//FIXME mpeg2 mpeg audio -> 105
> { CODEC_ID_MP3 , 107 },//FIXME mpeg2 mpeg audio -> 105
> { CODEC_ID_H264 , 33 },
> { CODEC_ID_H263 , 242 },
> { CODEC_ID_H261 , 243 },
> { CODEC_ID_MJPEG , 108 },
> { CODEC_ID_PCM_S16LE , 224 },
> { CODEC_ID_VORBIS , 225 },
> { CODEC_ID_AC3 , 226 },
> { CODEC_ID_PCM_ALAW , 227 },
> { CODEC_ID_PCM_MULAW , 228 },
> { CODEC_ID_PCM_S16BE , 230 },
> { 0,0 },
> };
> 
> I known that ffmpeg can decode h.264.
>  but i can't confirm that ffmpeg library is encoding yuv or rgb to H.264 .

FFmpeg can encode to h264, using the external library x264 (which you of
course need to compile and install first).

Then out of the box ffmpeg will encode & mux h264 to mp4, but it will
set the fourcc to the avi (sic) fourcc for h264, which is recognised by
some players (e.g. mplayer). FFmpeg will warn you about this. I've
supplied a patch a few days ago to set the fourcc to the proper one.





More information about the ffmpeg-devel mailing list