From 03eaa44b106eaf0def386e844c110c91ae9f3bf9 Mon Sep 17 00:00:00 2001 From: q3aql Date: Mon, 22 Mar 2021 20:01:58 +0100 Subject: [PATCH] Fix bug with set bitrate (ks-crop) --- src/ks-crop | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ks-crop b/src/ks-crop index 51d06e2..7dbb448 100755 --- a/src/ks-crop +++ b/src/ks-crop @@ -199,6 +199,12 @@ function crop_video() { else b_vcodec="${bitrate_video}" fi + # Reload p_conversion variable + if [ -z "${codec_h265_hevc}" ] ; then + p_conversion="-c:v ${vcodec} -profile:v high -b:v ${b_vcodec} -preset ${v_preset} -c:a ${acodec}" + else + p_conversion="-c:v ${vcodec} -profile:v high -pix_fmt yuv420p -b:v ${b_vcodec} -preset ${v_preset} -c:a ${acodec}" + fi # Ask for patched echo -n "* (Default: n) Do you want apply '-max_muxing_queue_size 9999' patch? (y/n): " ; read patch_thread if [ "${patch_thread}" == "y" ] ; then