UDP/RTP command line

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
fanecco
New Cone
New Cone
Posts: 8
Joined: 26 Nov 2004 11:08

UDP/RTP command line

Postby fanecco » 06 Dec 2004 02:16

Hi, how can I open VLC with UDP/RTP (port 2150) stream receiver enabled from command line? I mean, which is the right command line I have to type to automatically do this?

Sigmund
Big Cone-huna
Big Cone-huna
Posts: 893
Joined: 26 Nov 2003 09:38

Postby Sigmund » 06 Dec 2004 09:00

vlc udp://:2150

or

vlc rtp://:2150

fanecco
New Cone
New Cone
Posts: 8
Joined: 26 Nov 2004 11:08

Postby fanecco » 06 Dec 2004 15:48

Thanks!
I tried this command line and it works running from a shell (bash) window. Now I need to do the same thing in a C program written by myself. I tried to use this instruction:

execlp("vlc","udp://:2150",--quiet",NULL)

It correctly opens VLC, but doesnt enable udp stream receiving.
How can I modify/change this command to do this?

Thank you for helping me!

Sigmund
Big Cone-huna
Big Cone-huna
Posts: 893
Joined: 26 Nov 2003 09:38

Postby Sigmund » 06 Dec 2004 16:33

from execlp man-page:
The first argument, by convention, should point to the file name asso-
ciated with the file being executed. The list of arguments must be
terminated by a NULL pointer, and, since these are variadic functions,
this pointer must be cast (char *) NULL.
I guess this should give you a hint.

fanecco
New Cone
New Cone
Posts: 8
Joined: 26 Nov 2004 11:08

Postby fanecco » 06 Dec 2004 16:38

Nothing changes, sorry

If you know another way (i.e. another system call) to do this, I ll try

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 06 Dec 2004 18:35

How about:
execlp("vlc","udp://@:2150", 0)

Not sure about the "quiet", but if you wish to use it, probably need "--quiet", not --quiet"

Sigmund
Big Cone-huna
Big Cone-huna
Posts: 893
Joined: 26 Nov 2003 09:38

Postby Sigmund » 06 Dec 2004 21:27

if you didn't understand it you need two "vlc" parameters to the call.

fanecco
New Cone
New Cone
Posts: 8
Joined: 26 Nov 2004 11:08

Postby fanecco » 07 Dec 2004 01:24

yes, I understood it: I also tried:

execlp("vlc","udp://@:2150", 0)

and

execlp("vlc","udp://@:2150", (char *)NULL)

and

execlp("vlc","udp://@:2150","--quiet", 0)

and

execlp("vlc","udp://@:2150", "--quiet",(char *)NULL)

but nothing changed...so how about running a script insted of vlc directly?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 7 guests