diff --git a/bashrc.sh b/bashrc.sh index 34af13b..16d4a2d 100644 --- a/bashrc.sh +++ b/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" @@ -120,10 +124,6 @@ function process-video { passes=2 pass="-pass 2" fi - - if [[ $force == "Y" ]]; then - video="${video//maxrate/b:v}" - fi ## Main ## # More information on two-pass processing with ffmpeg