Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
minor
  • Loading branch information
GeoHaber committed Sep 3, 2024
1 parent 84054c2 commit 0bffdd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FFMpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def get_encoder_options(codec_name, src_pix_fmt, bit_rate, use_hw_accel=False):
quality_presets = {
'low': {'bitrate': (bit_rate // (1024 * 3 )), 'quality': 26},
'medium': {'bitrate': (bit_rate // (1024 * 1.5 )), 'quality': 24},
'as_is': {'bitrate': (bit_rate // (1024 )), 'quality': 22},
'as_is': {'bitrate': (bit_rate // (1024 * 0.95)), 'quality': 22},
'high': {'bitrate': (bit_rate // (1024 * 0.75)), 'quality': 20},
'higher': {'bitrate': (bit_rate // (1024 * 0.5 )), 'quality': 18},
}
Expand All @@ -426,7 +426,7 @@ def get_encoder_options(codec_name, src_pix_fmt, bit_rate, use_hw_accel=False):
max_bitrate = str(int(int(target_bitrate.rstrip('k')) * 1.5)) + 'k'
bufsize = str(int(int(max_bitrate.rstrip('k')) * 2)) + 'k'
if use_hw_accel:
print(f" {msj} HW accelerated")
# print(f" {msj} HW accelerated")
hw_pix_fmt = "p010le" if is_10bit else "nv12"
return [
'hevc_qsv',
Expand All @@ -444,7 +444,7 @@ def get_encoder_options(codec_name, src_pix_fmt, bit_rate, use_hw_accel=False):
'-preset', 'slow',
]
else:
print(f" {msj} SW")
# print(f" {msj} SW")
sw_pix_fmt = "yuv420p10le" if is_10bit else "yuv420p"
return [
'libx265',
Expand Down

0 comments on commit 0bffdd7

Please sign in to comment.