0

I have a large pcm file with about an hour's worth of data. I want to split it up into minute long chunks. Is there a way to ffmpeg to do that pr some other utility?

Basically going from 0 - 3600s I want multiple files each going from 0 - 60s, 61-120s etc.

0

FFmpeg's segment muxer does this.

ffmpeg -i in.wav -c copy -f segment -segment_time 60 out%d.wav

This will create out0.wav, out1.wav, out2.wav ... , each 60 seconds long.

If your input is raw PCM rather than WAV/AIFF, you'll need to manually set the input parameters e.g. ffmpeg -f s16le -channels 2 -ar 48000 -i in.pcm ...

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.