Raspberry Pi MJPEG video stream - start application at reboot -
i making mjpeg video stream using raspberry pi dedicated pi camera. using jpeg libraries , following web application found on github. use pretty straightforward, type cd mjpg-streamer/mjpg-streamer-experimental
, ./mjpg_streamer -o "output_http.so -w ./www" -i "input_raspicam.so"
. however, make run on every reboot, camera "maintenance free".
i researched need put path , executable file in /etc/rc.local
. nevertheless, when put path (mjpg-streamer/mjpg-streamer-experimental/mjpg_streamer -o "output_http.so -w ./www" -i "input_raspicam.so"
) executable file, did not work @ all. tried run stream 1 command in terminal, did not work either. tried set variable path in .bashrc
in order access /etc/rc.local
, did not want work.
i suspect might have command ./mjpg_streamer
needing input work (-o "output_http.so -w ./www" -i "input_raspicam.so"
)
do have idea how start every reboot?
thanks time , help
i have solved similar issue rpi , jpeg streamer following.
create shell script in /home/pi
touch /home/pi/mjpg-streamer.sh
edit shell script , add content
#!/bin/bash
cd /home/pi/mjpg-streamer/mjpg-streamer-experimental/
ld_library_path=.
./mjpg_streamer -o "output_http.so -w ./www" -i "input_raspicam.so"
make sure new shell script has execution rights
add shell script /etc/rc.local
Comments
Post a Comment