diff options
| author | Dennis Fink | 2026-02-25 09:17:24 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-02-25 09:17:24 +0100 |
| commit | 6061504cdc9216c085ef334726bbf7ed3af4ea3f (patch) | |
| tree | 2b1ffb201e7bccea0796216408fd04bd60ec711b /transcode.sh.bash-completion | |
| parent | b10b81fefbe529be7db14ca65ec4b4a293782d39 (diff) | |
| download | transcode.sh-6061504cdc9216c085ef334726bbf7ed3af4ea3f.tar.gz transcode.sh-6061504cdc9216c085ef334726bbf7ed3af4ea3f.zip | |
refactor(core): combine ffprobe calls and simplify pixel format selection
Merge the two separate ffprobe invocations for codec and pixel format
into one, halving the per-file probe overhead on large batches. Both
error messages now include the filename for easier diagnosis in batch
runs.
Replace the three-way nested if/elif/else for pixel format selection
with two independent case statements — one for chroma subsampling, one
for bit depth — that compose the output format string from two parts.
This eliminates the repetition across the three subsampling branches
and makes adding a new bit depth or subsampling variant a single-line
change. Also add a verbose fallback warning for exotic formats that
don't match any known subsampling pattern.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
