From dc3d2cb05800d866972b7ba32022428e8474beaa Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Thu, 14 May 2026 09:56:14 +0200 Subject: feat(size-report): replace savings log with status reports Rename the old savings log feature to size report across the CLI, configuration, documentation, man page, and bash completion. The new `--size-report` option keeps the existing `-s` shorthand, while `--saving`, `--saving-file`, and the `[saving]` config section are replaced by `--size-report`, `--size-report-file`, and `[size_report]`. Extend reporting beyond successful encodes. The TSV log now gains a leading `status` column and records encoded files, codec skips, only-if-larger skips, and failed inputs. Size-report output also prints per-file feedback for encoded and skipped-larger files, including human-readable original/new sizes, bytes saved, and saved percentage. Track batch-level report counters and print an end-of-run summary for multi-file runs with encoded/skipped/failed counts, total bytes saved, and the overall weighted saving percentage across successful encodes. Document the new TSV schema in the README and man page, update examples and config snippets, and adjust bash completion for the renamed options. BREAKING CHANGE: `--saving` is now `--size-report`. `--saving-file` is now `--size-report-file`. `[saving]` in config.toml is now `[size_report]`. The TSV log gains a leading `status` column and may contain skipped and failed rows in addition to successful encodes. --- transcode.sh.bash-completion | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'transcode.sh.bash-completion') diff --git a/transcode.sh.bash-completion b/transcode.sh.bash-completion index 2749882..7c6eefa 100644 --- a/transcode.sh.bash-completion +++ b/transcode.sh.bash-completion @@ -55,7 +55,7 @@ _transcode_sh() { _filedir return ;; - --saving-file=*) + --size-report-file=*) cur="${cur#*=}" _filedir return @@ -84,7 +84,7 @@ _transcode_sh() { # --------------------------------------------------------------------------- # Handle VALUE after short form (-f, -N, -S, -p) and - # long space form (--encode-file, --nice, --saving-file, --skip-codec, --preset). + # long space form (--encode-file, --nice, --size-report-file, --skip-codec, --preset). # $prev is the option word, $cur is the value being typed. # --------------------------------------------------------------------------- case "$prev" in @@ -100,7 +100,7 @@ _transcode_sh() { COMPREPLY=($(compgen -W "$nice_vals" -- "$cur")) return ;; - --saving-file) + --size-report-file) _filedir return ;; @@ -145,15 +145,15 @@ _transcode_sh() { --no-continue --no-hwaccel --no-only-if-smaller - --no-saving + --no-size-report --no-verify-output --only-if-smaller --preset --preset= --quiet - --saving - --saving-file - --saving-file= + --size-report + --size-report-file + --size-report-file= --skip-codec --skip-codec= --verbose -- cgit v1.3.1