I hope someone can help me out with this.
I have followed this guide here:
http://blog.miguelgrinberg.com/post/how ... spberry-pi
and everything is working like a charm as I can watch the stream in my browser.
I am now trying to automate the all process by using:
Code: Select all
crontab -eCode: Select all
@reboot mkdir /tmp/stream && raspistill --nopreview -w 640 -h 480 -q 5 -o /tmp/stream/pic.jpg -tl 100 -t 9999999 -th 0:0:0 && LD_LIBRARY_PATH=/usr/local/lib mjpg_streamer -i "input_file.so -f /tmp/stream -n pic.jpg" -o "output_http.so -w /usr/local/www"
Code: Select all
@reboot mkdir /tmp/stream && raspistill --nopreview -w 640 -h 480 -q 5 -o /tmp/stream/pic.jpg -tl 100 -t 9999999 -th 0:0:0 && home/pi/stream.sh"
Code: Select all
#!/bin/bash
LD_LIBRARY_PATH=/usr/local/lib mjpg_streamer -i "input_file.so -f /tmp/stream -n pic.jpg" -o "output_http.so -w /usr/local/www
Code: Select all
sudo chmod 755 /home/pi/streamI would appreciate if someone could help me out as I am really struggling now
Many thanks in advance.