Strange behaviour when starting vlc in xsession script

*nix specific usage questions
d.s.e
New Cone
New Cone
Posts: 4
Joined: 26 Aug 2008 16:41

Strange behaviour when starting vlc in xsession script

Postby d.s.e » 01 Sep 2008 13:22

hi,

I'd like to use vlc a s a videoplayer on a mediaserver, controlled by my own application.

to start, I use the following commandline:

vlc -I rc --rc-host 127.0.0.1:4200 --fullscreen --vout xvideo --xvideo-display :0.0 &

when I do this in the x-terminal or from a remote shell, everthing works as expected: I can connect to the port and control vlc, and the screen is blank unitl playback starts.

but when I try to start vlc automatically by inserting this commandline into the .xsession script, vlc shows the standard control interface on the screen instead of allowing a rc connection.

why? what can I do to change this?

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Strange behaviour when starting vlc in xsession script

Postby dionoea » 01 Sep 2008 15:11

I guess that it's not getting the command line options you gave it. Maybe you need to escape those in xsession scripts ... or something like that.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

d.s.e
New Cone
New Cone
Posts: 4
Joined: 26 Aug 2008 16:41

Re: Strange behaviour when starting vlc in xsession script

Postby d.s.e » 01 Sep 2008 17:04

no, all the other commandline options are taken.

I did some tests:
when started within a shellscript, vlc always tries to use the wxwidgets interface, ignoring other settings. this is independent of the user.
even on the same shell, direct start works, start via script not. very strange...

maybe the following log message is interesting:
VLC: main: looking for interface module: 5 candidates
VLC: rc: fd 0 is not a TTY
VLC: main: using interface module "wxwidgets"

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Strange behaviour when starting vlc in xsession script

Postby dionoea » 01 Sep 2008 18:32

Try adding --rc-fake-tty to your options. (see vlc -p rc --advanced --help-verbose)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

d.s.e
New Cone
New Cone
Posts: 4
Joined: 26 Aug 2008 16:41

Re: Strange behaviour when starting vlc in xsession script

Postby d.s.e » 02 Sep 2008 11:33

thanks, that works! :D

what are the reasons for this behaviour/option?

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Strange behaviour when starting vlc in xsession script

Postby dionoea » 02 Sep 2008 15:48

Must be a bug in the code. VLC checks if you're in a tty when using the rc interface in a shell. It shouldn't need to do so if you're setting it up to use a tcp connection.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)


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

Who is online

Users browsing this forum: No registered users and 33 guests