vlc as a daemon, many ways many fails

*nix specific usage questions
bler
New Cone
New Cone
Posts: 7
Joined: 17 Sep 2008 19:32

vlc as a daemon, many ways many fails

Postby bler » 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.

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: vlc as a daemon, many ways many fails

Postby xtophe » 05 Jan 2010 13:31

try with --rc-fake-tty
Xtophe

bler
New Cone
New Cone
Posts: 7
Joined: 17 Sep 2008 19:32

Re: vlc as a daemon, many ways many fails

Postby bler » 05 Jan 2010 13:49

It works! thanks a lot :)


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 15 guests