<div dir="ltr"><div style="color:rgb(0,0,0);font-size:16px;font-family:calibri,arial,helvetica,sans-serif;margin-top:0px;margin-bottom:0px">Hi All,</div><div style="color:rgb(0,0,0);font-size:16px;font-family:calibri,arial,helvetica,sans-serif;margin-top:0px;margin-bottom:0px"><br></div><div style="color:rgb(0,0,0);font-size:16px;font-family:calibri,arial,helvetica,sans-serif;margin-top:0px;margin-bottom:0px">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" target="_blank" id="gmail-LPlnk958222"><span id="gmail-LPlnk958222">filtering_audio.c</span></a>" example, however it does not work, I always get the error </div><div style="color:rgb(0,0,0);font-size:16px;font-family:calibri,arial,helvetica,sans-serif;margin-top:0px;margin-bottom:0px"><br></div><div style="color:rgb(0,0,0);font-size:16px;font-family:calibri,arial,helvetica,sans-serif;margin-top:0px;margin-bottom:0px">more samples than frame size (avcodec_encode_audio2)<br></div><div style="color:rgb(0,0,0);font-size:16px;font-family:calibri,arial,helvetica,sans-serif;margin-top:0px;margin-bottom:0px"><br></div><div style="color:rgb(0,0,0);font-size:16px;font-family:calibri,arial,helvetica,sans-serif;margin-top:0px;margin-bottom:0px">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.</div><div style="color:rgb(0,0,0);font-size:16px;font-family:calibri,arial,helvetica,sans-serif;margin-top:0px;margin-bottom:0px"><br></div><div style="color:rgb(0,0,0);font-size:16px;font-family:calibri,arial,helvetica,sans-serif;margin-top:0px;margin-bottom:0px">What am I doing wrong?</div><div style="color:rgb(0,0,0);font-size:16px;font-family:calibri,arial,helvetica,sans-serif;margin-top:0px;margin-bottom:0px"><br></div><div style="color:rgb(0,0,0);font-size:16px;font-family:calibri,arial,helvetica,sans-serif;margin-top:0px;margin-bottom:0px">Thanks,</div><div style="color:rgb(0,0,0);font-size:16px;font-family:calibri,arial,helvetica,sans-serif;margin-top:0px;margin-bottom:0px">Marcelo</div><div id="gmail-x_Signature" style="color:rgb(0,0,0);font-size:16px;font-family:calibri,arial,helvetica,sans-serif"><div id="gmail-x_divtagdefaultwrapper" style="font-family:calibri,arial,helvetica,sans-serif,"apple color emoji","segoe ui emoji",notocoloremoji,"segoe ui symbol","android emoji",emojisymbols,"apple color emoji","segoe ui emoji",notocoloremoji,"segoe ui symbol","android emoji",emojisymbols,"apple color emoji","segoe ui emoji",notocoloremoji,"segoe ui symbol","android emoji",emojisymbols"><font face="Calibri,Arial,Helvetica,sans-serif,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols"><span id="gmail-x_divtagdefaultwrapper"><div style="margin-top:0px;margin-bottom:0px"> </div><div><br></div></span></font></div></div><p style="margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif,"apple color emoji","segoe ui emoji",notocoloremoji,"segoe ui symbol","android emoji",emojisymbols,"apple color emoji","segoe ui emoji",notocoloremoji,"segoe ui symbol","android emoji",emojisymbols;font-size:16px"></p><div id="gmail-x_Signature" style="color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif,"apple color emoji","segoe ui emoji",notocoloremoji,"segoe ui symbol","android emoji",emojisymbols,"apple color emoji","segoe ui emoji",notocoloremoji,"segoe ui symbol","android emoji",emojisymbols;font-size:16px"></div></div>