Files
misc/bin/tc
2026-05-06 13:22:03 -07:00

12 lines
501 B
Bash
Executable File

#!/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