aboutsummaryrefslogtreecommitdiff
path: root/transcode.sh.1
diff options
context:
space:
mode:
authorDennis Fink2026-05-10 22:07:29 +0200
committerDennis Fink2026-05-10 22:07:29 +0200
commit077ed51e254b9a6af2259b1952e6134ead98afa2 (patch)
treeecf3604e86518fd0e773c2f78ccfa7ab42f19f3c /transcode.sh.1
parenteecaf6c4b9b5c6c248302e7db2bb15b7ca1c6b29 (diff)
downloadtranscode.sh-077ed51e254b9a6af2259b1952e6134ead98afa2.tar.gz
transcode.sh-077ed51e254b9a6af2259b1952e6134ead98afa2.zip
refactor(core): remove awk and bc dependencies
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.
Diffstat (limited to 'transcode.sh.1')
-rw-r--r--transcode.sh.18
1 files changed, 1 insertions, 7 deletions
diff --git a/transcode.sh.1 b/transcode.sh.1
index af03bf9..17d9e29 100644
--- a/transcode.sh.1
+++ b/transcode.sh.1
@@ -129,8 +129,7 @@ with the given niceness value. Defaults to
.BR \-s ", " \-\-saving
After each successful encode, append a line to the savings log file
recording the filename, original size in bytes, new size in bytes and the
-percentage saved. Requires
-.BR bc (1).
+percentage saved.
.TP
.BR \-\-saving\-file " \fIPATH\fR, " \-\-saving\-file= \fIPATH\fR
Path to the savings log file written by
@@ -397,10 +396,6 @@ A required dependency
.RB ( ffmpeg ,
.BR ffprobe ,
.BR nice ,
-.B bc
-when
-.B \-\-saving
-is active, or
.B tomlq
when
.B config.toml
@@ -457,7 +452,6 @@ transcode.sh \-\-config\-file ~/profiles/fast.toml input.mp4
.BR ffmpeg (1),
.BR ffprobe (1),
.BR nice (1),
-.BR bc (1),
.BR tomlq (1)
.SH AUTHOR
Dennis Fink <me+coding@dennisfink.me>