How to deal long length of options on some arguments?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to deal long length of options on some arguments?

김민성
Hello.
 
I am trying to set command like below:
 
ffmpeg -i in.mp4 \
-force_key_frames [very....many....checkpoints] \
-segment_times [very....many....checkpoints] \
-segment_list segmentlist.txt \
-f segment \
-reset_timestamps 1 \
out%03d.mp4 \
 
Current bottleneck is "[very...many...checkpoints]", which is possibly can be very long argument.
 
Using trim filter for splitting many segments is impossible. (ffmpeg runs out of memory, I think)
Therefore, I think I have to use segment muxer to split video non-uniformly.
 
But every OS have character limits for single command, which is vulnerable for people like me(who can potentially make 10,000+ segments).
 
How can I pass option "segment_times" and "force_key_frames" by file?
(If it's impossible, I can split video uniformly and cut again from those fragments anyway, but I would be happy if there is any direct straightforward way to handle this issue.)

Thanks for reading this.
Minsung Kim
_______________________________________________
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: How to deal long length of options on some arguments?

Carl Zwanzig

Is there a specific reason to specify the absolute segment starts? It seems
like the process would be much easier if you use -segment_time instead.

Later,

z!


_______________________________________________
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: How to deal long length of options on some arguments?

김민성
As I said in email, -segment_time will split all segments have same length.
I want to split video segments non-uniformly, which requires additional cutting and merging steps if I use -segment_time.
 
Thank you.
Minsung Kim
 
 
 
-----Original Message-----
From: "Carl Zwanzig"<[hidden email]>
To: <[hidden email]>;
Cc:
Sent: 2019-12-06 (금) 09:53:06 (GMT+09:00)
Subject: Re: [FFmpeg-user] How to deal long length of options on some arguments?
 

Is there a specific reason to specify the absolute segment starts? It seems
like the process would be much easier if you use -segment_time instead.

Later,

z!


_______________________________________________
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".
_______________________________________________
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: How to deal long length of options on some arguments?

Carl Zwanzig
On 12/5/2019 6:50 PM, 김민성 wrote:
> As I said in email, -segment_time will split all segments have same length.
> I want to split video segments non-uniformly, which requires additional
> cutting and merging steps if I use -segment_time.
Actually, I don't think you said that. A clear definition of the problem is
always helpful.

You may find it more workable to use a frame-server and pull the number of
frames you want for each segment and reassemble them.

Also, please don't top-post on this list.

Late,r

z!
_______________________________________________
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".