<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi All,</p>
<p><br>
</p>
<p>I am refactoring a streaming application from manually resampling and FIFO buffering audio to using filters. For testing I run the "<a href="https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/filtering_audio.c" class="OWAAutoLink" id="LPlnk958222" previewremoved="true" style="font-size: 12pt;">filtering_audio.c</a>"
 example, h<span style="font-size: 12pt;">owever it does not work, I always get the error </span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;"><span>more samples than frame size (avcodec_encode_audio2)</span><br>
</span></p>
<p><span style="font-size: 12pt;"><span><br>
</span></span></p>
<p><span style="font-size: 12pt;"><span>In my previous implementation I had this working by manually filling a FIFO and handling the resampling myself, however I need to switch to using filters. The current filtergraph in filtering_audio.c actually has an auto-inserted
 fifo filter, but I still get the error.</span></span></p>
<p><span style="font-size: 12pt;"><span><br>
</span></span></p>
<p><span style="font-size: 12pt;"><span>What am I doing wrong?</span></span></p>
<p><span style="font-size: 12pt;"><span><br>
</span></span></p>
<p><span style="font-size: 12pt;"><span>Thanks,</span></span></p>
<p><span style="font-size: 12pt;"><span>Marcelo</span></span></p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<span style="font-size:12pt">
<p></p>
</span></div>
</div>
</div>
</body>
</html>