Hi,
thanks for the reply but your answer didn't help. first of all, i need to
register a codec and open it automatically, but decode_audio.c did not show the
right way.
second, I copied a third party demo, it works well but still have some warning
for the OLD API and decode_audio.c did not use the latest API to demostrate
what ffmpeg suggest to do. I need a perfect demo, anybody could help?
Best regards,
pp
------------------ 原始邮件 ------------------
发件人: "Gonzalo Garramuño";<[email protected]>;
发送时间: 2017年5月12日(星期五) 晚上9:15
收件人: "This list is about using libavcodec, libavformat, libavutil, libavdevice
and libavfilter."<[email protected]>;
主题: Re: [Libav-user]回复: just wanna get a decode demo for libav
El 12/05/17 a las 07:25, 坚定前行 escribió:
Hi,
that's the demo I tried
with warning 'avcodec_decode_audio4' is
deprecated.
and that demo could not work with : Codec not found.
Best regards,
pp
Usually, if you get "codec not found" it means your ffmpeg
compilation was lacking a certain codec. The audio example uses mpeg2
audio, so you need to have ffmpeg compiled with mpeg2.
You can check the codecs you have by doing:
$ ffmpeg -codecs
For it to work, you should have a line like:
DEA.L. mp2 MP2 (MPEG audio layer 2) (decoders: mp2
mp2float ) (encoders: mp2 mp2fixed )_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user