ihrapsa / OctoWrt

A guide to install Octoprint on the Creality WiFi Box or similar OpenWrt devices
80 stars 26 forks source link

Problem config camera #29

Closed Pepitoo597 closed 2 years ago

Pepitoo597 commented 2 years ago

Hello I would like to configure my Logitech C160 camera which is compatible with mjpg-streamer but the camera lags so I would like to solve the problem but I don't know which file to go to please

ihrapsa commented 2 years ago

Edit fps line inside /etc/config/mjpg-streamer file. Don't go higher than 15fps if you use the box to stream gcode as well. Or experiment with it

Pepitoo597 commented 2 years ago

Ok thank you, after testing my camera still has this latency problem, I think it is better to change the camera. Do you have a camera to recommend to me?

ihrapsa commented 2 years ago

Wait, high latency or low framerate? Two different things.

Pepitoo597 commented 2 years ago

I don't really know how to explain it in fact when the printer makes a movement the camera will take a while before seeing the printer move it is not fluid.

ihrapsa commented 2 years ago

check the difference between latency and framerate. what framerate did you set inside mjpg-streamer file?

Pepitoo597 commented 2 years ago

I set the framerate to 15

ihrapsa commented 2 years ago

do cat /etc/config/mjpg-streamerand show me

Pepitoo597 commented 2 years ago

Capture d’écran 2022-08-18 194659

ihrapsa commented 2 years ago

Frame rate is ok. Can you do short video with printer and stream at the same time to see what's the issue?