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...) Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user