Skip to content

Commit

Permalink
Remove obsolete static methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh5 committed Dec 30, 2023
1 parent 21f72f7 commit 0988d64
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
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.1.2-beta2"
"version": "0.1.2-beta3"
}
3 changes: 1 addition & 2 deletions lib/encoders/libx.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ def generate_default_args(self):
advanced_kwargs = {}
return generic_kwargs, advanced_kwargs

@staticmethod
def generate_filtergraphs():
def generate_filtergraphs(self):
"""
Generate the required filter for this encoder
No filters are required for libx encoders
Expand Down
13 changes: 0 additions & 13 deletions lib/global_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,6 @@ def __set_default_option(self, select_options, key, default_option=None):
if self.settings.get_setting(key) not in available_options:
self.settings.set_setting(key, default_option)

@staticmethod
def __is_nvidia_gpu_present():
try:
# Run the nvidia-smi command
subprocess.run("nvidia-smi", stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, check=True)
return True
except FileNotFoundError:
# nvidia-smi executable not found
return False
except subprocess.CalledProcessError:
# nvidia-smi command failed, likely no NVIDIA GPU present
return False

def get_mode_form_settings(self):
return {
"label": "Config mode",
Expand Down

0 comments on commit 0988d64

Please sign in to comment.