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

Steven Liu lingjiujianke at gmail.com
Fri May 12 19:05:56 EEST 2017


2017-05-12 21:53 GMT+08:00 坚定前行 <powerpan at qq.com>:

> 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";<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 )
>
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20170513/7366482e/attachment.html>


More information about the Libav-user mailing list