Fix videos not compressing properly.
This commit is contained in:
parent
67ef7d128f
commit
6b3975176a
10
bashrc.sh
10
bashrc.sh
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user