improve readme

This commit is contained in:
Zen 2021-07-22 12:49:04 +03:00
parent bf1b6e98b8
commit 5e7f8841a3

View file

@ -23,10 +23,8 @@ Example with default parameters:
With your own parameters:
av1an -i input -e aom -v " --cpu-used=3 --end-usage=q --cq-level=30 --threads=8 " -w 10
--split-method aom_keyframes --target-quality 95 --vmaf-path "vmaf_v0.6.1.pkl"
-min-q 20 -max-q 60 -f "-vf scale=-1:1080" -a "-c:a libopus -ac 2 -b:a 192k"
-s scenes.csv -log my_log -o output
av1an -i input -v " --cpu-used=3 --end-usage=q --cq-level=30 --threads=8 " -w 10
--target-quality 95 -a "-c:a libopus -ac 2 -b:a 192k" -log my_log -o output
@ -39,9 +37,7 @@ With your own parameters:
Output file ending is always `.mkv`
-e --encoder Encoder to use
(`aom`,`rav1e`,`svt_av1`,`vpx`,`x265`, `x264`)
Default: aom
Example: -enc rav1e
[default: aom] [possible values: aom, rav1e, vpx, svt-av1, x264, x265]
-v --video-params Encoder settings flags (If not set, will be used default parameters.)
Must be inside ' ' or " "
@ -52,10 +48,7 @@ With your own parameters:
-w --workers Override number of workers.
-r --resume If encode was stopped/quit resumes encode with saving all progress.
Resuming automatically skips scenedetection, audio encoding/copy,
splitting, so resuming only possible after actual encoding is started.
Temp folder must be present to resume.
-r --resume Resumes encoding.
--keep Doesn't delete temporary folders after encode has finished.
@ -63,7 +56,7 @@ With your own parameters:
-l --logging Path to .log file(By default created in temp folder)
--temp Set path for the temporary folder. Default: .temp
--temp Set path for the temporary folder. [default: .hash]
-c --concat Concatenation method to use for splits Default: ffmpeg
[possible values: ffmpeg, mkvmerge, ivf]
@ -85,31 +78,20 @@ With your own parameters:
--pix-format Setting custom pixel/bit format for piping
(Default: 'yuv420p10le')
Options should be adjusted accordingly, based on the encoder.
<h3 align="center">Segmenting</h3>
--split-method Method used for generating splits.(Default: av-scenedetect)
Options: `av-scenedetect`, `none`
`none` - skips scenedetection. Useful for splitting by time
`none` - skips scenedetection.
-m --chunk-method Determine the method in which chunks are made for encoding.
By default the best method is selected automatically in this order:
vs_ffms2 > vs_lsmash > hybrid.
vs_ffms2 or vs_lsmash are recommended.
['hybrid'(default), 'select', 'vs_ffms2', 'vs_lsmash']
By default the best method is selected automatically.
[possible values: segment, select, ffms2, lsmash, hybrid]
-s --scenes Path to file with scenes timestamps.
If the file doesn't exist, a new file will be generated
in the current folder.
First run to generate stamps, all next reuse it.
Example: "-s scenes.csv"
-s --scenes File to save/read scenes.
-x --extra-split Adding extra splits if frame distance between splits bigger than the
given value. Pair with none for time based splitting or with any
other splitting method to break up massive scenes.
Example: 1000 frames video with a single scene,
-xs 200 will add splits at 200,400,600,800.
-x --extra-split Size of chunk after which it will be split [default: 240]
--min-scene-len Specifies the minimum number of frames in each split.
@ -117,12 +99,7 @@ With your own parameters:
--target-quality Quality value to target.
VMAF used as substructure for algorithms.
Supported in all encoders supported by Av1an.
Best works in range 85-97.
When using this mode, you must specify full encoding options.
These encoding options must include a quantizer based mode,
and some quantizer option provided. (This value will be replaced)
`--crf`,`--cq-level`,`--quantizer` etc
When using this mode, you must use quantizer/quality modes of enocoder.
--target-quality-method Type of algorithm for use.
Options: per_shot
@ -138,55 +115,41 @@ With your own parameters:
(`vmaf_v0.6.1.pkl` and `vmaf_v0.6.1.pkl.model`)
(Required if VMAF calculation doesn't work by default)
--vmaf-res Resolution scaling for VMAF calculation,
vmaf_v0.6.1.pkl is 1920x1080 (by default),
vmaf_4k_v0.6.1.pkl is 3840x2160 (don't forget about vmaf-path)
--vmaf-res Resolution for VMAF calculation.
[default: 1920x1080]
--probes Number of probes for interpolation.
1 and 2 probes have special cases to try to work with few data points.
The optimal level is 4-6 probes. Default: 4
--probes Number of probes for target quality. [default: 4]
--probe-slow Use video encoding parameters for vmaf probes to get a more
accurate Q at the cost of speed.
--probe-slow Use probided video encoding parameters for vmaf probes.
--vmaf-filter Filter used for VMAF calculation. The passed format is filter_complex.
So if crop filter used ` -ff " -vf crop=200:1000:0:0 "`
`--vmaf-filter` must be : ` --vmaf-filter "crop=200:1000:0:0"`
--probing-rate Setting rate for VMAF probes (Every N frame used in probe, Default: 4)
--probing-rate Setting rate for VMAF probes. Using every N frame used in probe.
[default: 4]
--vmaf-threads Limit number of threads that are used for VMAF calculation
Example: --vmaf-threads 12
(Required if VMAF calculation gives error on high core counts)
<h2 align="center">Main Features</h2>
**Splitting video by scenes for parallel encoding** because AV1 encoders are currently not very good at multithreading and encoding is limited to a very limited number of threads.
- [Vapoursynth](http://www.vapoursynth.com) script input support.
- Fastest way to encode AV1 without losing quality, as fast as many CPU cores you have :).
- Speed up video encoding.
- Target Quality mode. Targeting end result reference visual quality. VMAF used as a substructure
- Resuming encoding without loss of encoded progress.
- Simple and clean console look.
- Automatic detection of the number of workers the host can handle.
- Builds the encoding queue with bigger files first, minimizing waiting for the last scene to encode.
- Both video and audio transcoding with FFmpeg.
- Logging of the progress of all encoders.
- Both video and audio transcoding.
## Install
<h2 align="center">Warning! Av1an GIT is currently under state of changing. Building and using latest Av1an GIT is differs from PIP stable.
[For current latest follow this instructions](https://gist.github.com/master-of-zen/0833bec1e7df72ed165083cd44e9187b). If latest changes not required, just use PIP version</h2>
- Prerequisites:
- [Windows Prebuilds](https://ci.appveyor.com/project/master-of-zen/av1an/build/artifacts)
- [Install Python3](https://www.python.org/downloads/) <br>
When installing under Windows, select the option `add Python to PATH` in the installer
- [Install FFmpeg](https://ffmpeg.org/download.html)
- Recommended to install vapoursynth with lsmash for faster and better processing
- Recommended to install vapoursynth with lsmash/ffms2 for faster and better processing
- Encoder of choice:
- [Install AOMENC](https://aomedia.googlesource.com/aom/)
@ -203,16 +166,11 @@ With your own parameters:
- [mkvmerge](https://mkvtoolnix.download/)
- With a package manager:
- [PyPI](https://pypi.org/project/Av1an/)
- [AUR](https://aur.archlinux.org/packages/python-av1an/)
- Manually:
- Clone Repo or Download from Releases
- `python setup.py install`
- Also:
On Ubuntu systems, the packages `python3-opencv` and `libsm6` are required
- `cargo build --release`
## Docker