a-schild / jave2

The JAVE (Java Audio Video Encoder) library is Java wrapper on the ffmpeg project
GNU General Public License v3.0
1.28k stars 249 forks source link

I get an error when encode PCM files #174

Closed gg381534551 closed 1 year ago

gg381534551 commented 3 years ago

I get an error when encode PCM files, but other audio formats such as MP3, WAV are fine。

It is good to execute the following command

ffmpeg-x86_64-3.2.0-osx -acodec pcm_s16le -ac 1 -ar 8000 -f s16le -i test.pcm -vn -acodec pcm_s16le -ac 1 -ar 16000 -f s8 -y result.pcm -hide_banner

Executing this command returns an error

ffmpeg-x86_64-3.2.0-osx -i test.pcm -hide_banner

ws.schild.jave.InputFormatException: Invalid data found when processing input

a-schild commented 3 years ago

Could you please attach a test file which causes the problem? And please turn logging on, so we see what ffmpeg has to say