Added support for libminibmcapture input and the OpenSeeWebcamInfo example.

This commit is contained in:
Emiliana 2020-09-30 01:03:04 +02:00
parent 8dd079ba23
commit 3670d3f793
10 changed files with 112 additions and 39 deletions

View file

@ -78,7 +78,10 @@ if os.name == 'nt' and (args.list_cameras > 0 or not args.list_dcaps is None):
formats = {0: "Any", 1: "Unknown", 100: "ARGB", 101: "XRGB", 200: "I420", 201: "NV12", 202: "YV12", 203: "Y800", 300: "YVYU", 301: "YUY2", 302: "UYVY", 303: "HDYC (Unsupported)", 400: "MJPEG", 401: "H264" }
for cam in info:
if args.list_dcaps == -1:
print(f"{cam['id']}: {cam['name']}")
type = ""
if cam['type'] == "Blackmagic":
type = "Blackmagic: "
print(f"{cam['id']}: {type}{cam['name']}")
if args.list_dcaps != -1 and args.list_dcaps != cam['id']:
continue
for caps in cam['caps']: