Developing a UDP client plugin

About encoding, codec settings, muxers and filter usage
pcd
Blank Cone
Blank Cone
Posts: 46
Joined: 03 Jun 2005 12:45

Developing a UDP client plugin

Postby pcd » 24 Aug 2006 03:07

Hi,

I am trying to write a UDP client plugin for a linux based satellite receiver (Dreambox). Streaming works with http, but is sometimes uncertain. So I want to try UDP.

I start the VLC udp streaming of a video with the command line :-

:sout=#duplicate{dst=std{access=udp,mux=ts,url=(receiver ip):9090}}

I can see the wireless light blinking at the receiver end indicating the stream reaching there. Then with :-

fd = socket(AF_INET, SOCK_DGRAM, 0) ;

I get fd = 65. Also with :-

rc = connect(fd, (struct sockaddr *)&ads, adsLen) ;

I get connect success (i.e. rc = 0). However, then with :-

len = recv(fd, tempBuffer, BLOCKSIZE, 0);

I get no success from recv (i.e. len = -1). Could the experts please suggest if I missed out a step ? Perhaps 'connect' is not appropriate with UDP ?

Regards, pcd.

bXn
Blank Cone
Blank Cone
Posts: 46
Joined: 08 Jun 2005 09:14

Postby bXn » 28 Aug 2006 17:01

some answers could help us ;o)

- are you using unicast or multicast streaming ?
- could you write exact IP adresses you are using ?
- are you using blocking or non-blocking socket mode ?

- may be could you consider using errno to get more info on the error
Image
Image

mdeangel
New Cone
New Cone
Posts: 3
Joined: 20 Feb 2004 15:21

Re: Developing a UDP client plugin

Postby mdeangel » 19 Jan 2007 13:50

Hello PCD,
have you been able then to make the plug in?
I am very interested.
Thank you,
best regards,
Mark
Hi,

I am trying to write a UDP client plugin for a linux based satellite receiver (Dreambox). Streaming works with http, but is sometimes uncertain. So I want to try UDP.

I start the VLC udp streaming of a video with the command line :-

:sout=#duplicate{dst=std{access=udp,mux=ts,url=(receiver ip):9090}}

I can see the wireless light blinking at the receiver end indicating the stream reaching there. Then with :-

fd = socket(AF_INET, SOCK_DGRAM, 0) ;

I get fd = 65. Also with :-

rc = connect(fd, (struct sockaddr *)&ads, adsLen) ;

I get connect success (i.e. rc = 0). However, then with :-

len = recv(fd, tempBuffer, BLOCKSIZE, 0);

I get no success from recv (i.e. len = -1). Could the experts please suggest if I missed out a step ? Perhaps 'connect' is not appropriate with UDP ?

Regards, pcd.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 16 guests