Page 1 of 1

streaming with vlc

Posted: 22 Jul 2012 20:42
by heiserhorn
Hi,

I am trying to stream from my nas server.

here's the command I use:

sudo vlc-wrapper Film/Movies\ English/The\ Matrix --sout udp://192.168.2.3

I have previously run this command to be able to use vlc-wrapper:

sudo chmod u+s `which vlc-wrapper`

here's the problem I have:

Code: Select all

VLC media player 2.0.2 Twoflower (revision 2.0.1-453-g40d9fef) [0xe5d158] main libvlc error: cannot open config file (/root/.config/vlc/vlcrc): Permission denied [0xfa4d40] inhibit interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 [0xfa4d40] main interface error: no suitable interface module [0xfa4f08] main interface error: no suitable interface module [0xe5d158] main libvlc error: interface "globalhotkeys,none" initialization failed [0xe5d158] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [0xfa4e80] [cli] lua interface: Listening on host "*console". VLC media player 2.0.2 Twoflower Command Line Interface initialized. Type `help' for help. > [0xe9d8d8] filesystem access error: cannot open file /home/michele/Film/Movies English/The Matrix (No such file or directory) [0xe9d8d8] main access error: File reading failed [0xe9d8d8] main access error: VLC could not open the file "/home/michele/Film/Movies English/The Matrix". (No such file or directory) [0xe921f8] main input error: open of `file:///home/michele/Film/Movies%20English/The%20Matrix' failed [0xe921f8] main input error: Your input can't be opened [0xe921f8] main input error: VLC is unable to open the MRL 'file:///home/michele/Film/Movies%20English/The%20Matrix'. Check the log for details.
I understand that is not working because of permissions but I do no understand what I have to do.

I cannot run vlc as root so I have to run vlc-wrapper which is set Set-UID root.
That should be all right?

Cheers

Re: streaming with vlc

Posted: 22 Jul 2012 22:29
by RĂ©mi Denis-Courmont
The file does not exist. Did you even read the error message?

Re: streaming with vlc

Posted: 22 Jul 2012 22:40
by heiserhorn
Sorry,

There was a problem on the file permission. The group was root that's why vlc could not find the file.

I can now stream with the following command:

cvlc Film/Movies\ English/V\ for\ Vendetta-720p\ MP4\ AAC\ BRRip\ 2005-CC/V\ for\ Vendetta-720p\ MP4\ AAC\ BRRip\ 2005-CC.mp4 --sout '#standard{access=udp,mux=ts,dst=192.168.2.3:1234}'

I can now hear the audio but there is no video.

Cheers

Re: streaming with vlc

Posted: 27 Jul 2012 19:41
by Jean-Baptiste Kempf
use -vvv to see the logs.