Page 1 of 1

CLI

Posted: 20 Apr 2009 03:29
by lukemackinnon
Hi,

Trying to run VLC on the command line without the GUI interface window appearing. The docs all say to run "clivlc" but this is not an executable that is found in the /Applications/VLC.app/Contents/MacOS directory. If I run VLC from the command line it runs a commandline instance but still throws up the GUI interface and it says on the command line:-

luke-mackinnons-macbook-pro-17:MacOS lukemackinnon$ ./VLC
[00000001] main libvlc debug: VLC media player - version 0.9.9a Grishenko - (c) 1996-2009 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--enable-release' '--disable-debug' '--with-macosx-sdk=/Developer/SDKs/MacOSX10.4u.sdk'
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
^C[00000383] signals interface error: Caught Interrupt signal, exiting...

Clearly its telling me to run "cvlc" but there is no wrapper or execuatble in the directory of that name nor an option I can find in the -H that allows this.

Could someone please assist me and let me know what I must do to run at the command line without the GUI interface.

Cheers.

Regards,
Luke Mackinnon

Re: CLI

Posted: 20 Apr 2009 09:33
by Jean-Baptiste Kempf
use ./VLC -Idummy

Re: CLI

Posted: 20 Apr 2009 11:21
by lukemackinnon
ok thanks. I am trying to get the CLi to run up VLC and to multicast (UDP) a file that I have stored locally... here is an example of my CLI command but its not working and I am not sure where to put the -ldummy option you gave me. Any assistance appreciated.

/Applications/VLC.app/Contents/MacOS/VLC -vvv 3059_sd.mpg --sout='#standard{access=udp,mux=ts,dst=225.33.33.33:10592}'


As you can see I am trying to take the input file 3059_sd.mpg (which is a TS, I have just changed the name) and I want to multicast it UDP as a TS on 225.33.33.33 on port 10592

Any suggestions how the CLI commend should be formed to do this and to also use the -ldummy to avoid the GUI windows and playback occurring?

Thanks heaps.

Regards,
Luke

Re: CLI

Posted: 20 Apr 2009 11:49
by Jean-Baptiste Kempf
/Applications/VLC.app/Contents/MacOS/VLC -vvv -Idummy 3059_sd.mpg --sout='#standard{access=udp,mux=ts,dst=225.33.33.33:10592}'

Re: CLI

Posted: 20 Apr 2009 13:17
by lukemackinnon
Cheers j-b

got it running and working well. I also had some success with the following too, that may be useful to others who may read the thread.

/Applications/VLC.app/Contents/MacOS/VLC 3059_sd.mpg --sout=udp:225.33.33.33:10510 --ttl=10 --play-and-exit --daemon

Thanks again.

Luke