Skip to content

Commit

Permalink
adjust qp for 1080+
Browse files Browse the repository at this point in the history
  • Loading branch information
double16 committed Sep 27, 2023
1 parent 6601595 commit ab4f1fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dvrprocess/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ab4f1fc

Please sign in to comment.