Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Mangled video with self-hosted server & Crowsnest #766

Open
whi-tw opened this issue Feb 27, 2023 · 3 comments
Open

[BUG] Mangled video with self-hosted server & Crowsnest #766

whi-tw opened this issue Feb 27, 2023 · 3 comments

Comments

@whi-tw
Copy link

whi-tw commented Feb 27, 2023

Describe the bug
Video stream appears mangled in obico-server. Unsure if this is a me-problem, but the stream works fine when viewed directly in the browser (http://klipper/webcam?action=stream) but the stream in the obico-server view is garbage after loading (the initial snapshot looks fine). Looks to possibly be an encoding problem, maybe?

To Reproduce
Steps to reproduce the behavior:

  1. Open the app, observe that the webcam snapshot looks ok
  2. Wait for the stream to start
  3. Observe that the stream looks like garbage

Screenshots
Screenshot 2023-02-27 at 12 23 54

Hosting environment (please complete the following information):

Additional context
I've tested this, and the stream is broken on MacOS (Safari / Chromium) and in the iOS app.

crowsnest camera config:

[cam top]
mode: mjpg                              # mjpg/rtsp
port: 8080                              # Port
device: /dev/video0
resolution: 1440x1080                   # widthxheight format
max_fps: 15                             # If Hardware Supports this it will be forced, otherwise ignored/coerced.
#custom_flags:                          # You can run the Stream Services with custom flags.
#v4l2ctl:                               # Add v4l2-ctl parameters to setup your camera, see Log what your cam is capable of.
@MallocArray
Copy link
Contributor

This has been observed with high resolutions. Try something lower than 800x600 and I believe it will work. I'm using 640x480 and it is operational. I believe Kenneth mentioned a fix is in process

@joshua76y
Copy link

I have the same problem,the webcam window is black and change resolution to 640*480 can't fit

@kennethjiang
Copy link
Contributor

@joshua76y Are you using a Raspberr Pi? Also it's a lot easier if you come to our discord channel since more people will see your message and help you: https://obico.io/discord-obico-klipper/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants