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