Increase AV1 CRF value

This commit is contained in:
Jan Jastrow 2024-07-06 02:09:55 +02:00
parent 0040795dc1
commit 5eb3376b27

View File

@ -83,7 +83,7 @@ ff-av1-scale720p() {
for input in *.mp4; do
if [[ -f "$input" ]]; then
tempfile="temp_${input%.mp4}"
ffmpeg -hide_banner -loglevel info -i "$input" -vf format=yuv420p10le,scale=1280:-2 -c:v libsvtav1 -preset 6 -crf 20 -g 30 -svtav1-params tune=0 -c:a copy -c:s copy "$tempfile.mp4"
ffmpeg -hide_banner -loglevel info -i "$input" -vf format=yuv420p10le,scale=1280:-2 -c:v libsvtav1 -preset 6 -crf 23 -g 30 -svtav1-params tune=0 -c:a copy -c:s copy "$tempfile.mp4"
if [[ $? -eq 0 ]]; then
mv "$input" "_$input"
mv "$tempfile.mp4" "$input"