# VLM configuration file for QRCode overlay # Ben Ward, 2009 (http://badgertrack.com) # Suitable for Linux, can be made to work with Windows with some tweaks # clear previous config del all # Setup input 'bg' for background image new bg broadcast enabled # Receive the input from Video4Linux2 Device /dev/video0 (my crappy webcam) setup bg input "v4l2:///dev/video0 " # enable the mosaic setup bg option sub-filter=mosaic # this bit is complex. I suggest not using mpeg2-ts format like this as it seems to do things sloppily (ie. no timecode). # you may also be able to capture audio here for annotation. I think this config is capturing fake://qrcode.png's audio. ie. none. setup bg output #bridge-in{offset=100}:transcode{vcodec=mp2v,vb=768,scale=1,acodec=mpga,ab=128,sfilter=mosaic}:duplicate{dst=display,dst=std{access=file,mux=ts,dst=myfile.mpg}} # Configure some mosaic options. Some are just the defaults explicitly defined. setup bg option mosaic-alpha=255 setup bg option mosaic-align=5 setup bg option mosaic-xoffset=0 setup bg option mosaic-yoffset=0 setup bg option mosaic-vborder=5 setup bg option mosaic-hborder=10 setup bg option mosaic-position=1 setup bg option mosaic-rows=2 setup bg option mosaic-cols=2 # choose the order in which to display mosaic inputs setup bg option mosaic-order=overlayimage,_,_,_ setup bg option mosaic-delay=0 setup bg option mosaic-keep-picture setup bg option mosaic-keep-aspect-ratio # Input options new overlayimage broadcast enabled # create a fake stream with our qrcode png file as the source, reloaded once a second setup overlayimage input "fake://" option "fake-file=./qrcode.png" option "fake-file-reload=1" # now output this to the mosaic bridge setup overlayimage output #duplicate{dst=mosaic-bridge{id=overlayimage,width=64,height=64,chroma=YUVA},select=video,dst=bridge-out{id=0},select=audio} # Launch everything control bg play control overlayimage play