aboutsummaryrefslogtreecommitdiff
path: root/transcode.sh.bash-completion
diff options
context:
space:
mode:
authorDennis Fink2026-02-25 09:17:24 +0100
committerDennis Fink2026-02-25 09:17:24 +0100
commit6061504cdc9216c085ef334726bbf7ed3af4ea3f (patch)
tree2b1ffb201e7bccea0796216408fd04bd60ec711b /transcode.sh.bash-completion
parentb10b81fefbe529be7db14ca65ec4b4a293782d39 (diff)
downloadtranscode.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 'transcode.sh.bash-completion')
0 files changed, 0 insertions, 0 deletions