<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Thanks a lot for your help.<div><br></div><div>That said, I still haven't managed to solve my problem, and I'm new to FFMpeg.</div><div><br></div><div>My final goal is to be able to extract raw audio frames from an OGG file on the fly (and, if possible, from any other format), and convert them in an array of float amplitudes (between -1 and 1).</div><div><br></div><div>Here is a copy of the code that I'm trying to make work: <a href="https://gist.github.com/mregnauld/2538d98308ad57eb75cfcd36aab5099a">https://gist.github.com/mregnauld/2538d98308ad57eb75cfcd36aab5099a</a></div><div><br></div><div>I initiate my player this way:</div><div><div><font face="monospace, monospace"><span style="white-space:pre">      </span>FFMpegPlayer* ffMpegPlayer = new FFMpegPlayer();</font></div><div><font face="monospace, monospace"><span style="white-space:pre">      </span>ffMpegPlayer->createFFmpeg("/path/to/my/file.ogg");</font></div></div><div><br></div><div>And later on, when I need audio samples, I do this way, and I redirect the <font face="monospace, monospace">buffer</font> directly to the audio output (it for an Android app):</div><div><font face="monospace, monospace"><span style="white-space:pre">     </span>float *buffer;<br></font></div><div><div><div><font face="monospace, monospace"><span style="white-space:pre"> </span>ffMpegPlayer->getPcmFloat(buffer);</font></div></div></div></div></div></div><br></div><div>I still have white noice so far, but I can hear a little bit the music (actually I guess it more that I can hear it), which makes me think that I'm close to the solution.</div><div><br></div><div>What should I change in my code to get the proper float amplitudes?</div><div><br></div><div>Thanks for your help.</div><div><br></div></div>