firlus
Posts: 2
Joined: Sun Sep 11, 2016 8:56 am

Problems with vlc and rc.local

Sun Sep 11, 2016 9:06 am

Hey there,

I am working on a projects that need to record a rtsp stream on bootup.
At the moment my rc.local (which runs on startup) runs a python script that manages everything with this stream, but for some reason, the vlc called in this script won't run...
I know that I can't run vlc as root (rc.local runs as root), so I execute the vlc command with this prefix:

Code: Select all

sudo -S -u pi
Do you guys know what I am doing wrong? Or is there a way to get the output of rc.local without a screen so I could see, what error vlc throws...

Michael Firlus
16 year old hobby programmer from Germany
http://michael-firlus.de

User avatar
nl3prc
Posts: 160
Joined: Sun Jul 24, 2016 12:39 pm
Location: Den Helder the netherlands

Re: Problems with vlc and rc.local

Sun Sep 11, 2016 10:24 am

sudo -u yourusername command -parameter

Return to “Troubleshooting”