-
streaming with libvlc
Hi all, I'm trying to record and stream webcam from a C++ app (vs2010 compiled under windows) with libvlc and I followed these steps to record from a webcam and streaming it through RTSP:
1)
Code:
inst = libvlc_new (1, myargs);
where myargs just contain the plugin path
2)
Code:
libvlc_vlm_add_broadcast(inst, "mybroadcast", "dshow://", "#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://:5544/}", 0, NULL, TRUE, 0);
3)
CODE: SELECT ALL
Code:
libvlc_vlm_play_media(inst, "mybroadcast");
4)sleep for a big while (libvlc creates different threads to stream, this should not interfere with that)
Ports are opened, server is ready to transmit but I can't connect to it with another VLC client, this is the error log:
Code:
...
main debug: meta ok for (null), need to fetch art
live555 debug: DESCRIBE failed with 0: 404 Not found
live555 debug: connection timeout
live555 error: Failed to connect with rtsp://192.168.1.100:5544
main debug: no access_demux module matching "rtsp" could be loaded
....
Can someone help me or at least point me how to get a good start with libvlc? I already read the oxygen documentation several times but could not accomplish my task. I found no examples on how to get things working and vlc's source code did not provide me a good example on how to do this