jave2 icon indicating copy to clipboard operation
jave2 copied to clipboard

PCM - Invalid data found when processing input

Open mengoni opened this issue 2 years ago • 1 comments

Hi, I'm not able to convert a PCM audio. Regardless the output format, it does not recognize the input.

My working ffmpeg command line is:

ffmpeg-amd64.exe -f s16be -i in.pcm out.wav

What I've tried:

EncodingAttributes attrs = new EncodingAttributes();
attrs.setInputFormat("s16be");
EncodingAttributes attrs = new EncodingAttributes();
attrs.setInputFormat("-f s16be");
EncodingAttributes attrs = new EncodingAttributes();
Map<String,String> m = new HashMap<>();
m.put("-f", "s16be");
attrs.setExtraContext(m);

The output is always the same: Invalid data found when processing input

That output is the same if I do not use the -f via command line, so I guess I'm forcing the input in the wrong way.

Can you help me?

Attached there's the input file (PCM 16bit big-endian mono 24khz).

in.zip

mengoni avatar Jun 23 '22 15:06 mengoni

Please enable logging and look what command line is generated

a-schild avatar Jul 18 '22 21:07 a-schild