[FFmpeg-user] FFmpeg dumps audio raw data of more size than expected

m.kamalasubha m.kamalasubha m.kamalasubha at gmail.com
Mon Jan 29 15:16:36 EET 2018

Hello all,
I need to generate audio raw buffer for some 30 seconds from a clip whose
sample rate is 44100 Hz. I used the following FFmpeg command to dump the
raw data.
  ffmpeg -i <input> -ss 00:00:00  -t 00:00:30 -f s16le -acodec pcm_s16le
-ac 1 -ar 44100 audi.raw

Expected audio raw file size : 44100 * 2 * 30 = 2646000
Actual audio raw file size : 2646176

I am wondering from where that extra 176 bytes arrive for 30 secs samples
with sample rate 44100 Hz and sample size 2 bytes respectively.

Kindly help on those lines.


More information about the ffmpeg-user mailing list