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_streamerneeding 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.

  1. create shell script in /home/pi

    touch /home/pi/mjpg-streamer.sh

  2. edit shell script , add content

    #!/bin/bash

    cd /home/pi/mjpg-streamer/mjpg-streamer-experimental/

    ld_library_path=.

    ./mjpg_strea‌​mer -o "output_http.so -w ./www" -i "input_raspicam.so"

  3. make sure new shell script has execution rights

  4. add shell script /etc/rc.local


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -