From 8d98f988a52dbfd7edc074725c628f24c20c270a Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sat, 30 May 2026 21:16:51 +0200 Subject: feat(output): add no-replacement output mode Add --output-dir and [processing].output_dir so encoded files can be written to an existing output directory without replacing, moving, or deleting originals. Preserve input paths below the output directory, avoid overwriting existing outputs with numeric suffixes, and keep --backup-dir compatible with --output-dir. Update finalization, backup, and size-report handling so replacement mode and output-dir mode share the same output path flow. Document the new mode in the README and man page, add bash completion for the new option, and expand the size report schema with input and output paths. Closes #7. --- transcode.sh.bash-completion.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'transcode.sh.bash-completion.sh') diff --git a/transcode.sh.bash-completion.sh b/transcode.sh.bash-completion.sh index 6e55970..4a419cc 100644 --- a/transcode.sh.bash-completion.sh +++ b/transcode.sh.bash-completion.sh @@ -87,6 +87,11 @@ function _transcode_sh() { _filedir -d return ;; + --output-dir=*) + cur="${cur#*=}" + _filedir -d + return + ;; --size-report-file=*) cur="${cur#*=}" _filedir @@ -141,6 +146,10 @@ function _transcode_sh() { _filedir -d return ;; + --output-dir) + _filedir -d + return + ;; --size-report-file) _filedir return @@ -177,6 +186,8 @@ function _transcode_sh() { --dry-run --backup-dir --backup-dir= + --output-dir + --output-dir= --only-if-smaller --no-only-if-smaller --verify-output -- cgit v1.3.1