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: https://ffmpeg.org/ffmpeg-formats.html#segment_002c-stream_005fsegment_002c-ssegment It can split at regular or arbitrary time points. Cheers, Moritz _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".