Page 1 of 1

Receiving RTP stream

Posted: 18 Feb 2010 17:16
by alb84
Hello people, I opened a VLC instance and I set up a server to transmit a video stream using RTP.

If I open a second instance of VLC and set the URL to rtp://192.168.1.3:1234 it works fine.

Yet if I try to do the same thing in my code, replacing the line I hade before

Code: Select all

m_vlcMedia = libvlc_media_new( m_vlcInstance, "C:/a.avi", &m_ex );
with the line

Code: Select all

m_vlcMedia = libvlc_media_new( m_vlcInstance, "rtp://192.168.1.3:1234", &m_ex );
I see nothing but black.

I have copied the all dll and plugins folder where my exe is but nothing...

Yet my code works fine from file, and the video stream can be received properly from another VLC instance... can you help me?

Re: Receiving RTP stream

Posted: 24 Feb 2010 10:37
by alb84
No hint? I still haven't found a solution... Any help is much appreciated

Re: Receiving RTP stream

Posted: 03 Mar 2010 18:21
by alb84
Up... please if anyone knows a hint or a possible cause or a link anything is welcome I'm stucked with setting up libVLC to receiving a RTP stream... the same stream is easily receivable by a official VLC player instance but I can't set up libVLC...

Re: Receiving RTP stream

Posted: 03 Mar 2010 19:21
by RĂ©mi Denis-Courmont
The syntax is rtp://[SRC_IP[:SRC_PORT]@[DST_IP]:DST_PORT just like in the player.