[FFmpeg-user] PCM ending bits differ

Shi Qiu qiushics at gmail.com
Mon Feb 12 08:26:35 EET 2018


I was trying to convert a pcm from 44100/2 channel to 16000/1 channel.

I modified resampling_audio.c to read from the input of pcm file, and then
commpared with ffmpeg command:

ffmpeg.exe -f s16le -ar 44100 -ac 2 -i input.pcm -c:a pcm_s16le -ar 16000
-ac 1 -f s16le o2.pcm -y

several bit at the end of output pcm files differ.

Any ideas?

---
cmp -l o2.pcm output.pcm
1594519  43  44
1594521 123 122
1594525 217 216
1594527 275 300

ls -la o2.pcm output.pcm
-rw-r--r-- 1 user None 1594528 Feb 12 14:15 o2.pcm
-rw-r--r-- 1 user None 1594528 Feb 12 11:15 output.pcm


More information about the ffmpeg-user mailing list