mincut in seconds for api v1 #515
-
APIv1 does not support mincut in seconds, only in the number of frames. But at the same time, margin in seconds works. If margin works in seconds, then, as it seems to me, it is possible to implement mincut in seconds.
local auto_editor_args = {
"--export", "timeline:api=1",
"--quiet",
"--no-cache",
"--progress", "none",
"--margin", config.margin, -- "0.1s,0.2s"
"--edit", string.format("audio:stream=%d,threshold=%s,mincut=1s", audio_stream_index - 1, config.threshold)
} Upd. I can convert seconds to frames in the script, which I did not think of. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
auto-editor FILE --export timeline:api=1 --quiet --no-cache --progress none --edit audio:mincut=24,threshold=3%
Why do I have 20 frames of silence if mincut is 24? |
Beta Was this translation helpful? Give feedback.
-
This is fixed in
|
Beta Was this translation helpful? Give feedback.
-
--export timeline:api=1 --quiet --no-cache --progress none --edit audio:mincut=1s,threshold=3%
Video fps: 23.976 How does mincut and minclip work? How do I set up so that the minimum silence is as much in seconds as I want. |
Beta Was this translation helpful? Give feedback.
This is fixed in
master
/ will be fixed in25.1.1
margin
has a higher priority thanminclip
mincut