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

Snapshot black when not streaming on USB Device #1015

Open
cavernerg opened this issue Mar 22, 2024 · 14 comments
Open

Snapshot black when not streaming on USB Device #1015

cavernerg opened this issue Mar 22, 2024 · 14 comments
Labels
enhancement New feature or request

Comments

@cavernerg
Copy link

cavernerg commented Mar 22, 2024

I use a logitech USB Cam to monitor my 3D printer. When I grab a snapshot (via Octoslack/Octoprint) I get a black image, if nothing else needs the cam. If I stream while Octosclack downloads the snapshot, it's fine.

@AlexxIT AlexxIT added the question Further information is requested label Apr 22, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Apr 22, 2024

Please provide more info. How you setup stream.

@cavernerg
Copy link
Author

Thanks for replying. Here is an example picture
WhatsApp Bild 2024-04-30 um 20 15 12_008f86b1

This is the entry in config file:
ffmpeg:device?video=1#video=mjpeg#hardware

@AlexxIT
Copy link
Owner

AlexxIT commented May 1, 2024

Show what you can see WebUI > Add > USB

@cavernerg
Copy link
Author

cavernerg commented May 3, 2024

image

it is a Logitech C615 Camera. To me it seems like the camera is in standby and when go2rtc takes the snapshot, the camera is not fully awake and adjusted to the light.
Because if I am watching the stream on my android and go2rtc takes the snapshot in the same moment, everything is fine.

The light dots in the example picture in the post 3 days ago are from the LED-Strip, which permanently lights up the 3D-Printer

@AlexxIT
Copy link
Owner

AlexxIT commented May 5, 2024

Use config as suggested in WebUI. You don't need transcoding for mjpeg, because camera support this format out of box.

@cavernerg
Copy link
Author

Oh right, I was there before and tried around - but the result remains the same.

@AlexxIT
Copy link
Owner

AlexxIT commented May 5, 2024

What about stream? Do you have problems only with snapshots?

@cavernerg
Copy link
Author

Stream works flawless. Only snapshots are problematic. And that only, when camera is not in use e.g. through parallel streaming.

@AlexxIT
Copy link
Owner

AlexxIT commented May 13, 2024

Have you tried to get snapshot during active stream?

@cavernerg
Copy link
Author

Yeah that is what I tried to explain. In this moments , snapshots are fine

@AlexxIT
Copy link
Owner

AlexxIT commented May 13, 2024

You have two examples in the go2rtc WebUI. Have you tried them both?

@cavernerg
Copy link
Author

Yes , I did.
To me it seems like the camera needs too much time to wake up from standby

@AlexxIT AlexxIT added enhancement New feature or request and removed question Further information is requested labels May 13, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented May 13, 2024

I also think the camera is the problem.
The solution may be to skip the first X frames. But there are no plans for such a fix in the near future

@cavernerg
Copy link
Author

Yeah I'd do that , if it was my own implementation of getting the snap, but I'm using octoprint/octoslack to do that. :(

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

No branches or pull requests

2 participants