[FFmpeg-user] How can I get byte-accurate segments?
Carl Eugen Hoyos
cehoyos at ag.or.at
Fri Feb 12 11:39:43 CET 2016
Grant Curtis <codercurtis <at> gmail.com> writes:
> I'm working with a Speech-to-text service that wants audio
> files that are exactly 160kb large, which means 80,000
> 16-bit samples
> So far I've converted my video stream into an audio file
> with a sampling rate of 16,000 and converted it to s16le.
> Now I just have to grab 80,000 samples out of it.
> Is there any way to do that?
I may misunderstand your question (others interpreted it
differently) but what's wrong with -aframes?
$ ffmpeg -i input -ar 16k -aframes 80000 out.sw
(or the split shell command...)
More information about the ffmpeg-user