Stream video from your Raspberry Pi camera module

I know I’ve covered streaming before, but this is just a reminder to myself that the best method I’ve found is using Silvan Melchoir’s RaspiMJPEG which he has combined with a web interface (pictured). All the instructions are available on the Raspberry Pi Foundation’s forum.

Here are the instructions in a nutshell:

sudo apt-get update
sudo apt-get dist-upgrade
sudo rpi-update

git clone https://github.com/silvanmelchior/RPi_Cam_Web_Interface.git
cd RPi_Cam_Web_Interface
chmod u+x RPi_Cam_Web_Interface_Installer.sh

./RPi_Cam_Web_Interface_Installer.sh install

After the setup finishes, you have to restart your RPi. Now just open up any browser on any computer in your network and enter the IP of the RPi as URL.

12 comments for “Stream video from your Raspberry Pi camera module

  1. mubin
    10 May 2015 at 3:10 pm

    Hi,
    Thanks for this useful tutorial. I have installed it and it works! But I have a question. I have already lighttpd webserver, I installed your git clone, I think apache2 is inside of this clone. It installed apache2 as well. Now lighttpd is not working because port 80 is occupied by apache2. How can I remove apache2 and how can I do everything with lighttpd?
    Thanks.

    • recantha
      14 May 2015 at 7:54 pm

      I’m not sure is my truthful answer. Search online for removal instructions for Apache on Linux. You’ll have to do apt-get remove but I’m not sure exactly what the command will be.

  2. Andrew
    12 May 2015 at 6:59 pm

    PERFECT !!
    Thank you so much 🙂

  3. Nikhil
    13 May 2015 at 8:39 am

    When I try to clone the repo it says
    error: Failed to connect to github.com:443; Connection refused while accessing
    fatal: HTTP request failed

    Do I have to have the rights? Also the link to Raspberrypi forum that you provided is also not working.

    • recantha
      14 May 2015 at 7:52 pm

      Sounds very strange… The link to the Forum works for me – what do you get come up on your browser? Because it might be the reason for the Github error too

      • Nikhil
        15 May 2015 at 2:49 pm

        That issue was solved. My connection is under a proxy so had to put the proxy address in git config .
        Next question. The Video start record option records a video. How can I can the default settings like where it saves the video. Or maybe much more complicated recording I want to do like using a custom output. Basically if a python picamera script I can run clicking on the start record button that will be great. Do I have that kind of control?
        Thanks

        • recantha
          15 May 2015 at 2:53 pm

          Hi Nikhil. I think the best advice I can give is to contact silvanmelchoir on the RPi forums who wrote the software. He’ll be able to help you much better than I will.

  4. Ashish
    7 September 2015 at 6:17 am

    Hi, Can I use this for streaming video from any other subnet/computer not on that network.

  5. 21 December 2015 at 3:08 am

    hi any idea how to get an http image from this setup? id like to use it for razberry pi automation system as a security cam to catch if anyone messing with the box.

    • Michael Horne
      21 December 2015 at 9:39 am

      I’d suggest using something like a PIR sensor to detect movement. Then, when movement is detected, I suggest using Python with the “picamera” library to grab the image then use something like the Flask web framework to deliver the captured image to a browser. Take a look around for tutorials dealing with this – there should be some out there.

  6. 22 December 2015 at 2:28 am

    hi any idea how to get an http image from this setup? id like to use it for razberry pi automation system as a security cam to catch if anyone messing with the box. any idea of a direct link to image?

  7. alessandro
    25 November 2016 at 12:22 pm

    Hi,

    how may I watch my camera on a web page using an ARM11 processor and coding in C/C++?

    I would implement something like UDP multicast but what I found is ased on a sort of OS (linux, raspian etc etc)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.