(no subject)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

Raj Cryp
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?
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: split files based on time

Moritz Barsnick
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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".