robot icon indicating copy to clipboard operation
robot copied to clipboard

There is a problem with video streaming to webserver.

Open slavicp opened this issue 7 years ago • 6 comments

I'm able to open cam.jpg independently in the browser (http://localhost/cam.jpg). But the webserver is not able to get the image (there is the error "HTTP 404"). The control of the motor is working on webserver. I have installed RPi_Cam_Web_Interface with the default port (leaved it empty) and with the nginx option (instead of apache). 5 1 2 3 4

slavicp avatar Mar 14 '17 12:03 slavicp

What happens if you just go to http://localhost on port 80? Nginx serves the cam on port 80 and should pass through other requests to your flask server.

lukas avatar Mar 14 '17 15:03 lukas

I have tried http://localhost on port 80 but I have the result: "502 Bad Gateway". 6

slavicp avatar Mar 15 '17 06:03 slavicp

hm sounds like a gunicorn issue - do you have a file at /home/pi/drive.sock ?

When you do sudo systemctl start web do you get any issues?

lukas avatar Mar 15 '17 23:03 lukas

I have no issue when I do sudo systemctl start web, but it seems that 7 I do not have any file at /home/pi/drive.sock.

slavicp avatar Mar 17 '17 06:03 slavicp

I have the same effect. Server runs on port 8000 for me keeps trying to load http://192.168.1.74:8000/cam.jpg?t=1498686537583 failing then trying the next t=xxxxxxxxx I'll have a dig around and see if I can figure out what's going wrong

Same here, looks like we need a drive.sock file

fmacrae avatar Jun 28 '17 21:06 fmacrae

Is there a solution for this? I'm having the same problem.

p-ml avatar Nov 29 '17 09:11 p-ml