/qtqr

fork of official qtqr with support for v4l2loopback

qtqr

Fork of official ppa:qtqr with support for v4l2loopback.

On system have only v4l2loopback:

Add this to qtqr.py, on line 797, at the end of the functiondef getVideoDevices(self):

Before if __name__ == '__main__':

else:
            file_names = [x for x in os.listdir("/dev") if x.startswith("video")]
            file_names.sort()
            for file_name in file_names:
                     yield([
                        ("Webcam input from " + file_name),
                        os.path.join("/dev", file_name)
                    ])

On system with both hard-wired webcam and v4l2loopback, replace the whole content of the fuction def getVideoDevices(self):

with the above code (cross out the else:)