vlc as a daemon, many ways many fails
Posted: 05 Jan 2010 09:53
Hello,
I want to run vlc as a daemon with remote telnet interface.
1. # vlc -I rc --rc-host localhost:8095
works fine,
2. # vlc -vvv -d -I rc --rc-host localhost:8095
doesn't work at all, output is:
VLC media player 1.0.4 Goldeneye
[0x804c088] main libvlc debug: VLC media player - version 1.0.4 Goldeneye - (c) 1996-2009 the VideoLAN team
[0x804c088] main libvlc debug: libvlc was configured with ./configure '--without-x' '--disable-glx' '--disable-qt4' '--disable-skins2' '--disable-x11' '--disable-xvideo' '--disable-xosd' '--disable-xinerama' '--disable-dbus' '--disable-dbus-control' '--enable-run-as-root' '--disable-sdl' '--disable-opengl' '--disable-xcb' '--disable-freetype' '--disable-screen'
[0x804c088] main libvlc debug: translation test: code is "C"
it refuses telnet connections, just sits there waiting to be killed,
3. vlc -I rc --rc-host localhost:8095 > vlc.log 2>&1 &
works fine, as far as the telnet connection goes,
4. Now the real problem - a simple perl script:
#!/usr/bin/perl
system q(/usr/local/bin/vlc -vvv -I rc --rc-host localhost:8095 > vlc.log 2>&1 &);
It goes to the background, it fills the log with all it is supposed to fil, apart from those entries:
[0x80dde80] main interface debug: looking for interface module: 1 candidate
[0x80dde80] rc interface warning: fd 0 is not a TTY
[0x80dde80] main interface warning: no interface module matching "rc" could be loaded
and it refuses the telnet connection.
Okay, what is the difference between 3 and 4? They are run from the same shell over ssh.
I want to run vlc as a daemon with remote telnet interface.
1. # vlc -I rc --rc-host localhost:8095
works fine,
2. # vlc -vvv -d -I rc --rc-host localhost:8095
doesn't work at all, output is:
VLC media player 1.0.4 Goldeneye
[0x804c088] main libvlc debug: VLC media player - version 1.0.4 Goldeneye - (c) 1996-2009 the VideoLAN team
[0x804c088] main libvlc debug: libvlc was configured with ./configure '--without-x' '--disable-glx' '--disable-qt4' '--disable-skins2' '--disable-x11' '--disable-xvideo' '--disable-xosd' '--disable-xinerama' '--disable-dbus' '--disable-dbus-control' '--enable-run-as-root' '--disable-sdl' '--disable-opengl' '--disable-xcb' '--disable-freetype' '--disable-screen'
[0x804c088] main libvlc debug: translation test: code is "C"
it refuses telnet connections, just sits there waiting to be killed,
3. vlc -I rc --rc-host localhost:8095 > vlc.log 2>&1 &
works fine, as far as the telnet connection goes,
4. Now the real problem - a simple perl script:
#!/usr/bin/perl
system q(/usr/local/bin/vlc -vvv -I rc --rc-host localhost:8095 > vlc.log 2>&1 &);
It goes to the background, it fills the log with all it is supposed to fil, apart from those entries:
[0x80dde80] main interface debug: looking for interface module: 1 candidate
[0x80dde80] rc interface warning: fd 0 is not a TTY
[0x80dde80] main interface warning: no interface module matching "rc" could be loaded
and it refuses the telnet connection.
Okay, what is the difference between 3 and 4? They are run from the same shell over ssh.