I can split an aid (or video) file by time, but how do I split it by file size?

ffmpeg -i input.mp3 -ss S -to E -c copy output1.mp3 -ss S -to E -c copy output2.mp3

Which is fine if I have time codes, but if I want the output files to be split at 256MB regardless of the time length, what do I do? (What I am doing now is estimating, but that often means I have to make multiple runs at it with -ss S -to E to get files that are close to where I want in size).

  • wow. searched for ffmpeg file size and that di not come up. So, not possible in ffmpeg itself, but possible with a wrapper script. That will work, was hoping to avoid that, but it will work. (well, the script does not work with current ffmpeg, but is probably fixable) – lbutlr Nov 8 '20 at 16:54

Your Answer

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

Browse other questions tagged or ask your own question.