mirror of
https://github.com/gen2brain/cam2ip.git
synced 2026-04-26 22:55:53 +03:00
[GH-ISSUE #61] Mjpeg stops after 5 seconds #50
Labels
No labels
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cam2ip#50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MorsMortium on GitHub (Feb 19, 2026).
Original GitHub issue: https://github.com/gen2brain/cam2ip/issues/61
It does not happen on the html link. Tested with 3 separate webcams.
The frame looks like it stopped rendering at one point and has a white bar on the bottom.
This is the error message that it outputs:
After a refresh it does work again, but in my case the mjpeg stream is imported into Home Assistant, which does not refresh and the video stops until reconfigured/restarted.
@MorsMortium commented on GitHub (Feb 22, 2026):
As it turns out, this is not related to movement, but happens after 5 seconds
@gen2brain commented on GitHub (Feb 26, 2026):
What OS are you using, i.e., what cam driver? Can you test with
ffplay -i http://localhost:56000/mjpeg? Does the same thing happen? Do you use old binaries from releases, or did you build the binary?@MorsMortium commented on GitHub (Feb 26, 2026):
I use Artix (like Arch) linux.
ffplay only shows a single frame, not even from when it started, but when the video was last played.
Output:
The Packet corrupt line happens at 5 seconds.
I used
go install github.com/gen2brain/cam2ip/cmd/cam2ip@latestto install it@gen2brain commented on GitHub (Feb 26, 2026):
Can you try @master? The latest release was many years ago.
@MorsMortium commented on GitHub (Feb 26, 2026):
Same happens, I have removed ~/go, ~/.config/go, ~/.cache/go-build and /.cache/go before installing, so that no files of the previous install remain
@gen2brain commented on GitHub (Feb 26, 2026):
I just tested with the old laptop with a camera, and I can reproduce this, the same issue. Not sure when I will have time to work and debug this, though. This is a project I occasionally work on.