From ab4f1fc335647501a28203846cb1ce23c9c7b959 Mon Sep 17 00:00:00 2001 From: Patrick Double Date: Wed, 27 Sep 2023 09:30:43 +0000 Subject: [PATCH] adjust qp for 1080+ --- dvrprocess/common/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dvrprocess/common/__init__.py b/dvrprocess/common/__init__.py index dd62883..2266988 100644 --- a/dvrprocess/common/__init__.py +++ b/dvrprocess/common/__init__.py @@ -704,23 +704,23 @@ def recommended_video_quality(target_height: int, target_video_codec: str, bit_d bitrate = 700 elif target_height <= 1080: # q=36 observed with libx264, crf=31 - qp = 34 + qp = 30 if target_video_codec == 'h264': crf = 31 bitrate = 1100 else: crf = 28 # TODO: Avatar 1080p is 2055 with 2 5.1 streams - bitrate = 1000 + bitrate = 1200 else: # q=36 observed with libx264, crf=31 - qp = 34 + qp = 30 if target_video_codec == 'h264': crf = 31 bitrate = 2500 else: crf = 28 - bitrate = 1200 + bitrate = 1700 return crf, bitrate, qp