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.
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to