How to connect output from MJPG-Streamer?

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
andrkac
Posts: 10
Joined: Tue Dec 21, 2021 10:22 pm

How to connect output from MJPG-Streamer?

Post by andrkac »

I have a basic issue, I think.
I've connected USB webcam to old OpenWRT router, which for now works only as a switch
Webcam works (with uvc driver) and serves constant view with MJPG-Streamer as

Code: Select all

http://[openwrt_ip]:8082/?action=stream
This address shows just a live view from the webcam, which, i thought - should be enough form zoneminder. IT WORKS for example in VLC as a Network Stream
But Zoneminder cannot use this cam - or I don't know how to use it.

I believe I tried all possible configuration and still cannot see anything - In most cases I can see:"Monitor is not capturing. We will be unable to provide an image"
In logs I can see some errors:
2021-12-21 23:04:04 zmwatch 19041 ERR Memory map file '/dev/shm/zm.mmap.10' does not exist in zmMemAttach. zmc might not be running.
2021-12-21 23:03:33 zmc_m10 22411 ERR Failed to prime capture of initial monitor zmc.cpp 259
2021-12-21 23:03:33 zms_m10 22566 ERR Monitor shm is not connected zm_stream.cpp 77

The second one occurs each few seconds.
In the same time my second cam works ok, it is connected to the same machine which is zoneminder running on.

In one case (Remote source type) I have
2021-12-21 23:18:03 zmc_m10 10568 ERR Failed to capture image from monitor 10 Saloon (1/1) zmc.cpp 306
2021-12-21 23:18:03 zmc_m10 10568 ERR Unable to get response, disconnecting zm_remote_camera_http.cpp 1087
2021-12-21 23:18:03 zmc_m10 10568 ERR Invalid response status 400: Bad Request zm_remote_camera_http.cpp 758
In such situation as a view I can see black screen with "Unable to connect to monitor"


How should I configure ZM in my case?

--------------------------------------------
Zoneminder: 1.36.11 @ CentOS 7
OpenWRT: 19.07.3
source-view of liveview website has a header:

Code: Select all

--boundarydonotcross
Content-Type: image/jpeg
Content-Length: 292743
X-Timestamp: 42323.801235
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: How to connect output from MJPG-Streamer?

Post by Magic919 »

-
Post Reply