[FFmpeg-user] split files based on time

Moritz Barsnick barsnick at gmx.net
Wed Mar 3 13:05:42 EET 2021

Hi Raj,

On Tue, Mar 02, 2021 at 21:14:23 -0700, Raj Cryp wrote:
> ffmpeg has the option to split file based on time. Say starting with time t
> and go for length l.
> I am thinking of basically computing the time windows which will result in
> the desired file size. Say a 1 min video of 20 MB will need to be split in
> parts roughly 6 sec each.
> Is there an option to pass desired file size directly into the command?

You should take a look at the segment muxer and its examples:

It can split at regular or arbitrary time points.


More information about the ffmpeg-user mailing list