Hello,
I'm trying to setup a monitor to handle a multipart mjpeg stream.
If I use what I think it should be the correct configuration, I can't see anything on the monitor and no event is recorded:
protocol = HTTP
host = 192.168.1.6
port = 8080
path = video/mjpeg
If I use ffmpeg with same parameters, it doesn't work either.
path = http://192.168.1.6:8080/video/mjpeg
The connection to the camera is effective, the camera is streaming but the log continue to display the message:
zma_m1 26445 WAR Waiting for capture daemon zm_monitor.cpp 503
Can somebody help?
Thanks.
Multipart MJPEG stream not working
Re: Multipart MJPEG stream not working
One more information...
Just using the above URL in Firefox or Chrome on the same host running ZoneMinder I can see the stream natively with no issue.
Thanks again.
Just using the above URL in Firefox or Chrome on the same host running ZoneMinder I can see the stream natively with no issue.
Thanks again.
Re: Multipart MJPEG stream not working
What about using VLC?
Double check the resolution you are using. That is the biggest cause for video to fail in Zoneminder.
Double check the resolution you are using. That is the biggest cause for video to fail in Zoneminder.
Re: Multipart MJPEG stream not working
Do you mean libvlc? If so, it doesn't work but I'm not sure on how to set its parameters. VLC itself works perfectly.
I have tried different resolution without success.
In ZoneMinder 1.31.47, ffmpeg works but Remote does not.
I have tried different resolution without success.
In ZoneMinder 1.31.47, ffmpeg works but Remote does not.
Re: Multipart MJPEG stream not working
I found the problem: the mjpeg stream should contain the Content-Length header for each new frame, that is strange since the frame size should be detected based on the boundary tag.
Now I can see the stream but I have to set the image with 2 pixels less than the real or I'll get a skewed image. For example, with 640x480 image resolution, I need to set width=638, height=480. It seems to be true for all the resolutions.
Do somebody know why?
I'm testing with 1.31.47 now.
Now I can see the stream but I have to set the image with 2 pixels less than the real or I'll get a skewed image. For example, with 640x480 image resolution, I need to set width=638, height=480. It seems to be true for all the resolutions.
Do somebody know why?
I'm testing with 1.31.47 now.