From 65f4b079718b52a9cdad6adb361d598d3406ad2c Mon Sep 17 00:00:00 2001 From: pants Date: Wed, 6 May 2026 13:22:03 -0700 Subject: [PATCH] add --- bin/tc | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/tc diff --git a/bin/tc b/bin/tc new file mode 100755 index 0000000..bb9f90b --- /dev/null +++ b/bin/tc @@ -0,0 +1,11 @@ +#!/bin/sh +mkdir -p output +for file in *.MP4; do + # CPU + ffmpeg -i "$file" -c:a copy -c:v hevc -crf 20 "output/$file" + # VAAPI + #ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i "$file" -c:a copy -c:v av1_vaapi -crf 20 -b:v 30M "output/$file" + #ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i "$file" -c:a copy -c:v av1_vaapi -rc_mode VBR -b:v 30M -maxrate 35M "output/$file" + # NVENC + #ffmpeg -i "$file" -c:a copy -c:v hevc_nvec -b:v 10M -minrate 5M -maxrate 15M "output/$file" +done