<div dir="ltr"><div dir="ltr">On Sun, Jan 19, 2020 at 4:28 PM Carl Eugen Hoyos <<a href="mailto:ceffmpeg@gmail.com">ceffmpeg@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am Mo., 20. Jan. 2020 um 01:22 Uhr schrieb Suhail Doshi <<a href="mailto:suhail@mightyapp.com" target="_blank">suhail@mightyapp.com</a>>:<br>
<br>
> Sure, do you know why ffmpeg cli seems to be able to encode interleaved<br>
> raw audio but the C API only allows FLTP then?<br>
<br>
It (automatically) inserts the aresample filter into the filter chain.<br>
<br>
Please find out what top-posting means and avoid it here, Carl Eugen<br></blockquote><div><br></div><div>Got it.  So, I tried to resample my FLT audio into FLTP audio as well. I got a bit stuck.</div><div><br></div><div>Here's my code: <a href="https://gist.github.com/Suhail/151e41f3eb226504c7cbd3b46c15729c">https://gist.github.com/Suhail/151e41f3eb226504c7cbd3b46c15729c</a> (I didn't want to paste it here since it's long where I referenced <a href="https://github.com/FFmpeg/FFmpeg/blob/master/libavresample/avresample.h#L41">this code heavily</a>.</div><div><br></div><div>What I do, as a test, is I read an entire PCM raw audio file into a buffer and then send that to the encoder. While the encoder doesn't output an error, it doesn't seem to output any valid AAC encoded audio either. Even after a flush, it seems to provide a substantially small amount of information that's invalid to play.</div><div><br></div><div>I also tried sending it packets of raw audio captured from PulseAudio but received similar results.</div><div><br></div><div>Any ideas? I feel like I am missing something fundamental.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div></div>