2017-05-12 21:53 GMT+08:00 坚定前行 <[email protected]>: > 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? > 1. 别在邮件的最上面回复内容,最好在最下面回复 2. 你是怎么跑的demo代码,全部过程能否详细描述一下 3. decode_audio.c里面是用的最新的API做音频解码的,不包含demux操作,仅仅是解码,而且是音频解码 4. 最好还是把你的全部过程和你的代码贴出来,大伙才好确认问题
除了1, 另外三点应该能得到你想要的答复,这个是api使用的列表,估计能得到你想要的答复的可能性不大,因为大伙不知道你怎么做的,不知道你代码实现,如果能够按照我说的三点做一下,也许有结果。 > 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 > >
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
