I'm writing a VLM for doing a mosaic of 4 webcams, and saving it to a file. The video part is working fine, but I get no audio in the file even though the audio is played back nicely local. I'm quite the newbie, so forgive me if I've made an obvious error.
Code: Select all
##################################
## HTTP interface mosaic wizard ##
##################################
# Comment the following line if you don't want to reset your VLM configuration
del all
# Background options
new bg broadcast enabled
setup bg input "fake://" option "fake-file=C:\Users\SogM\Desktop\black_pixel.jpg" option "fake-width=1280" option "fake-height=960"
setup bg output #transcode{vcodec=mp4v,vb=4096,scale=1,acodec=mpga,ab=192,channels=1,sfilter=mosaic}:bridge-in{offset=100}:duplicate{dst=display,dst=std{access=file,mux=mp4,dst=C:\Users\SogM\Desktop\bingo.mp4}}
# Mosaic options
setup bg option mosaic-alpha=255
setup bg option mosaic-height=960
setup bg option mosaic-width=1280
setup bg option mosaic-align=5
setup bg option mosaic-xoffset=0
setup bg option mosaic-yoffset=0
setup bg option mosaic-vborder=0
setup bg option mosaic-hborder=0
setup bg option mosaic-position=1
setup bg option mosaic-rows=2
setup bg option mosaic-cols=2
setup bg option mosaic-order=ch1,ch2,ch3,ch4
setup bg option mosaic-delay=0
setup bg option mosaic-keep-picture
# Input options
new ch1 broadcast enabled
setup ch1 input dshow://
setup ch1 option dshow-vdev="USB 2.0 VGA UVC WebCam"
setup ch1 option dshow-adev="Microphone (Realtek High Defini"
setup ch1 option dshow-fps=20
setup ch1 option dshow-size="640x480"
setup ch1 output #duplicate{dst=mosaic-bridge{id=ch1,width=640,height=480},select=video,dst=bridge-out{id=0},select=audio}
new ch2 broadcast enabled
setup ch2 input dshow://
setup ch2 option dshow-vdev="Logitech Webcam 200"
setup ch2 option dshow-adev=none
setup ch2 option dshow-fps=20
setup ch2 option dshow-size="640x480"
setup ch2 output #duplicate{dst=mosaic-bridge{id=ch2,width=640,height=480},select=video,dst=bridge-out{id=1},select=audio}
new ch3 broadcast enabled
setup ch3 input "fake://" option "fake-file=C:\Users\SogM\Desktop\my_car_do_an_weelie.jpg" option "fake-width=400" option "fake-height=400"
setup ch3 output #duplicate{dst=mosaic-bridge{id=ch3,width=640,height=480},select=video,dst=bridge-out{id=2},select=audio}
new ch4 broadcast enabled
setup ch4 input "fake://" option "fake-file=C:\Users\SogM\Desktop\my_car_do_an_weelie.jpg" option "fake-width=400" option "fake-height=400"
setup ch4 output #duplicate{dst=mosaic-bridge{id=ch4,width=640,height=480},select=video,dst=bridge-out{id=3},select=audio}
# Launch everything
control bg play
control ch1 play
control ch2 play
control ch3 play
control ch4 play
# end of mosaic batch