mirror of
https://github.com/kkroening/ffmpeg-python.git
synced 2025-08-10 13:10:03 +08:00
Detect: TODO other platform GPU detection
This commit is contained in:
parent
4e08627ef1
commit
145e57bb74
@ -55,9 +55,11 @@ def detect_gpu():
|
|||||||
"""
|
"""
|
||||||
plat_sys = platform.system()
|
plat_sys = platform.system()
|
||||||
if plat_sys == 'Linux':
|
if plat_sys == 'Linux':
|
||||||
|
# TODO: Android and other Linux'es that don't have `lshw`
|
||||||
display_output = subprocess.check_output(
|
display_output = subprocess.check_output(
|
||||||
['lshw', '-class', 'display', '-json'])
|
['lshw', '-class', 'display', '-json'])
|
||||||
return json.loads(display_output.decode().strip().strip(','))
|
return json.loads(display_output.decode().strip().strip(','))
|
||||||
|
# TODO Other platforms
|
||||||
|
|
||||||
|
|
||||||
def detect_hwaccels(hwaccels=None, cmd='ffmpeg'):
|
def detect_hwaccels(hwaccels=None, cmd='ffmpeg'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user