[FFmpeg-user] How can I get byte-accurate segments?

Grant Curtis codercurtis at gmail.com
Fri Feb 12 17:44:23 CET 2016

Thanks. Some more details:

I begin with an rtmp stream and segment it like this:

ffmpeg -i "[rtmp url]" -ar 16000 -f segment -segment_time 10 out%04d.wav

I think part of my problem is that I'm adding in .wav headers by specifying
this file type. To start out on the right foot, I should use .raw, right?

I attempted to use .raw by doing this:

ffmpeg -i "[rtmp url]" -map 0:1 -ar 16000 -segment_time 5 -acodec pcm_s16le

But then that command creates ~200 files for 5 seconds of recording no
matter what I set -segment_time to. What did I do wrong here?

More information about the ffmpeg-user mailing list