From 145e57bb7462f7a52e3e7209da5eda5537933848 Mon Sep 17 00:00:00 2001 From: Ross Patterson Date: Fri, 9 Aug 2019 03:06:32 -0700 Subject: [PATCH] Detect: TODO other platform GPU detection --- ffmpeg/_detect.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffmpeg/_detect.py b/ffmpeg/_detect.py index 732226c..56faee7 100644 --- a/ffmpeg/_detect.py +++ b/ffmpeg/_detect.py @@ -55,9 +55,11 @@ def detect_gpu(): """ plat_sys = platform.system() if plat_sys == 'Linux': + # TODO: Android and other Linux'es that don't have `lshw` display_output = subprocess.check_output( ['lshw', '-class', 'display', '-json']) return json.loads(display_output.decode().strip().strip(',')) + # TODO Other platforms def detect_hwaccels(hwaccels=None, cmd='ffmpeg'):