You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -72,9 +72,8 @@ Any of the valid FFmpeg [Video Filter Options](https://ffmpeg.org/ffmpeg.html#Vi
72
72
73
73
### Examples
74
74
75
-
*`> av1an -i input.mkv -o output.mkv -f "-vf crop=100:100:100:100"` - Crops the video by 100 pixels from the top, left, bottom, and right
76
-
*`> av1an -i input.mkv -o output.mkv -f "-vf scale=1920:1080"` - Scales the video to 1920x1080
77
-
75
+
-`> av1an -i input.mkv -o output.mkv -f "-vf crop=100:100:100:100"` - Crops the video by 100 pixels from the top, left, bottom, and right
76
+
-`> av1an -i input.mkv -o output.mkv -f "-vf scale=1920:1080"` - Scales the video to 1920x1080
78
77
79
78
## Audio Parameters `-a`, `--audio-params`
80
79
@@ -94,8 +93,8 @@ If not specified, `-c:a copy` is used.
94
93
95
94
### Examples
96
95
97
-
*`> av1an -i input.mkv -o output.mkv -a "-c:a libopus -b:a 128k"` - Encodes all audio tracks with [libopus][ffmpeg-libopus] at 128k
98
-
*`> av1an -i input.mkv -o output.mkv --audio-params "-c:a:0 libopus -b:a:0 128k -c:a:1 aac -ac:a:1 1 -b:a:1 24k"` - Encodes the first audio track with [libopus][ffmpeg-libopus] at 128k and the second audio track with [aac][ffmpeg-aac] at 24k and downmixed to a single channel
96
+
-`> av1an -i input.mkv -o output.mkv -a "-c:a libopus -b:a 128k"` - Encodes all audio tracks with [libopus][ffmpeg-libopus] at 128k
97
+
-`> av1an -i input.mkv -o output.mkv --audio-params "-c:a:0 libopus -b:a:0 128k -c:a:1 aac -ac:a:1 1 -b:a:1 24k"` - Encodes the first audio track with [libopus][ffmpeg-libopus] at 128k and the second audio track with [aac][ffmpeg-aac] at 24k and downmixed to a single channel
* Errors generally only occur if the input file itself is broken (for example, if the video bitstream is invalid in some way, video players usually try to recover from the errors as much as possible even if it results in visible artifacts, while lsmash will instead throw an error)
* Usually accurate but requires intermediate files (which can be large)
136
-
* Avoids decoding irrelevant frames by seeking to the first keyframe before the requested frame and decoding only a (usually very small) number of irrelevant frames until relevant frames are decoded and piped to the encoder
137
-
*`select` - Select
138
-
* Requires FFmpeg
139
-
* Extremely slow, but accurate
140
-
* Does not require intermediate files
141
-
* Decodes from the first frame to the requested frame, without skipping irrelevant frames (causing quadratic decoding complexity)
142
-
*`segment` - Segment
143
-
* Requires FFmpeg
144
-
* Create chunks based on keyframes in the source
145
-
* Not frame exact, as it can only split on keyframes in the source
146
-
* Requires intermediate files (which can be large)
- Errors generally only occur if the input file itself is broken (for example, if the video bitstream is invalid in some way, video players usually try to recover from the errors as much as possible even if it results in visible artifacts, while lsmash will instead throw an error)
- Usually accurate but requires intermediate files (which can be large)
135
+
- Avoids decoding irrelevant frames by seeking to the first keyframe before the requested frame and decoding only a (usually very small) number of irrelevant frames until relevant frames are decoded and piped to the encoder
136
+
-`select` - Select
137
+
- Requires FFmpeg
138
+
- Extremely slow, but accurate
139
+
- Does not require intermediate files
140
+
- Decodes from the first frame to the requested frame, without skipping irrelevant frames (causing quadratic decoding complexity)
141
+
-`segment` - Segment
142
+
- Requires FFmpeg
143
+
- Create chunks based on keyframes in the source
144
+
- Not frame exact, as it can only split on keyframes in the source
145
+
- Requires intermediate files (which can be large)
147
146
148
147
### Default
149
148
150
149
If not specified, the first available method is used in this order:
151
150
152
-
*`lsmash`
153
-
*`ffms2`
154
-
*`dgdecnv`
155
-
*`bestsource`
156
-
*`hybrid`
151
+
-`lsmash`
152
+
-`ffms2`
153
+
-`dgdecnv`
154
+
-`bestsource`
155
+
-`hybrid`
157
156
158
157
### Examples
159
158
160
-
*`> av1an -i input.mkv -o output.mkv -m lsmash` - Use L-SMASH-Works for chunking
161
-
*`> av1an -i input.mkv -o output.mkv -m ffms2` - Use FFmpegSource for chunking
162
-
*`> av1an -i input.mkv -o output.mkv -m hybrid` - Use hybrid for chunking
159
+
-`> av1an -i input.mkv -o output.mkv -m lsmash` - Use L-SMASH-Works for chunking
160
+
-`> av1an -i input.mkv -o output.mkv -m ffms2` - Use FFmpegSource for chunking
161
+
-`> av1an -i input.mkv -o output.mkv -m hybrid` - Use hybrid for chunking
163
162
164
163
## Chunk Order `--chunk-order`
165
164
166
165
The order in which Av1an will encode chunks.
167
166
168
167
### Possible Values
169
168
170
-
*`long-to-short` - The longest chunks will be encoded first. This method results in the smallest amount of time with idle cores, as the encode will not be waiting on a very long chunk to finish at the end of the encode after all other chunks have finished.
171
-
*`short-to-long` - The shortest chunks will be encoded first.
172
-
*`sequential` - The chunks will be encoded in the order they appear in the video.
173
-
*`random` - The chunks will be encoded in a random order. This will provide a more accurate estimated filesize sooner in the encode.
169
+
-`long-to-short` - The longest chunks will be encoded first. This method results in the smallest amount of time with idle cores, as the encode will not be waiting on a very long chunk to finish at the end of the encode after all other chunks have finished.
170
+
-`short-to-long` - The shortest chunks will be encoded first.
171
+
-`sequential` - The chunks will be encoded in the order they appear in the video.
172
+
-`random` - The chunks will be encoded in a random order. This will provide a more accurate estimated filesize sooner in the encode.
174
173
175
174
### Default
176
175
177
176
If not specified, `long-to-short` is used.
178
177
179
178
### Examples
180
179
181
-
*`> av1an -i input.mkv -o output.mkv --chunk-order short-to-long` - Encodes the shortest chunks first
182
-
*`> av1an -i input.mkv -o output.mkv --chunk-order random` - Encodes the chunks in a random order
180
+
-`> av1an -i input.mkv -o output.mkv --chunk-order short-to-long` - Encodes the shortest chunks first
181
+
-`> av1an -i input.mkv -o output.mkv --chunk-order random` - Encodes the chunks in a random order
183
182
184
183
## Photon Noise `--photon-noise`
185
184
@@ -199,8 +198,8 @@ If not specified, `0` is used.
199
198
200
199
### Examples
201
200
202
-
*`> av1an -i input.mkv -o output.mkv --photon-noise 1` - Applies a ISO 100 photon noise table
203
-
*`> av1an -i input.mkv -o output.mkv --photon-noise 12` - Applies a ISO 1200 photon noise table
201
+
-`> av1an -i input.mkv -o output.mkv --photon-noise 1` - Applies a ISO 100 photon noise table
202
+
-`> av1an -i input.mkv -o output.mkv --photon-noise 12` - Applies a ISO 1200 photon noise table
204
203
205
204
## Chroma Noise `--chroma-noise`
206
205
@@ -228,16 +227,16 @@ Determines method used for concatenating encoded chunks and audio into output fi
228
227
229
228
### Possible Values
230
229
231
-
*`ffmpeg` - FFmpeg
232
-
* Unfortunately, ffmpeg sometimes produces file with partially broken audio seeking, so `mkvmerge` should generally be preferred if available. FFmpeg concatenation also produces broken files with the `--enable-keyframe filtering=2` option in aomenc, so it is disabled if that option is used. However, FFmpeg can mux into formats other than Matroska (`.mkv`), such as WebM. To output WebM, use a `.webm` extension in the output file.
233
-
*`mkvmerge` - Matroska
234
-
* Generally the best concatenation method (as it does not have either of the aforementioned issues that ffmpeg has), but can only produce matroska (.mkv) files. Requires mkvmerge to be installed.
235
-
*`ivf` - IVF
236
-
* Experimental concatenation method implemented in Av1an itself to concatenate to an IVF file (which only supports VP8, VP9, and AV1, and does not support audio).
230
+
-`ffmpeg` - FFmpeg
231
+
- Unfortunately, ffmpeg sometimes produces file with partially broken audio seeking, so `mkvmerge` should generally be preferred if available. FFmpeg concatenation also produces broken files with the `--enable-keyframe filtering=2` option in aomenc, so it is disabled if that option is used. However, FFmpeg can mux into formats other than Matroska (`.mkv`), such as WebM. To output WebM, use a `.webm` extension in the output file.
232
+
-`mkvmerge` - Matroska
233
+
- Generally the best concatenation method (as it does not have either of the aforementioned issues that ffmpeg has), but can only produce matroska (.mkv) files. Requires mkvmerge to be installed.
234
+
-`ivf` - IVF
235
+
- Experimental concatenation method implemented in Av1an itself to concatenate to an IVF file (which only supports VP8, VP9, and AV1, and does not support audio).
237
236
238
237
### Default
239
238
240
-
If not specified, `ffmpeg` is used.
239
+
If not specified, `mkvmerge` is used.
241
240
242
241
## Pixel Format `--pix-format`
243
242
@@ -249,9 +248,9 @@ Any valid pixel format name. See [FFmpeg](https://www.ffmpeg.org/doxygen/0.11/pi
249
248
250
249
### Examples
251
250
252
-
*`> av1an -i input.mkv -o output.mkv` - Use YUV420P10LE by default
0 commit comments