FFmpeg: How to split a 100 GB MP4 file into multiple 1 GB files?

I tried using the -fs switch, but it only creates one file. The -f segment option allows me to use the -segment_time option, but this limits the duration of the video, not its size.

So, suppose I want to use ffmpeg to split a 100 GB MP4 file into several 1 GB MP4 files, what is a switch?

+5
source share
1 answer

One way to do this in ffmpeg is ... don't use ffmpeg ;)

Instead, I would like to use MP4Box :

 MP4Box -splits 1048576 path/to/file 

(The -splits argument requires a file size in kilobytes, 1 GB in kilobytes - 1048576 )

+1
source

Source: https://habr.com/ru/post/1239891/


All Articles