<div dir="ltr">Hello, All,<div><br></div><div>I am learning the encoding functions in FFmpeg using the Latest Zeranoe Dev Build on Windows. I try to walk through the dev decoding_encoding.c from sample. However, audio_encode_example function does not work. It returns:</div>
<div><br></div><div><div>Encode audio file test.mp2</div><div>[mp2 @ 00993a80] Specified sample format -1 is invalid or not supported</div><div>Could not open codec</div></div><div><br></div><div>When I try to change the sample format to AV_SAMPLE_FMT_S16P (googled) it returns:</div>
<div><br></div><div><div>Encode audio file test.mp2</div><div>Encoder does not support sample format s16p</div><div>Process returned 1 (0x1)   execution time : 0.039 s</div><div>Press any key to continue.</div></div><div>
<br></div><div>Could I know how should I resolve this issue / what could be the cause of this issue?</div></div>