This commit is contained in:
2026-05-06 13:22:03 -07:00
parent 2bc19afb5c
commit 65f4b07971

11
bin/tc Executable file
View File

@@ -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