<html><head></head><body><div>
    <div><div style="display: none; border: 0px; width: 0px; height: 0px; overflow: hidden; visibility: hidden;"><img src="https://r.superhuman.com/iZnppedeXRNzpWzrbJ9lIPUrsuNQrpFnpfwoxYXtJ70VXVLzmKAmkqA7uTKxnBsTW-D0RFpYS2DvE1KHtiGWAEScfEtDfvZkSFG78veppYB8BUQN6khqJudYBg0JyuJFOUMarGzAk7HlU7PxrR8cPNXxdN7ASYt8H_0wqhzIIW9Wup5kH0hMP2Q.gif" alt=" " width="1" height="0" style="display: none; border: 0px; width: 0px; height: 0px; overflow: hidden; visibility: hidden;"/><!--                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                --></div>
    <div class="">
    
    </div><div class=""><br/></div><div class="gmail_extra">
    <div class="gmail_quote">
        On Tue, Jan 21 2020 at 5:28 AM, 
        <<a href="mailto:ceffmpeg@gmail.com" target="_blank">ceffmpeg@gmail.com</a>>
        wrote:
        <br/>
        <blockquote class="gmail_quote" style="margin:0 0 0.8ex; border-left: 1px #ccc solid; padding-left: 1ex;">
        <div class=""><div class=""><p class="">Am Di., 21. Jan. 2020 um 04:25 Uhr schrieb Suhail Doshi <suhail@mightyapp.com>:
<br/>
>
</p><blockquote class=""><p class="">
On Sun, Jan 19, 2020 at 4:28 PM Carl Eugen Hoyos <ceffmpeg@gmail.com> wrote:
</p></blockquote><p class="">
>>
</p><blockquote class=""><blockquote class=""><p class="">
Am Mo., 20. Jan. 2020 um 01:22 Uhr schrieb Suhail Doshi <suhail@mightyapp.com>:
</p></blockquote></blockquote><p class="">
>>
</p><blockquote class=""><blockquote class=""><p class="">
> 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?
</p></blockquote></blockquote><p class="">
>>
</p><blockquote class=""><blockquote class=""><p class="">
It (automatically) inserts the aresample filter into the filter chain.
</p></blockquote></blockquote><p class="">
>>
</p><blockquote class=""><blockquote class=""><p class="">
Please find out what top-posting means and avoid it here, Carl Eugen
</p></blockquote></blockquote><p class="">
>
<br/>
>
</p><blockquote class=""><p class="">
Got it.  So, I tried to resample my FLT audio into FLTP audio as well. I got a bit stuck.
</p></blockquote><p class="">
>
</p><blockquote class=""><p class="">
Here's my code: https://gist.github.com/Suhail/151e41f3eb226504c7cbd3b46c15729c
<br/>
(I didn't want to paste it here since it's long where I referenced this code heavily.
</p></blockquote><p class="">
>
</p><blockquote class=""><p class="">
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.
</p></blockquote><p class="">
Why don't you use a wav file and read that with libavformat / did you
test reading the pcm raw file with ffmpeg?</p></div></div></blockquote></div></div><div class=""><div class=""><br/></div><div class="">Yes, I did this with the same file and it works as expected: <span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 11pt; white-space: pre-wrap; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961); -webkit-text-size-adjust: auto;" class="">ffmpeg -f f32le -ar 48000 -ac 2 -c:a pcm_f32le -i out.raw out.m4a -y</span></div><div class=""><span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 11pt; white-space: pre-wrap; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961); -webkit-text-size-adjust: auto;" class=""><br/></span></div><div class=""><span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 11pt; white-space: pre-wrap; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961); -webkit-text-size-adjust: auto;" class="">This is essentially what I am trying to write in C/C++ and then plan to make it work on streaming data.</span></div><div class=""><br/></div><div class=""><br/></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0.8ex; border-left: 1px #ccc solid; padding-left: 1ex;"><div class=""><div class=""><p class="">
</p><p class="">
Carl Eugen
<br/>
_______________________________________________
<br/>
Libav-user mailing list
<br/>
Libav-user@ffmpeg.org
<br/>
https://ffmpeg.org/mailman/listinfo/libav-user
</p><p class="">
To unsubscribe, visit link above, or email
<br/>
libav-user-request@ffmpeg.org with subject "unsubscribe".</p></div></div>
        </blockquote>
    </div>
</div><div class="">
</div>
    
    
</div></div></body></html>