<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">El 12/05/17 a las 07:25, 坚定前行 escribió:<br>
</div>
<blockquote cite="mid:tencent_7089E6CC16D8B7CA392976D3@qq.com"
type="cite">
<div>Hi, </div>
<div>
<div><br>
</div>
<div>that's the demo I tried </div>
<div>
<div style="line-height: 21px;">with warning 'avcodec_decode_<wbr>audio4'
is deprecated.</div>
<div style="line-height: 21px;">and that demo could not work
with : Codec not found.</div>
</div>
<div style="line-height: 21px;"><br>
</div>
<div style="line-height: 21px;">Best regards,</div>
<div style="line-height: 21px;">pp<br>
</div>
</div>
</blockquote>
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.<br>
You can check the codecs you have by doing:<br>
<br>
$ ffmpeg -codecs<br>
<br>
For it to work, you should have a line like:<br>
<br>
DEA.L. mp2 MP2 (MPEG audio layer 2) (decoders: mp2
mp2float ) (encoders: mp2 mp2fixed )<br>
<br>
<br>
</body>
</html>