[Libav-user] 回复: 回复: just wanna get a decode demo for libav

坚定前行 powerpan at qq.com
Fri May 12 16:53:36 EEST 2017


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";<ggarra13 at gmail.com>;
发送时间: 2017年5月12日(星期五) 晚上9:15
收件人: "This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter."<libav-user at ffmpeg.org>; 

主题: 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 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20170512/3b1d80aa/attachment.html>


More information about the Libav-user mailing list