Alias and vid compression tweaks

This commit is contained in:
2024-01-20 22:19:57 -05:00
parent 2a6522b4b7
commit e175fefa18
3 changed files with 14 additions and 10 deletions

View File

@@ -37,10 +37,10 @@ if [[ $# > 2 ]]; then
use_gpu=$3
fi
# Found the following to work best with vids containing text (e.g. programming vid): 25 for CPU encoding and 27 for GPU.
# Found the following to work best with vids containing text (e.g. programming vid): 21 for CPU encoding and 28 for GPU (similar bitrates).
use_crf=21
if [[ $use_gpu -eq 1 ]]; then
use_crf=25
use_crf=28
fi
compress-video-with-crf $use_crf "$filename" "$output_name" $use_gpu

View File

@@ -65,8 +65,6 @@ function encode() {
fi
if [[ $use_gpu -eq 1 ]]; then
# File will be slightly larger than CPU encoding, but it's much faster to transcode and doesn't max out the CPU cores.
# RTX 3080
ffmpeg -y -stats -loglevel level+error $timing_args -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i "$filename.$extension" -c:a copy -c:v h264_nvenc -profile:v high -rc:v vbr_hq -cq:v $crf -b:v 5M -maxrate 5M -max_muxing_queue_size 9999 "$output"