def getH264V4l2(verbose=False):
import glob<EOL>from subprocess import Popen, PIPE<EOL>cams=[]<EOL>for device in glob.glob("<STR_LIT>"):<EOL><INDENT>devname=device.split("<STR_LIT:/>")[-<NUM_LIT:1>]<EOL>devfile=os.path.join("<STR_LIT>",devname)<EOL>lis=("<STR_LIT>"+devfile).split()<EOL>p = Popen(lis, stdout=PIPE, stderr=PIPE)<EOL>st = p.stdout.read().decode("<STR_LIT:utf-8>")<EOL>if (st.lower().find("<STR_LIT>")>-<NUM_LIT:1>):<EOL><INDENT>namefile=os.path.join(device, "<STR_LIT:name>")<EOL>f=open(namefile, "<STR_LIT:r>"); name=f.read(); f.close()<EOL>fullname = name.strip() + "<STR_LIT>"+devname+"<STR_LIT:)>"<EOL>cams.append((devfile, fullname))<EOL><DEDENT><DEDENT>if (verbose):<EOL><INDENT>for cam in cams:<EOL><INDENT>print(cam)<EOL><DEDENT><DEDENT>return cams<EOL>
Find all V4l2 cameras with H264 encoding, and returns a list of tuples with ..

    (device file, device name), e.g. ("/dev/video2", "HD Pro Webcam C920 (/dev/video2)")