Fix videos not compressing properly.

This commit is contained in:
Hyperling 2024-07-05 12:31:17 -07:00
parent 67ef7d128f
commit 6b3975176a

View File

@ -100,7 +100,11 @@ function process-video {
if [[ -z $video ]]; then
video="2000k"
fi
video="-maxrate $video"
if [[ $force == "Y" ]]; then
video="-b:v $video"
else
video="-b:v $video -minrate 0 -maxrate $video -bufsize $video"
fi
if [[ -z $audio ]]; then
audio="192k"
@ -121,10 +125,6 @@ function process-video {
pass="-pass 2"
fi
if [[ $force == "Y" ]]; then
video="${video//maxrate/b:v}"
fi
## Main ##
# More information on two-pass processing with ffmpeg
# https://cinelerra-gg.org/download/CinelerraGG_Manual/Two_pass_Encoding_with_FFmp.html