Mjpg-streamer and octoprint bug

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version |G_DIETPI_VERSION_CORE=9 G_DIETPI_VERSION_SUB=6 G_DIETPI_VERSION_RC=1 G_GITBRANCH='master' G_GITOWNER='MichaIng'
  • Distro version | bookworm
  • Kernel version | uname --all
  • Linux DietPi 6.9.5-edge-rockchip64 #1 SMP PREEMPT Sun Jun 16 11:51:16 UTC 2024 aarch64 GNU/Linux
  • Architecture | arm64
  • SBC model | Orange Pi 3B (aarch64)
  • Power supply used | 5V 3A
  • SD card used | SanDisk ultra

Additional Information (if applicable)

  • Software title | mjpg-streamer and octoprint
  • Was the software title installed freshly or updated/migrated? | octoprint was already installed and mjpg-streamer freshly instaled
  • Can this issue be replicated on a fresh installation of DietPi? | I donā€™t know, I managed to solve the problem and Iā€™m writing here just to say that something like this happened
    ā† If you sent a ā€œdietpi-bugreportā€, please paste the ID here ā†’

Steps to reproduce

  1. Install mjpg-streamer after octopi via dietpi-software

Expected behaviour

  • the camera should be visible in octoprint

Actual behaviour

  • the camera is visible on the page http://:8082/?action=snapshot , but not in octoprint

Extra details

  • I have already managed to solve this problem. The bug was created by dietpi-software installing mjpg-streamer and editing octoprintā€™s config.yaml file. The error was writing at the end of the file this part:
    webcam: ffmpeg: /usr/bin/ffmpeg snapshot: http://<ip>:8082/?action=snapshot stream: http://<ip>:8082/?action=stream
    and there should be a space for editing in the earlier part of the file:
    classicwebcam:
    after editing:
    classicwebcam: _config_version: 1 snapshot: http://<ip>:8082/?action=snapshot stream: http://<ip>:8082/?action=stream
    and so I managed to fix this error. later, I added the path to ffmpeg on the octoprint website and everything works, I checked the config.yaml file again and now the path was added to a new line at the end of the file
    webcam: ffmpeg: /usr/bin/ffmpeg,
    so now I donā€™t know what the problem was, but now everything works. maybe this knowledge will be useful to someone
1 Like

Daggumā€¦could have used this a while backā€¦LOL

I ended up getting frustrated and just installed motioneye in a docker and pointed my Octoprint webgui to the motioneye instanceā€¦either or I supposeā€¦but your fix is the proper wayā€¦stupid spaces always messing stuff up :slight_smile:

well I only found this error because it really annoyed me and a lot of luck(it was a miracle how I found it) .

1 Like

This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.