Page 1 of 1

starting vlc with rc telnet from .config startup file cannot connect

Posted: 23 Sep 2024 18:55
by sooh
Thanks!

VLC latest, Raspberry Pi 64-bit, user myuser.

I am controlling a video playing on a raspberry pi desktop via rc telnet. If I type the command string manually in a terminal "vlc -I rc --rc-host 192.168.1.24 :4212 --fullscreen --started-from-file /home/myuser/Videos/myuservideo.xspf" I can connect to it. If I run the same command in /home/myuser/.config/autostart/vlc.desktop it runs the video, and sits there running, but the telnet connection will not work with "connection refused." I am sure this is very elementary, but I cannot figure it out.

Htop shows the user running vlc, when started via vlc.desktop, to be the correct one.

Very grateful for any help!

Re: starting vlc with rc telnet from .config startup file cannot connect

Posted: 23 Sep 2024 20:43
by sooh
Here is some more information:

Problem is a socket bind error--it cannot assign the address. This only happens when I start it from the startup folder, however. I would think permissions on the port but it works fine if I run it in the terminal after logging in.

Thanks!

Re: starting vlc with rc telnet from .config startup file cannot connect

Posted: 24 Sep 2024 13:18
by RĂ©mi Denis-Courmont
Are you perhaps using a network management tool that only set the network up later on after logon?

Re: starting vlc with rc telnet from .config startup file cannot connect

Posted: 24 Sep 2024 18:58
by sooh
Thanks for your reply, Remi.
So I have fixed this without understanding it, by setting GUI settings to match roughly match the command line--lua, rc, telnet checked at defaults, set to run as a daemon. Now whatever the obscure issue was, it is no more. Where skill is lacking, luck may prevail. Leaving this response here for anyone else with this issue.