How to split a video file by size with ffmpeg

ffmpegvideo

i want to split a video file by size using ffmpeg.

Do you know how to do that ?

Do i have to calculate the duration that corresponds to each size ?

Thank you.

Best Answer

  • The -fs option limits the file size. The number is supplied in bytes. If you do not wish to re-encode, use the -copy option.

    Unfortunately, I'm not aware of how to seek to the byte position for starting the next video. But you could check resulting duration and start the next encoding using the -ss option to start encoding from there onwards.

  • Related Question