[Libav-user] Can't get MPEG4 decoder

Michael IV explomaster at gmail.com
Thu Nov 9 18:13:17 EET 2017


Hi All. What maybe a reason that  avcodec_find_decoder returns NULL ?

I enabled in my FFMPEG build MOV and h264 demuxer. Configure report clearly
states that.

But doing this test:

         av_register_all();
 avcodec_register_all();
         avformat_network_init();
         AVCodec* h264codc = avcodec_find_decoder_by_name("h264");
AVCodec* h264codc1 = avcodec_find_decoder_by_name("MOV");
AVCodec* h264codc3 = avcodec_find_decoder_by_name("MPEG4");
AVCodec* h264codc4 = avcodec_find_decoder_by_name("MP4");
AVCodec* h264codc5 = avcodec_find_decoder(AV_CODEC_ID_MPEG4);

Only h264codc  returns a valid codec. The only thing I didn't do during
build config was not to enable libx264. May this be the source of the
problem? I didn't do that because I just need to demux  mp4 movie and get
its elementary stream.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20171109/cf6f887d/attachment.html>


More information about the Libav-user mailing list