libvlc_vlm_add_broadcast Dshow input format

This forum is about all development around libVLC.
JimA
New Cone
New Cone
Posts: 6
Joined: 23 Feb 2017 18:05

libvlc_vlm_add_broadcast Dshow input format

Postby JimA » 24 Feb 2017 23:49

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");

JimA
New Cone
New Cone
Posts: 6
Joined: 23 Feb 2017 18:05

Re: libvlc_vlm_add_broadcast Dshow input format

Postby JimA » 25 Feb 2017 04:55

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 22 guests