Edit Reference

When you run:

auto-editor example.mp4 --edit audio:0.05,stream=0

You're writing the syntax-sugary equivalent of:

auto-editor example.mp4 --edit "(audio 0.05 #:stream 0)"

All the edit methods are listed below:

Edit Methods

(audio [threshold] [stream] [mincut] [minclip]) → bool-array?  Procedure

 threshold: Threshold = 0.04

 stream: (U Natural 'all) = 'all

 mincut: Natural = 6

 minclip: Natural = 3

Do a one-pass audio filter based on loudest sample in a timebase section, divided by the max value a sample can be. Then apply minclip, then mincut since this method particular benenfits.

(motion [threshold] [stream] [blur] [width]) → bool-array?  Procedure

 threshold: Threshold = 0.02

 stream: Natural = 0

 blur: Natural = 9

 width: Natural = 400

Scale the video to width pixels, convert to grayscale, apply a Gaussian blur of blur amount, then compare the difference with the previous frame.

(subtitle pattern [stream] [ignore-case] [max-count]) → bool-array?  Procedure

 pattern: String

 stream: Natural = 0

 ignore-case: Bool = #f

 max-count: (U Natural Nil) = nil

When pattern, a RegEx Expression, matches a subtitle line, consider that time the line occupies as loud.

Operators

(or operand ...) → bool-array?  Procedure

 operandbool-array?

"Logical Or" two or more boolean arrays. If they are different lengths, use the biggest one.

(and operand ...) → bool-array?  Procedure

 operandbool-array?

"Logical And" two or more boolean arrays.