TheSpaghettiDetective / obico-server

Obico is a community-built, open-source smart 3D printing platform used by makers, enthusiasts, and tinkerers around the world.
https://obico.io
GNU Affero General Public License v3.0
1.44k stars 292 forks source link

[BUG] Obico plugin shows premium streaming when it should show 0.1 FPS streaming #674

Open 3DCoded opened 1 year ago

3DCoded commented 1 year ago

Describe the bug In my OctoPrint interface, I setup a streaming server that goes at around 60fps. When I connect it to my self-hosted Obico server on the same machine, it only updates the webcam when I reload, and only a few times a minute.

To Reproduce Steps to reproduce the behavior:

  1. Install Raspbian
  2. Install OctoPrint
  3. Install Obico
  4. Check Obico's video feed vs OctoPrint's

Hosting environment (please complete the following information):

kennethjiang commented 1 year ago

This is most likely due to an environment issue. For instance: https://www.obico.io/docs/server-guides/faqs/#why-doesnt-the-premium-streaming-work

I will close the issue for now. Please come to our discord server obico.io/discord/. You will usually get help a lot more quickly this way.

3DCoded commented 1 year ago

Unfortunately, I do not have access to Discord. I am running OctoPi in a Docker container

kennethjiang commented 1 year ago

Discord is free and is quite easy to join.

In any case, the issue you ran into is probably https://www.obico.io/docs/user-guides/webcam-stream-stuck-at-1-10-fps/#2-is-octoprint-running-on-a-raspberry-pi

3DCoded commented 1 year ago

I already tried everything on that page to no avail.

3DCoded commented 1 year ago

It seems that this is still a bug. Can you reopen this issue?

kennethjiang commented 1 year ago

It's not a bug. The video streaming requires using octopi image. https://www.obico.io/docs/user-guides/webcam-stream-stuck-at-1-10-fps/#2-is-octoprint-running-on-a-raspberry-pi

3DCoded commented 1 year ago

That is what I am using.

3DCoded commented 1 year ago

I am using the octopi image in docker.

cp2004 commented 1 year ago

Check the difference between OctoPrint and OctoPi here: https://community.octoprint.org/t/what-is-the-difference-between-octoprint-and-octopi-are-they-the-same-thing/185

You can't run OctoPi in docker - it is an operating system for a Raspberry Pi. You are using OctoPrint in a container, and the docs link above says that this does not work for premium streaming.

3DCoded commented 1 year ago

When I go to Obico Plugin settings in OctoPrint, it says streaming mode is Premium. This seems still a bug and should be fixed for OctoPrint.

kennethjiang commented 1 year ago

This is a fair point. But it should be a bug in the Obico plugin, not OctoPrint.

I changed the title and reopened this issue. Can you post a screenshot for it?

3DCoded commented 1 year ago
Screenshot 2022-11-01 at 4 19 50 PM
blockofdynamite commented 11 months ago

FWIW, I have also just run into this bug.

Fresh obico server, fresh octopi image on an rpi3 with a usb webcam. Server and Webcam connection show as green in the plugin status. Webcam works fine in octoprint on both the always- and never-compatibility settings. However, obico server only shows a snapshot.

Edit: I tried the obico app last night. When tapping on the webcam to view it, "premium streaming" shows up after a bit (usually a few seconds) and the webcam streams just fine. However, the web interface does not appear to stream the webcam at all, only shows a snapshot.

Edit 2: Seems to work fine now. Seems to be very picky about being on the same subnet together. Also, obico server tries to be "smart" and stop the stream if you switch to a different tab, but I'd say this is pretty undesirable behavior as it takes a bit to start streaming again.