Page 1 of 1

compile to generate audio pcm from wav,mp3,wma

Posted: Fri Jun 14, 2019 4:23 pm
by sidlaw
Hi,

I am trying to build ffmpeg to allow me to encode decode multiple audio format. Mainly, encode from PCM to wav,wma, mp3
and decode wav,wma,mp4 to pcm.

I have tried this combination:

--disable-decoders
--enable-decoder=wmav1
--enable-decoder=wmav2
--enable-decoder=wmavoice
--enable-decoder=mp3
--enable-decoder=wavpack
--enable-decoder=pcm_alaw
--enable-decoder=pcm_f32be
--enable-decoder=pcm_f32le
--enable-decoder=pcm_f64be
--enable-decoder=pcm_f64le
--enable-decoder=pcm_s16be
--enable-decoder=pcm_s16le
--enable-decoder=pcm_s16le_planar
--enable-decoder=pcm_s24be
--enable-decoder=pcm_s24le
--enable-decoder=pcm_s32be
--enable-decoder=pcm_s32le
--enable-decoder=pcm_s8
--enable-decoder=pcm_u16be
--enable-decoder=pcm_u16le
--enable-decoder=pcm_u24be
--enable-decoder=pcm_u24le

--disable-encoders
--enable-encoder=wmav1
--enable-encoder=wmav2
--enable-encoder=wavpack
--enable-encoder=pcm_alaw
--enable-encoder=pcm_f32be
--enable-encoder=pcm_f32le
--enable-encoder=pcm_f64be
--enable-encoder=pcm_f64le
--enable-encoder=pcm_s16be
--enable-encoder=pcm_s16le
--enable-encoder=pcm_s16le_planar
--enable-encoder=pcm_s24be
--enable-encoder=pcm_s24le
--enable-encoder=pcm_s32be
--enable-encoder=pcm_s32le
--enable-encoder=pcm_s8
--enable-encoder=pcm_u16be
--enable-encoder=pcm_u16le
--enable-encoder=pcm_u24be
--enable-encoder=pcm_u24le

--disable-parsers
--enable-parser=mpegaudio

--disable-demuxers
--enable-demuxer=mp3
--enable-demuxer=wav
--enable-demuxer=xwma
--enable-demuxer=asf


--disable-muxers
--enable-muxer=mp3
--enable-muxer=wav
--enable-muxer=asf

but running this command is still failing for me:
ffmpeg -i input.wav -ac 1 -ar 16000 -acodec pcm_s16le -f s16le output
[NULL @ 000002959D4EB040] Requested output format 's16le' is not a suitable output format
output: Invalid argument

I have tried to add se16le as muxer/demuxer to enable in the list but the build had a warning that the format was not found.

Can someone help?

Re: compile to generate audio pcm from wav,mp3,wma

Posted: Tue Jun 18, 2019 4:22 am
by sidlaw
solve used:
--enable-demuxer=pcm_s16le