2

I have a USB camera connected to my pi. I'm also hosting my personal website on it. How do I create a separate page on my website with authentication and display the live feed from my port 8081 on it?

  • Welcome to RPi.SE. Have you looked at motion ? You might need to work on authentication part though. Here's a good tutorial on how to setup motion on RPi. pimylifeup.com/raspberry-pi-webcam-server – dhruvvyas90 Dec 19 '15 at 11:59
  • Hi. I did use motion to serve that feed on my_ip:8081. Now I want to show the output on that port to a webpage. – ArcaneDominion Dec 19 '15 at 13:03
  • I'm sorry but I didn't quite get your previous comment. Can you elaborate what is working currently and what you want to implement ? I believe if motion is running, you should be able to view the feed on browser on <your-ip>:8081. I believe that it worked on firefox and not on chrome when I tried it a long time ago. – dhruvvyas90 Dec 19 '15 at 13:06
  • Sorry for not being clear. Everything's working now, the camera feed is on port 8081 and my website on port 80. Now I want to embed my video feed on a webpage on my website "xyz.com/cam.html" (behind a login page preferebly). Then my friends in another country can view my feed with just the login details and without needing my IP address (which is dynamic) Can this be done? – ArcaneDominion Dec 19 '15 at 13:11
  • 1
    Ok, I'm not an expert on the subject but I believe motion transmits in motion jpeg format and this link (the last part) : blog.clipchamp.com/2015/… shows how mjpeg feed can be embedded to the web page. I haven't tried it but it should work. Hope it helps. – dhruvvyas90 Dec 19 '15 at 13:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.