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

Cley Faye cleyfaye at gmail.com
Mon Jan 29 15:38:26 EET 2018


2018-01-29 14:16 GMT+01:00 m.kamalasubha m.kamalasubha <
m.kamalasubha at gmail.com>:

> 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.
>
>
>
​You really should post the complete output from ffmpeg here, it's the
*only* way to know what might be happening when the unexpected happens :)

(for the record, I tried your command and the output was as expected).​


More information about the ffmpeg-user mailing list