[FFmpeg-user] Can't select appropriate encoder

alex jamshedi alexsjamshedi at gmail.com
Tue Jan 28 21:26:41 EET 2020


Hi,

I am piping a buffer to ffmpeg in my c code. I am using ffmpeg version
3.2.10-1~deb9u1+rpt1 on the raspberry pi. Ffmpeg is giving me issues with
the following line.

pipeout = popen("ffmpeg -y -f s32be -ar 131072 -ac 1 -i -c:a pmc_s32be
hydro.wav, "w");

When I run the code, ffmpeg does not like the "-c:a pmc_s32e" part. I get
an error stating: "-c:a Protocol not found. Did you mean file:-c:a?". When
I change my code to "file:-c:a" I then get the error: "file:-c:a: No such
file or directory".

The reason I need this piece is because ffmpeg defaults to outputting
pcm_s16le audio when I need pcm_s32be.

I have tried "-c:a copy" as well. No luck.

Any help would be appreciated.

Thanks.


More information about the ffmpeg-user mailing list