Code: Select all
libvlc_vlm_add_broadcast(inst, "Camera1", "rtsp://admin:admin@172.16.64.101:554/ch0_0.h264", "#mosaic-bridge{id=1,height=366}", 0, NULL, true, 0);
libvlc_vlm_add_broadcast(inst, "Camera2", "rtsp://admin:admin@172.16.64.105:554/ch0_0.h264", "#mosaic-bridge{id=2,height=366}", 0, NULL, true, 0);
libvlc_vlm_add_broadcast(inst, "Camera3", "rtsp://admin:admin@172.16.64.120:554/ch0_0.h264", "#mosaic-bridge{id=3,height=366}", 0, NULL, true, 0);
libvlc_vlm_add_broadcast(inst, "Camera4", "rtsp://admin:admin@172.16.64.125:554/ch0_0.h264", "#mosaic-bridge{id=4,height=366}", 0, NULL, true, 0);
char* mosaicOptions[] = {"image-fps=25/1", "image-duration=-1"};
libvlc_vlm_add_broadcast(inst, "mosaic", "/home/jtag/Pictures/320439.jpg", "#transcode{sfilter=mosaic{width=1600,height=450,mosaic-height=450, mosaic-width=1600, mosaic-alpha=255, mosaic-xoffset=0, mosaic-keep-picture, no-media-library, mosaic-rows=1, mosaic-cols=2 , mosaic-position=0, mosaic-order=1,2, mosaic-position=1},vcodec=h264,vb=2000,fps=15}:duplicate{dst=display}", 2, mosaicOptions, true, false);
libvlc_vlm_play_media(inst, "Camera1");
libvlc_vlm_play_media(inst, "Camera2");
libvlc_vlm_play_media(inst, "Camera3");
libvlc_vlm_play_media(inst, "Camera4");
libvlc_vlm_play_media(inst, "mosaic");