Skip to content

Effort free video editing!

Fix outdated and wrong statements in the docs

WyattBlue3cd782ada982
diff --git a/docs/src/docs/actions.md b/docs/src/docs/actions.md
index e9ccff28..dc414bd1 100644
--- a/docs/src/docs/actions.md
+++ b/docs/src/docs/actions.md
@@ -325,7 +325,22 @@ auto-editor video.mp4 -w:1 drawbox:0:0:1920:200:#000000
its own overlay layer instead of onto the picture (see [add](#add) below).
**How it works:** Uses FFmpeg's `drawbox` filter with `t=fill`, so the
-rectangle is filled rather than outlined. Only RGB colors are supported.
+rectangle is filled rather than outlined. Besides `#RRGGBB` and color names,
+`yuv#YYUUVV` writes raw Y'CbCr values.
+
+### confine
+
+Restrict the adjustment effects that follow it in the chain to a region,
+`confine:x:y:w:h[:radius][:feather][:invert]` or `confine:poly=x1/y1/x2/y2/...`.
+The region takes the same geometry as `mask`. It affects `blur`, `brightness`,
+`brighthue`, `contrast`, `saturation`, `invert`, `erosion`, `aberration`, and
+`pixelate`; geometry effects like `zoom` and `rotate` are unaffected. A bare
+`confine` resets to the full frame.
+
+```sh
+# Blur only a 200x80 box, e.g. to censor a license plate
+auto-editor video.mp4 -w:1 confine:400:300:200:80,blur:30
+```
### pos
@@ -349,8 +364,9 @@ Overlay a media file on top of the matched sections, `add:path` or
images are held for the whole section. In place of a file, a **generator action** (with its
usual arguments) may be given: the layer starts as a transparent canvas that
the action paints, so the picture below shows through everywhere it did not
- draw. The video generators are [confetti](/ref/actions#confetti) and
- [drawbox](/ref/actions#drawbox); [tone](/ref/actions#tone) is an audio
+ draw. The video generators are [confetti](/ref/actions#confetti),
+ [drawbox](/ref/actions#drawbox), [text](/ref/actions#text), and
+ [burn](/ref/actions#burn); [tone](/ref/actions#tone) is an audio
generator, and adds an audio layer instead of a picture (all are marked `G`
in the [quick reference](/ref/actions#quick-reference)).
- **x**, **y**, **scale** — optional placement, applied via a `pos` action
@@ -438,8 +454,8 @@ created when there is an active section for the overlay to sit on: e.g.
edit leaves no active sections (so the `-w:1` overlay matches nothing) the
output stays audio-only.
-The default output name copies the input's extension, which could not hold that
-video (`song.mp3` → `song_ALTERED.mp3`), so it switches to `.mp4` instead. An
+The default output name would copy the input's extension, which can't hold
+that video, so it switches to `.mp4` instead: `song.mp3` gives `song_ALTERED.mp4`. An
explicit `-o out.mp3` is still honored, with a warning that the video is dropped.
## Multiple Actions (Chaining)
diff --git a/docs/src/docs/anorm.md b/docs/src/docs/anorm.md
index 7fe18b98..1c871d07 100644
--- a/docs/src/docs/anorm.md
+++ b/docs/src/docs/anorm.md
@@ -14,6 +14,12 @@ Example:
auto-editor --audio-normalize peak:-3 # set max peak to -3dB
```
+### Parameters
+
+- **t** (target): Level the highest peak is scaled to, in dB
+ - Default: `-8.0`
+ - Range: `-99.0` to `0.0`
+
## EBU
Example:
diff --git a/docs/src/docs/file-size.md b/docs/src/docs/file-size.md
index 6b59b111..be138043 100644
--- a/docs/src/docs/file-size.md
+++ b/docs/src/docs/file-size.md
@@ -48,7 +48,7 @@ The table below compares different video codecs:
| av2 | super | fast? | experimental |
| vvc | super | fast? | experimental |
-Auto-Editor's static builds do not include AV2 or VVC encoders.
+Auto-Editor doesn't support AV2 or VVC yet.
Example:
```sh
diff --git a/docs/src/docs/range-syntax.md b/docs/src/docs/range-syntax.md
index 7ee1b102..c8fba41a 100644
--- a/docs/src/docs/range-syntax.md
+++ b/docs/src/docs/range-syntax.md
@@ -17,7 +17,7 @@ auto-editor video.mp4 --keep start,30sec -30sec,end
## How Range Syntax Works
The `--keep`, `--cut`, `--set-speed`, and `--set-action` options all use time range syntax.
-It describes two numbers, the start and end point, separated by a singe comma `,`. The start number is inclusive, while the end number is exclusive.
+It describes two numbers, the start and end point, separated by a single comma `,`. The start number is inclusive, while the end number is exclusive.
```sh
# This will cut out the first frame: frame 0
@@ -31,6 +31,14 @@ auto-editor example.mp4 --cut 0,5
auto-editor example.mp4 --cut 10,70
```
+`--cut`, `--keep`, and `--set-speed` take as many ranges as follow them, up to the next option or input file. Repeating the option does the same:
+
+```sh
+# Both cut out the first and last 30 seconds
+auto-editor video.mp4 --cut start,30sec -30sec,end
+auto-editor video.mp4 --cut start,30sec --cut -30sec,end
+```
+
## Variables
Time range syntax allows two variables: `start` and `end`
`start` is the same as `0`
@@ -48,7 +56,7 @@ auto-editor example.mp4 --cut start,end
```
## Units
-The default unit is the timeline's timebase. Since specifying the range in this unit can sometimes be annoying. You can use the `sec` unit to specify the range in seconds. (Note that the seconds range will be rounded to the nearest timebase to you don't have any more precision than usual).
+The default unit is the timeline's timebase. Since counting frames can be annoying, you can use the `sec` unit to specify the range in seconds. (A time in seconds is rounded to the nearest frame, so you don't get any more precision than usual.)
```sh
# Cut out the first 10 seconds.
@@ -83,7 +91,7 @@ Negative numbers can be used to count down starting from the end.
* `-1:30,end` selects the last minute and a half.
## Speed for Range
-The `--set-speed-for-range` option has a slight twist on time range syntax. It accepts three numbers. `speed`, `start`, and `end`, separated by commas. `speed` can be a decimal number, but not negative. `start` and `end` work as described above.
+The `--set-speed-for-range` option has a slight twist on time range syntax. It accepts three numbers. `speed`, `start`, and `end`, separated by commas. `speed` can be a decimal number; zero or a negative speed cuts the range instead. `start` and `end` work as described above.
```sh
# Set the speed to 2x from frame 0 to frame 29
diff --git a/docs/src/docs/subcommands/cache.md b/docs/src/docs/subcommands/cache.md
index 3f217f82..5fecd60f 100644
--- a/docs/src/docs/subcommands/cache.md
+++ b/docs/src/docs/subcommands/cache.md
@@ -2,7 +2,7 @@
title: cache
---
-The `cache` command stores the `audio` and `motion` levels, saving time at the cost of space. The cache will go up to 10 entries, and will delete the oldest after.
+The `cache` command stores the `audio` and `motion` levels, saving time at the cost of space. It keeps up to 255 entries, deleting the oldest past that.
## Examples
@@ -12,7 +12,7 @@ To list the cache files:
auto-editor cache
```
-To remove the cache files:
+To remove the cache files (`clean` works too):
```sh
auto-editor cache clear
diff --git a/docs/src/docs/subcommands/info.md b/docs/src/docs/subcommands/info.md
index 7819b0b8..4726542b 100644
--- a/docs/src/docs/subcommands/info.md
+++ b/docs/src/docs/subcommands/info.md
@@ -46,7 +46,7 @@ resources/only-video/man-on-green-screen.gif:
- fps: 100/3
- resolution: 1280x720
- aspect ratio: 16:9
- - pixel aspect ratio: 64/64
+ - pixel aspect ratio: 1
- duration: 24.41
- pix fmt: bgra
- timebase: 1/100
diff --git a/docs/src/docs/subcommands/levels.md b/docs/src/docs/subcommands/levels.md
index a38d6304..3ba5fc3e 100644
--- a/docs/src/docs/subcommands/levels.md
+++ b/docs/src/docs/subcommands/levels.md
@@ -10,39 +10,19 @@ Because typical levels output is so long, it won't be displayed verbatim.
auto-editor levels example.mp4
@start
-0.00008813678829543451
-0.00026441036488630354
-0.00026441036488630354
-0.00017627357659086903
-0.00775603736999823726
-0.04794641283271637577
-0.14604265820553499755
-0.44368059227921735621
-0.52362065926317646891
-0.46201304424466771437
-0.47611493037193725053
-0.51427815970386037137
-0.86162524237616777700
-0.76291203948528119039
-0.70853164110699806688
-(Continues for 1000 more lines)
-0.18905341089370703012
-0.02793936188965273973
-0.01401374933897408734
-0.01189846641988365900
-0.00493566014454433280
-0.00317292437863564251
-0.00105764145954521417
-0.00008813678829543451
-0.00008813678829543451
-0.00000000000000000000
-0.00000000000000000000
-(30 more lines)
-0.00000000000000000000
-0.00000000000000000000
-0.00000000000000000000
-0.00000000000000000000
-
+0.00003
+0.00009
+0.00009
+0.00006
+0.00269
+0.0166
+0.05057
+0.15363
+0.18131
+(Continues for about 1,250 more lines)
+0.0
+0.0
+0.0
```
levels uses `--edit` to determine what is being analyzed, which by default is `audio`.
diff --git a/docs/src/docs/subcommands/subdump.md b/docs/src/docs/subcommands/subdump.md
index 5a2c05ae..b223b307 100644
--- a/docs/src/docs/subcommands/subdump.md
+++ b/docs/src/docs/subcommands/subdump.md
@@ -7,19 +7,22 @@ title: subdump
Here's an example:
```
-auto-editor subdump resources/subtitle.mp4
+auto-editor subdump resources/mov_text.mp4
-file: resources/subtitle.mp4 (0:und:srt)
-1
-00:00:00,523 --> 00:00:01,016
-oop
+file: resources/mov_text.mp4 (0:mov_text)
+0,0,Default,,0,0,0,,oop
+1,0,Default,,0,0,0,,boop
+------
+```
-2
-00:00:01,523 --> 00:00:01,916
-boop
+Each line is a subtitle event as an ASS dialogue line, whatever the stream's format. The header gives each stream's index and codec.
+With `--json`, it prints each stream's cues with their times in seconds and plain text instead:
-------
+```
+auto-editor subdump --json resources/mov_text.mp4
+
+{"resources/mov_text.mp4":[{"stream":0,"codec":"mov_text","cues":[{"start":0.523,"end":1.016,"text":"oop"},{"start":1.523,"end":1.916,"text":"boop"}]}]}
```
subdump won't work if the subtitle stream is internally represented as a bitmap image instead of formatted text.
diff --git a/docs/src/docs/subcommands/whisper.md b/docs/src/docs/subcommands/whisper.md
index 283da55d..47755827 100644
--- a/docs/src/docs/subcommands/whisper.md
+++ b/docs/src/docs/subcommands/whisper.md
@@ -30,12 +30,12 @@ auto-editor whisper example.mp4 ggml-medium.en.bin -o out.srt
The input media file, or `:mic` to transcribe the microphone live. Only the first audio stream is used; the audio is resampled to 16kHz (whisper's preferred rate) before transcription.
### `<model>`
-Path to a `ggml` whisper model, e.g. `ggml-small.en.bin` or `ggml-large-v2.bin`.
+Path to a `ggml` whisper model, e.g. `ggml-small.en.bin` or `ggml-large-v2.bin`. A [parakeet](https://huggingface.co/ggml-org/parakeet-GGUF) model works too, though it detects the language itself and doesn't take `--language`, `--translate`, or `--prompt`. On macOS 26 and later, `apple` uses the system's built-in transcriber, which doesn't take `--translate` or `--prompt`.
### `-l, --language LANG`
-Set the spoken language instead of letting whisper auto-detect it: a code like `en`, `eng`, or `en-US`, or an English name like `english`. A language whisper doesn't know is an error. (default `auto`)
+Set the spoken language instead of letting whisper auto-detect it: a code like `en`, `eng`, or `en-US`, or an English name like `english`. A language whisper doesn't know is an error. With the `apple` model, give a locale like `en_US`. (default `auto`)
-### `--format FORMAT`
+### `-f, --format FORMAT`
Set the output format. Choices are `text`, `srt`, and `json`. Only needed to override the format `--output`'s extension picks. (default `text`)
### `-o, --output FILE`
@@ -44,8 +44,8 @@ Where to write the transcript. (defaults to stdout)
### `-tr, --translate`
Translate from the source language to English.
-### `-sw, --split-words`
-Split the output so that each token is at most one word long.
+### `-sw, --split-word, --split-words`
+Output one word per cue instead of full segments.
### `--queue SECS`
The maximum length in seconds of a single transcribed segment. Must be between 1 and 86400. (default 30)
diff --git a/docs/src/docs/v2.md b/docs/src/docs/v2.md
index 10bd0f9c..bded7844 100644
--- a/docs/src/docs/v2.md
+++ b/docs/src/docs/v2.md
@@ -32,9 +32,9 @@ auto-editor input.v2 -o output.mkv
```
## The Spec
-There are four required keys: `"version"`, `"source"`, `"tb"`, and `"effects"`, plus `"clips"`. If there are more keys present in the JSON, the parser should ignore them.
+The required keys are `"version"`, `"source"`, and `"tb"`; `"effects"` and `"clips"` may be left out, and count as empty. If there are more keys present in the JSON, the parser should ignore them.
-shown using TypeScript notation, the keys can be set to the following values.
+Shown using TypeScript notation, the keys can be set to the following values.
```ts
interface v2 {
version: "2"; // Must always be set as "2".
diff --git a/docs/src/docs/v3.md b/docs/src/docs/v3.md
index 70f7fdd9..bf795b47 100644
--- a/docs/src/docs/v3.md
+++ b/docs/src/docs/v3.md
@@ -26,7 +26,7 @@ auto-editor input.edl --export v3 -o output.v3
This format is considered partially-stable. Breaking changes can be made to feature level changes, but not patch level changes.
## The Spec
-shown using TypeScript notation, the format can be described:
+Shown using TypeScript notation, the format can be described:
```ts
type Natural = number; // Number that is >= 0.