mirror of
https://github.com/levogevo/ffmpeg-av1-builder.git
synced 2026-01-15 16:56:18 +00:00
upd README
This commit is contained in:
38
README.md
38
README.md
@@ -6,10 +6,11 @@ This repository is a simple collection of bash scripts. Scripts have only been t
|
||||
1. Install required dependencies using `./scripts/install_deps.sh`
|
||||
2. Build and install ffmpeg from source using `./scripts/build.sh`
|
||||
3. Install an encoding script using `./scripts/recc_encode_install.sh -I`
|
||||
4. Benchmark the different encoders using `./scripts/benchmark.sh`
|
||||
4. Install a film-grain estimation script using `./scripts/estimate_fg.sh -I`
|
||||
5. Benchmark the different encoders using `./scripts/benchmark.sh`
|
||||
|
||||
## Encode script
|
||||
The installation of the encoding script creates a symlink to this repo's `./scripts/recc_encode.sh` so do NOT remove this repo or the functionality of `encode` will FAIL. The `encode` script is a very simple way to use SvtAv1 for video and Opus for audio for encoding, which are arguably the most ideal encoders as of writing this. `encode` does the following:
|
||||
The installation of the encoding script creates a symlink to this repo's `./scripts/recc_encode.sh` so do NOT remove this repo or the functionality of `encode` will FAIL. The `encode` script is a very simple way to use SvtAv1-PSY for video and Opus for audio for encoding, which are arguably the most ideal encoders as of writing this. `encode` does the following:
|
||||
- Maps all streams except image streams (effectively no poster/image in the output)
|
||||
- Sets the audio bitrate at 64kbps per channel for each audio track
|
||||
- Formats the audio output channel layout correctly for Opus
|
||||
@@ -20,15 +21,18 @@ The installation of the encoding script creates a symlink to this repo's `./scri
|
||||
- Adds track statistics for proper output video/audio bitrate reporting
|
||||
Read the specifics in the actual file : `./scripts/recc_encode.sh`
|
||||
|
||||
```
|
||||
encode -i input_file [-p -c -s true/false] [-g NUM] [output_file_name] [-I] [-U]
|
||||
-p print the command instead of executing it [optional]
|
||||
-c use cropdetect [default=false, optional]
|
||||
-s use same container as input [default=false, always mkv, optional]
|
||||
-g set film grain for encode [optional]
|
||||
output_file_name if not set, will create at /home/lgevorgyan/ [optional]
|
||||
-I Install this as /usr/local/bin/encode [optional]
|
||||
-U Uninstall this from /usr/local/bin/encode [optional]
|
||||
```bash
|
||||
encode -i input_file [-p] [-c] [-s] [-v] [-g NUM] [output_file_name] [-I] [-U]
|
||||
-p print the command instead of executing it
|
||||
-c use cropdetect
|
||||
-s use same container as input, default is mkv
|
||||
-g set film grain for encode
|
||||
-v Print relevant version info
|
||||
|
||||
output_file_name if not set, will create at /home/lgevorgyan/
|
||||
|
||||
-I Install this as /usr/local/bin/encode
|
||||
-U Uninstall this from /usr/local/bin/encode
|
||||
```
|
||||
Example usage:
|
||||
- `encode -i input.mkv output.mkv` standard usage
|
||||
@@ -36,6 +40,18 @@ Example usage:
|
||||
- `encode -i input.mkv` no output filename will create an output video in your home folder (~/)
|
||||
- `encode -i input.mkv -g 20` will encode with film-grain synthesis=20 WITH denoising
|
||||
|
||||
## Estimate film grain script
|
||||
The installation of the script creates a symlink to this repo's `./scripts/estimate_fg.sh` so do NOT remove this repo or the functionality of `estimate-film-grain` will FAIL. The `estimate-film-grain` script is a way to estimate the ideal film grain of a video by encoding it at different film grain values and observing at what point does a higher film grain value result in diminishing returns.
|
||||
```bash
|
||||
estimate_fg.sh -i input_file [-o output_file] [-l NUM] [-s NUM] [-h NUM] [-I] [-U]
|
||||
-o file to output results to
|
||||
-l low value to use as minimum film-grain
|
||||
-s step value to use increment from low to high film-grain
|
||||
-h high value to use as maximum film-grain
|
||||
-I Install this as /usr/local/bin/estimate-film-grain
|
||||
-U Uninstall this from /usr/local/bin/estimate-film-grain
|
||||
```
|
||||
|
||||
## Benchmark script
|
||||
AV1 encode quality is tested against 5 different open source videos using libsvtav1, librav1e, and libaom.
|
||||
Netflix's libvmaf is used to analyze quality of the encodes against the original files.
|
||||
|
||||
Reference in New Issue
Block a user