<feed xmlns='http://www.w3.org/2005/Atom'>
<title>transcode.sh/transcode.sh.1, branch v2.0.0</title>
<subtitle>Batch transcode helper for media files using ffmpeg.</subtitle>
<id>https://git.dennisfink.me/transcode.sh/atom/transcode.sh.1?h=v2.0.0</id>
<link rel='self' href='https://git.dennisfink.me/transcode.sh/atom/transcode.sh.1?h=v2.0.0'/>
<link rel='alternate' type='text/html' href='https://git.dennisfink.me/transcode.sh/'/>
<updated>2026-05-17T06:54:52Z</updated>
<entry>
<title>chore(release): prepare 2.0.0</title>
<updated>2026-05-17T06:54:52Z</updated>
<author>
<name>Dennis Fink</name>
</author>
<published>2026-05-17T06:54:52Z</published>
<link rel='alternate' type='text/html' href='https://git.dennisfink.me/transcode.sh/commit/?id=7ec4afb9f14c96db843d9569e0c32c14283ea9a5'/>
<id>urn:sha1:7ec4afb9f14c96db843d9569e0c32c14283ea9a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(skip): allow overriding config skip codecs</title>
<updated>2026-05-16T13:08:15Z</updated>
<author>
<name>Dennis Fink</name>
</author>
<published>2026-05-16T13:08:15Z</published>
<link rel='alternate' type='text/html' href='https://git.dennisfink.me/transcode.sh/commit/?id=7a33be9034e7d950459c7a30a49d544cf36e5270'/>
<id>urn:sha1:7a33be9034e7d950459c7a30a49d544cf36e5270</id>
<content type='text'>
Add --skip-codec-override so users can ignore configured skip codecs for
a single run and use only codecs provided through --skip-codec.

Defer CLI skip-codec parsing until after config loading so the final
skip list can be resolved independently of option order.

Document the new override behavior in the README and man page, and add
shell completion for the new flag.
</content>
</entry>
<entry>
<title>feat(backup): add original file backups</title>
<updated>2026-05-16T10:39:15Z</updated>
<author>
<name>Dennis Fink</name>
</author>
<published>2026-05-16T10:39:15Z</published>
<link rel='alternate' type='text/html' href='https://git.dennisfink.me/transcode.sh/commit/?id=054a300fe5b81ed04f84e902e05c4f4efb95a193'/>
<id>urn:sha1:054a300fe5b81ed04f84e902e05c4f4efb95a193</id>
<content type='text'>
Add --backup-dir support so successful encodes can copy the original
file to an existing backup directory before replacing it.

Preserve each source file's absolute path below the backup directory and
avoid overwriting existing backups by appending numeric suffixes when
needed.

Document the new CLI and config option, and add directory completion for
the backup path.
</content>
</entry>
<entry>
<title>feat(size-report): replace savings log with status reports</title>
<updated>2026-05-14T07:56:14Z</updated>
<author>
<name>Dennis Fink</name>
</author>
<published>2026-05-14T07:56:14Z</published>
<link rel='alternate' type='text/html' href='https://git.dennisfink.me/transcode.sh/commit/?id=dc3d2cb05800d866972b7ba32022428e8474beaa'/>
<id>urn:sha1:dc3d2cb05800d866972b7ba32022428e8474beaa</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>refactor(core): remove awk and bc dependencies</title>
<updated>2026-05-10T20:07:29Z</updated>
<author>
<name>Dennis Fink</name>
</author>
<published>2026-05-10T20:07:29Z</published>
<link rel='alternate' type='text/html' href='https://git.dennisfink.me/transcode.sh/commit/?id=077ed51e254b9a6af2259b1952e6134ead98afa2'/>
<id>urn:sha1:077ed51e254b9a6af2259b1952e6134ead98afa2</id>
<content type='text'>
Both tools were used for simple arithmetic that bash handles natively.

awk: fps rounding (num/den) replaced with round-half-up integer
arithmetic: (num + den/2) / den.

bc: savings percentage replaced with bash $(( )) arithmetic. bc was a
conditional dependency (only required with --saving), which made the
dependency story inconsistent. Removing it means the full feature set is
available with only ffmpeg, ffprobe, nice, and optionally tomlq.

Updated README requirements table, man page --saving description, SEE
ALSO section, and exit-code 127 entry accordingly.
</content>
</entry>
<entry>
<title>feat(preset): add --list-presets to enumerate available presets</title>
<updated>2026-05-10T18:37:01Z</updated>
<author>
<name>Dennis Fink</name>
</author>
<published>2026-05-10T18:37:01Z</published>
<link rel='alternate' type='text/html' href='https://git.dennisfink.me/transcode.sh/commit/?id=eecaf6c4b9b5c6c248302e7db2bb15b7ca1c6b29'/>
<id>urn:sha1:eecaf6c4b9b5c6c248302e7db2bb15b7ca1c6b29</id>
<content type='text'>
Print all *.sh files found in $PRESET_DIR, one per line, with a one-line
description extracted from the first line of each file if it matches a
`# description: …` comment. Presets without such a comment are listed
without a description.

Symlinks pointing to another preset inside $PRESET_DIR are shown as
"&lt;name&gt; - Symlinked to &lt;target&gt;" rather than duplicating the
description. Symlinks pointing outside $PRESET_DIR are followed and
treated as regular preset files.

Column width for preset names is calculated from the longest name in the
directory so descriptions align with minimal padding.

Also extracts the repeated readlink/realpath idiom into a dedicated
resolve_path() helper and adds a doc comment to filesize().

Exits immediately after printing (same pattern as --version/--help).
Honours --quiet/NO_COLOR via the existing msg() and color
infrastructure.
</content>
</entry>
<entry>
<title>feat(core,cli): add hardware acceleration support via --hwaccel</title>
<updated>2026-05-09T19:30:38Z</updated>
<author>
<name>Dennis Fink</name>
</author>
<published>2026-05-09T19:30:38Z</published>
<link rel='alternate' type='text/html' href='https://git.dennisfink.me/transcode.sh/commit/?id=46e56972f2b4d16ca6b3fd04611f86cf8580ea10'/>
<id>urn:sha1:46e56972f2b4d16ca6b3fd04611f86cf8580ea10</id>
<content type='text'>
Add --hwaccel [METHOD] / --no-hwaccel flags to control whether -hwaccel
is passed to ffmpeg before the input file. The METHOD argument is
optional and defaults to "auto", letting ffmpeg select the best
available hardware decoder with automatic software fallback.

Hardware acceleration is enabled by default (method: auto). Users on
hosts where hwaccel causes compatibility or stability issues can opt out
with --no-hwaccel or config.toml [encoding] hwaccel = false.

The config key accepts false (disable), true (auto), or a method string
such as "vaapi" or "cuda". CLI flags take precedence as usual.

Bash completion is extended with a hwaccel_methods word list (auto,
cuda, vaapi, dxva2, d3d11va, videotoolbox, qsv) for both the space form
(--hwaccel &lt;TAB&gt;) and the equals form (--hwaccel=&lt;TAB&gt;).

The completion script is also reformatted from 4-space to 2-space
indentation for consistency with transcode.sh itself.
</content>
</entry>
<entry>
<title>refactor(core): remove hardcoded PATH reset</title>
<updated>2026-05-09T18:14:28Z</updated>
<author>
<name>Dennis Fink</name>
</author>
<published>2026-05-09T18:14:28Z</published>
<link rel='alternate' type='text/html' href='https://git.dennisfink.me/transcode.sh/commit/?id=cfeb338478bb67defce2fb48222a6be3cffc4263'/>
<id>urn:sha1:cfeb338478bb67defce2fb48222a6be3cffc4263</id>
<content type='text'>
PATH='/bin:/usr/bin:/usr/local/bin' was intended as a security measure
against PATH injection. For a script invoked manually in the user's own
shell the benefit is marginal: if an attacker controls the user's PATH
they already have larger problems. The cost is real — tools installed
outside these three directories (Homebrew, Nix, ~/.local/bin) silently
fail, and the documented workaround of prepending a path at invocation
time does not work because the script overwrites PATH immediately on
startup.

Remove the PATH reset and all associated documentation. The remaining
hardening measures (unalias -a, hash -r, strict set -o flags, umask) are
retained.
</content>
</entry>
<entry>
<title>feat(core): verify output integrity before replacing original</title>
<updated>2026-05-09T06:34:49Z</updated>
<author>
<name>Dennis Fink</name>
</author>
<published>2026-05-09T06:34:49Z</published>
<link rel='alternate' type='text/html' href='https://git.dennisfink.me/transcode.sh/commit/?id=7f7341a84176beb4516a6801e16e2eb36557c2c8'/>
<id>urn:sha1:7f7341a84176beb4516a6801e16e2eb36557c2c8</id>
<content type='text'>
After ffmpeg exits successfully, run ffprobe against the temporary
output file to confirm it is a valid, playable media file before
replacing the original. If the probe fails the temporary file is removed
and the encode is treated as a runtime failure, leaving the original
untouched.

This guards against cases where ffmpeg exits 0 but has written a
truncated or corrupt container (e.g. due to a disk-full condition
mid-write, a codec bug, or a preset producing an unreadable stream).

The check is enabled by default and can be disabled via
--no-verify-output or [encoding] verify_output = false in config.toml
for large batch jobs on trusted encoders where the extra ffprobe
  round-trip is undesirable.

The --continue flag is honoured: a failed integrity check counts as a
runtime failure for the purposes of deciding whether to proceed to the
next file.

Docs, man page, bash completion, and README updated accordingly.
</content>
</entry>
<entry>
<title>feat(core): expose frame-rate variables to presets</title>
<updated>2026-05-08T20:16:51Z</updated>
<author>
<name>Dennis Fink</name>
</author>
<published>2026-05-08T20:16:51Z</published>
<link rel='alternate' type='text/html' href='https://git.dennisfink.me/transcode.sh/commit/?id=4b5967b1fde15f0d7d677274f1ae353915e6854b'/>
<id>urn:sha1:4b5967b1fde15f0d7d677274f1ae353915e6854b</id>
<content type='text'>
Add input_frame_rate, input_fps, and output_gop_size to the set of
variables available to preset files at source time.

input_frame_rate is the raw ffprobe fraction (e.g. 30000/1001).
input_fps rounds that fraction to the nearest integer via awk.
output_gop_size is derived as roughly five seconds of video (input_fps *
5), capped at 300 frames.

The ffprobe invocation is extended to request r_frame_rate alongside the
existing codec_name and pix_fmt entries; a missing frame rate is now
treated as a hard error. Dry-run and verbose output are updated to
display the new values. Documentation (header comment, --help text, man
page, README) is updated accordingly.
</content>
</entry>
</feed>
