I have tried modifying my rc.local to run it.
Code: Select all
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. # Print the IP address python /home/pi/Downloads/I2C_SSD1306_ipaddr.py _IP=$(hostname -I) || true if [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP" fi raspivid -t 0 -w 1280 -h 960 -fps 30 -b 2000000 -awb auto -n -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=0.0.0.0 port=8554 exit 0
I have tried launching it from the beginning and end, with and without sudo.
Why can't it activate the display? Do I maybe need a delay?
Also, is there an alternative way to launch it at boot?