diff --git a/labgrid/driver/usbvideodriver.py b/labgrid/driver/usbvideodriver.py index 46475149c..bee7cd3bd 100644 --- a/labgrid/driver/usbvideodriver.py +++ b/labgrid/driver/usbvideodriver.py @@ -66,6 +66,12 @@ def get_qualities(self): ("mid", "video/x-h264,width=1280,height=720,framerate=25/1"), ("high", "video/x-h264,width=1920,height=1080,framerate=25/1"), ]) + if match == (0x0c45, 0x636d): # AUKEY PC-LM1E + return ("mid", [ + ("low", "image/jpeg,width=640,height=480,pixel-aspect-ratio=1/1,framerate=30/1"), + ("mid", "image/jpeg,width=864,height=480,pixel-aspect-ratio=1/1,framerate=30/1"), + ("high", "image/jpeg,width=1280,height=1024,pixel-aspect-ratio=1/1,framerate=30/1"), + ]) self.logger.warning( "Unkown USB video device {:04x}:{:04x}, using fallback pipeline." .format(*match)) @@ -105,6 +111,9 @@ def get_pipeline(self, path, caps, controls=None): elif match == (0x1d6c, 0x0103): controls = controls or "focus_auto=1" inner = "h264parse" + elif match == (0x0c54, 0x636d): + controls = controls or "focus_auto=1" + inner = None # just forward the jpeg frames else: # fallback pipeline inner = None # just forward the jpeg frames