Receiving RTP stream

This forum is about all development around libVLC.
alb84
Blank Cone
Blank Cone
Posts: 29
Joined: 16 Dec 2009 15:40

Receiving RTP stream

Postby alb84 » 18 Feb 2010 17:16

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?

alb84
Blank Cone
Blank Cone
Posts: 29
Joined: 16 Dec 2009 15:40

Re: Receiving RTP stream

Postby alb84 » 24 Feb 2010 10:37

No hint? I still haven't found a solution... Any help is much appreciated

alb84
Blank Cone
Blank Cone
Posts: 29
Joined: 16 Dec 2009 15:40

Re: Receiving RTP stream

Postby alb84 » 03 Mar 2010 18:21

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...

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Receiving RTP stream

Postby Rémi Denis-Courmont » 03 Mar 2010 19:21

The syntax is rtp://[SRC_IP[:SRC_PORT]@[DST_IP]:DST_PORT just like in the player.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 20 guests