I will attempt to run rtsp streaming to have two video sources .
I already , two of the video file was the rtsp streaming in the following code .
Code: Select all
inst = libvlc_new(0, NULL);
libvlc_vlm_add_broadcast(inst, "Server2", "D:\\DEEPSEA_3D.Title1.mp4", "#transcode{vcodec=h264, vb=3000, venc=x264{vbv-maxrate=3000, vbv-bufsize=6000, bpyramid=none, weightp=0}, width=960, height=1080}::rtp{sdp=rtsp://:5545/}", 0, NULL, TRUE, TRUE);
libvlc_vlm_add_broadcast(inst, "Server", "D:\\DEEPSEA_3D.Title2.mp4", "#transcode{vcodec=h264, vb=3000, venc=x264{vbv-maxrate=3000, vbv-bufsize=6000, bpyramid=none, weightp=0}, width=960, height=1080}:rtp{sdp=rtsp://:5544/}", 0, NULL, TRUE, TRUE);
libvlc_vlm_play_media(inst, "Server");
libvlc_vlm_play_media(inst, "Server2");
However , I changed the input argument to obtain the video from the capture card .
Code that changed the arguments are as follows .
Code: Select all
inst = libvlc_new(0, NULL);
libvlc_vlm_add_broadcast(inst, "Server", "dshow:// vdev=\"AVerMedia HD Capture 1\"", "#transcode{vcodec=h264, vb=3000, venc=x264{vbv-maxrate=3000, vbv-bufsize=6000, bpyramid=none, weightp=0}, width=960, height=1080}::rtp{sdp=rtsp://:5545/}", 0, NULL, TRUE, TRUE);
libvlc_vlm_add_broadcast(inst, "Server2", "dshow:// vdev=\"AverMedia HD Capture 2\"", "#transcode{vcodec=h264, vb=3000, venc=x264{vbv-maxrate=3000, vbv-bufsize=6000, bpyramid=none, weightp=0}, width=960, height=1080}:rtp{sdp=rtsp://:5544/}", 0, NULL, TRUE, TRUE);
libvlc_vlm_play_media(inst, "Server");
libvlc_vlm_play_media(inst, "Server2");
What are the solutions ?
I expect an answer .
Thank you.