@pji wrote:
I'm trying to show the live video from a USB webcam on the LabVIEW front panel, and I happened to find your discussion. I don't have LabVIEW Vision Development Module addon, but since I don't need to process the video, I think your program is exactly what I need. I downloaded the "Main_Open_Cemra" vi and installed the latest VLC. What should I set for the path for the webcam? Thank you very much.
I know this is a few years old, but I just ran into this myself and thought I'd answer the question in case someone else finds this. In the example code posted here, there are some comments about webcam streams.
For me the working solution was to first run VLC, then go to File >> Open Capture Device, then select the Video Device Name, and click Show more Options. Here I see my MRL is "dshow://" and Options are " :dshow-vdev= :dshow-adev= :live-caching=300". So in the libvlc_media_new_location call I put the Media Source as "dshow://" and the libvlc_media_add_option as "dshow-vdev=Integrated Webcam" and I could see the stream.