Skip to content

Commit

Permalink
Fix -aq-strength config being shown for temporal aq
Browse files Browse the repository at this point in the history
This option only relates to spatial aq
  • Loading branch information
Josh5 committed Dec 29, 2023
1 parent 85b95cc commit d508cd9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

**<span style="color:#56adda">0.0.9-beta1</span>**
**<span style="color:#56adda">0.0.9-beta</span>**
- Add support for the h264_vaapi encoder
- Add support for the h264_nvenc encoder
- Add support for the hevc_nvenc encoder
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"on_worker_process": 1
},
"tags": "video,ffmpeg",
"version": "0.0.9-beta3"
"version": "0.0.9-beta4"
}
6 changes: 3 additions & 3 deletions lib/encoders/nvenc.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ def args(self, stream_info, stream_id):
# Apply adaptive quantization
if self.settings.get_setting('enable_spatial_aq'):
stream_encoding += ['-spatial-aq', '1']
if self.settings.get_setting('enable_temporal_aq'):
stream_encoding += ['-temporal-aq', '1']
if self.settings.get_setting('enable_spatial_aq') or self.settings.get_setting('enable_temporal_aq'):
stream_encoding += ['-aq-strength:v:{}'.format(stream_id), str(self.settings.get_setting('aq_strength'))]
if self.settings.get_setting('enable_temporal_aq'):
stream_encoding += ['-temporal-aq', '1']

# If CUVID is enabled, return generic_kwargs
if self.settings.get_setting('nvenc_decoding_method') in ['cuvid']:
Expand Down Expand Up @@ -465,6 +465,6 @@ def get_aq_strength_form_settings(self):
}
if self.settings.get_setting('mode') not in ['standard']:
values["display"] = "hidden"
if not self.settings.get_setting('enable_spatial_aq') and not self.settings.get_setting('enable_temporal_aq'):
if not self.settings.get_setting('enable_spatial_aq'):
values["display"] = "hidden"
return values

0 comments on commit d508cd9

Please sign in to comment.