diff options
| author | Dennis Fink | 2026-02-24 21:08:38 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-02-24 21:08:38 +0100 |
| commit | 7c302ecee9bdb7a53b2fc03d9d63693996566010 (patch) | |
| tree | b37a58d3af98945bb503b5b7334a5e40a7727a5f /README.md | |
| parent | 92d0073aede629aae79bf34aab0011d55eba34ec (diff) | |
| download | transcode.sh-7c302ecee9bdb7a53b2fc03d9d63693996566010.tar.gz transcode.sh-7c302ecee9bdb7a53b2fc03d9d63693996566010.zip | |
docs: document all variables available to presets
Previously only output_pixel_format was mentioned. All three variables
(input_codec, input_pixel_format, output_pixel_format) are now listed
with descriptions in the script header comment, the README, and the
man page.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -77,8 +77,13 @@ ${XDG_CONFIG_HOME:-$HOME/.config}/transcode.sh/presets/<name>.sh ``` Each preset is sourced as Bash and must define an array named `ffargs`. -The variable `output_pixel_format` is available and contains the -automatically selected pixel format (derived from the input file). +The following variables are available to presets at source time: + +| Variable | Description | +|----------|-------------| +| `input_codec` | Video codec of the input file (e.g. `h264`, `hevc`) | +| `input_pixel_format` | Pixel format of the input after `yuvj*` normalisation (e.g. `yuv420p`) | +| `output_pixel_format` | Recommended output pixel format, derived from the input to preserve chroma subsampling and bit depth | Before the preset's `ffargs` are appended, the script always passes these base arguments to `ffmpeg`: |
