aboutsummaryrefslogtreecommitdiff
path: root/transcode.sh.bash-completion
diff options
context:
space:
mode:
authorDennis Fink2026-02-24 21:16:10 +0100
committerDennis Fink2026-02-24 21:16:10 +0100
commitc9f7b81f013eca9d25d956f1f644c05ec9814ae0 (patch)
tree72dfd157613088fc7b0cd236ecf6212939829df3 /transcode.sh.bash-completion
parent63780c4c4b5a15b95631bab8abfe86fcd85fc9d0 (diff)
downloadtranscode.sh-c9f7b81f013eca9d25d956f1f644c05ec9814ae0.tar.gz
transcode.sh-c9f7b81f013eca9d25d956f1f644c05ec9814ae0.zip
fix: improve input validation and error reporting
Validate the nice value is an integer in [-20, 19] at startup rather than letting nice(1) fail with a cryptic error at encode time. In encode_one, move the "Processing" message after the empty-string guard so it is not printed for blank lines, include the filename in the "Not found" error, and add a readability check so unreadable files are rejected with a clear message before ffprobe is invoked. Validate that the encode file (-f) exists before entering the read loop, exiting with a usage error rather than a silent empty run.
Diffstat (limited to 'transcode.sh.bash-completion')
0 files changed, 0 insertions, 0 deletions