Hi:

I've followed the compile & setup instructions on 
http://ubuntuforums.org/showthread.php?t=786095 to install ffmpeg/libavcodec 
and external codecs to my system.

I modify/compiled some example codes on web and it works for all the internal 
codecs. But when I try to decode an AC3 (libfaad) stream my 
avcodec_find_decoder() function gave me a NULL, my print out shows:
Unsupported Audio codec! ID: 0x15003

The installed ffplay can decode the audio and can dump something like this:
    Stream #0.0[0x1021]: Video: vc1, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 
    Stream #0.1[0x1025](eng): Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s
But my program can only dump:
    Stream #0.0[0x1021]: Video: vc1, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 
    Stream #0.1[0x1025](eng): Audio: 0x0000, 48000 Hz, 5.1, s16, 640 kb/s

I don't know if there are any extra steps to enable external codecs in user 
code other than av_register_all(), please help me with this, as I've searched 
many docs and codes in ffmpeg project without a hint.

Regards,
John

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to