On date Wednesday 2008-12-24 17:17:21 +0400, Artem encoded: > I'm trying to encode h264 video, I compiled x264 and ffmpeg with x264 > support: > > --enable-libmp3lame --disable-vhook --disable-mmx --enable-swscale > --enable-gpl --enable-libx264 > > but when I set fmt->video_codec = CODEC_ID_H264 > > I receive: > > Output #0, mp4, to 'test.mp4': > Stream #0.0: Video: 0x0000, yuv420p, 800x500, q=2-31, 64 kb/s, 4.00 > tb(c) > codec not found > > What should I do to enable h264 codec ?
1) avcodec_init() 2) use register_codec() avcodec_register_all() (the previous step is not required if you're using a recent FFmpeg build). > Thanks! Regards. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
