From 077ed51e254b9a6af2259b1952e6134ead98afa2 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sun, 10 May 2026 22:07:29 +0200 Subject: 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. --- transcode.sh.1 | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'transcode.sh.1') 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 -- cgit v1.3.1