Page 1 of 1

libvlc_vlm_add_broadcast Dshow input format

Posted: 24 Feb 2017 23:49
by JimA
I am trying to stream a live feed from a Logitech C920, but it seems no matter what device name I give it, it cannot find it. Do I have a formatting problem of some sort??

Code: Select all

char *sin = "dshow:// :dshow-vdev=\"Logitech HD Pro Webcam C920\" :dshow-adev=\"Microphone (HD Pro Webcam C920)\" :live-caching=300"; char *sout = "#transcode{vcodec=h264,acodec=mpga,ab=128, width=800 channels=2,samplerate=44100}:rtp{sdp=rtsp://:8554/ViewVaultBroadcast}"; const char* opt[] = { "--sout-keep" }; libvlc_instance_t *vlc; vlc = libvlc_new(0, NULL); libvlc_vlm_add_broadcast(vlc, "ViewVaultBroadcast", sin, sout, 0, NULL, true, true); libvlc_vlm_play_media(vlc, "ViewVaultBroadcast");

Re: libvlc_vlm_add_broadcast Dshow input format

Posted: 25 Feb 2017 04:55
by JimA
This is kind of confusing, I am using the 64 bit version, and the libvlc_vlm_add_broadcast input parameter seems to be treated as a file even though it is specified as "dshow://". I see the same thing happening with libvlc_media_new_path, it interprets "dshow://" as a file, but if I use libvlc_media_new_location, it then works the way I expect it to.