Can't select appropriate encoder

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't select appropriate encoder

alex jamshedi
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.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Can't select appropriate encoder

Carl Eugen Hoyos-2
Am Di., 28. Jan. 2020 um 20:51 Uhr schrieb alex jamshedi
<[hidden email]>:

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

It's pcm not pmc, but you cannot put pcm_s32be into wav because be is
not supported in wav.

After "-i" a filename is expected, not another option.

Please remember to always provide the command line you tested together
with the complete, uncut console output when asking questions here.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".