I was figuring this out and thought I'd provide the solution I found. Basically once you get your vlm.config setup, it is a direct translation to the libvlc methods. You just need to figure out which methods. And once that is figured out, the translation is fairly obvious.
Code: Select all
/*
new Camera1 broadcast enabled
setup Camera1 input "c:\Code\Pride Demolition disc1.avi"
setup Camera1 output #mosaic-bridge{id=1,width=512,height=384}
*/
libvlc_vlm_add_broadcast(pVLCInstance, "Camera1", "c:\\Code\\Pride Demolition disc1.avi", "#mosaic-bridge{id=1,width=512,height=384}", 0, NULL, true, 0);
libvlc_vlm_add_broadcast(pVLCInstance, "Camera2", "c:\\Code\\Pride Demolition disc2.avi", "#mosaic-bridge{id=2,width=512,height=384}", 0, NULL, true, 0);
libvlc_vlm_add_broadcast(pVLCInstance, "Camera3", "c:\\Code\\Pride Final Conflict 2004 disc1.avi", "#mosaic-bridge{id=3,width=512,height=384}", 0, NULL, true, 0);
libvlc_vlm_add_broadcast(pVLCInstance, "Camera4", "c:\\Code\\Pride Final Conflict 2004 disc2.avi", "#mosaic-bridge{id=4,width=512,height=384}", 0, NULL, true, 0);
/*
new mosaic broadcast enabled
setup mosaic input Hydrangeas.jpg
setup mosaic option image-fps=25/1
setup mosaic option image-duration=-1
setup mosaic output #transcode{sfilter=mosaic,vcodec=mp4v,vb=8500,fps=25,scale=1}:bridge-in{delay=400,id-offset=100}:duplicate{access=udp,url=239.255.12.42,dst=display}
*/
char* mosaicOptions[] = {"image-fps=25/1", "image-duration=-1"};
libvlc_vlm_add_broadcast(pVLCInstance, "mosaic", backgroundPath, "#transcode{sfilter=mosaic,vcodec=mp4v,vb=8500,fps=25,scale=1}:bridge-in{delay=400,id-offset=100}:duplicate{dst=http{dst=:56789/Mosaic},dst=display}", 2, mosaicOptions, true, 0);
/*
control Camera1 play
control Camera2 play
control Camera3 play
control Camera4 play
control mosaic play
*/
libvlc_vlm_play_media(pVLCInstance, "Camera1");
libvlc_vlm_play_media(pVLCInstance, "Camera2");
libvlc_vlm_play_media(pVLCInstance, "Camera3");
libvlc_vlm_play_media(pVLCInstance, "Camera4");
libvlc_vlm_play_media(pVLCInstance, "mosaic");