<div dir="ltr">Hi,<div><br></div><div>I've noticed something which I think it's a strange behavior of ffmpeg command line.<br></div><div>Encoding the same file, once treating it as a wav, 2nd time as a raw file (simply removing the wav header), it behaves differently.</div>
<div><br></div><div><div>Case 1 - encoding a wav as input (44wav head plus the actual PCM data): </div><div>./ffmpeg.exe -loglevel debug -y -vn -f s16le -ac 1 -ar 16000 -acodec pcm_s16le -sample_fmt s16 -i <b>684.wav<u> </u></b>-ac 1 -ab 23850 -ar 16000 -f amr -acodec libvo_amrwbenc -sample_fmt s16 640bytes_fromwav.awb</div>
<div><br></div><div>(and wav has correct header: samplerate:803e (aka 16000), byterate: 007d (aka 256k)<br></div><div>and I get an output which audio is the same, but binary different from the 2nd case:</div><div><br></div>
<div>Case 2: I put same data as above, but this times without the 44bytes wav header:</div><div>./ffmpeg.exe -loglevel debug -y -vn -f s16le -ac 1 -ar 16000 -acodec pcm_s16le -sample_fmt s16 -i <b>640.raw</b> -ac 1 -ab 23850 -ar 16000 -f amr -acodec libvo_amrwbenc -sample_fmt s16 640bytes.awb</div>
<div><br></div><div>Note: I compared the debug reports of both commands and on the details that come on screen are identical, but the resulting data is totally different when I do bit by bit comparison.</div></div><div><br>
</div><div>What I am doing wrong, or what is the issue? It is supposed to be the same thing, no? I tried for even longer data files (few kbytes, there are always binary differences between the wav treatment and raw treatment).</div>
<div><br></div><div>Regards,</div><div>Sebastian.</div></div>