![]() ![]() The only thing I can imagine is that when I first tried changing the command in /etc/rc.local to sudo -u pi bash /home/pi/./vlc_autorun.sh that this coincided with when the stream server crashed and this was in fact the solution i needed? It now works! I'm not really sure which change solved it, the only changes in the scripts below are minor tweaks that shouldn't actually change anything to that which I posted last time. Set -x # tell sh to display commands before execution # In order to enable or disable this script just change the executionĮxec 1>/tmp/rc.local.log 2>&1 # send stdout and stderr from rc.local to a log file # Make sure that the script will "exit 0" on success or any other # This script is executed at the end of each multiuser runlevel. Vlc rtsp://$myip:8080/h264_ulaw.sdp -fullscreen &Įcho "Stream stopped, trying to restart."Ĭurrently trying to run using /etc/rc.local as below #!/bin/sh -e The issue I seem to be having is that regardless of how I get the script to run on startup I see that it's briefly connecting to the network stream but it isn't opening vlc (at least not visibly on the desktop).Īny suggestions gratefully appreciated. I'd like this script to run automatically on startup (using Raspbian). It will then keep monitoring the stream, if it goes down it will close vlc and wait for the stream to return before restarting vlc (see below). I've written a script that first checks whether a local network stream is up, then if this is the case it will start vlc. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |