Page 1 of 5

ZM 1.32.3 (and 1.33.1) - bug on replay recorded JPEG images

Posted: Sat Feb 09, 2019 10:34 am
by pat2
hi,

in ZM 1.32 I'm able to record FFMPEG images setting H264 Passthrough in Video Writer,

Please, what settings in storage for MJPEG images?

thanks

Re: ZM 1.33.1 - Save MJPEG images

Posted: Sat Feb 09, 2019 2:37 pm
by rockedge
in a monitor configuration window go under the Storage tab and change Save JPEGs to one of the options such as Frames or Frames & Analysis.

Re: ZM 1.33.1 - Save MJPEG images

Posted: Sat Feb 09, 2019 4:48 pm
by pat2
thanks. I tried both.
In each case I see a fixed image... :-(

Re: ZM 1.33.1 - Save MJPEG images

Posted: Sat Feb 09, 2019 11:04 pm
by rockedge
I am not sure what you are trying to do. What MPEG do you mean? The .mp4 file of an event?

Re: ZM 1.33.1 - Save MJPEG images

Posted: Sat Feb 09, 2019 11:22 pm
by pat2
hi,

i'm trying to view a recorded stream. The source is not an ffmpeg stream, but an mjpeg stream.
I'm able to view. I'm recording with one of the option you suggested, but not able to view what recorded.

On other lower ZM versions (i.e. 1.29) I'm able to view the same stream (*) and to view the recorded stream too. On 1.33.1 no... :-(
I hope to be clear.
thanks regards

(*): the camera is a FOSCAM FI8910W with an MJPEG stream and the stream in ZM has the following settings (on ZM 1.29 able to view and view what recorded too):

source type= remote
protocol: http
method= simple
hostname=192.168.1.203
port=200
path=/videostream.cgi?user=admin&pwd=admin&rate=3
colorspace=24
Width=640
Height=480

Re: ZM 1.33.1 - Save MJPEG images

Posted: Sun Feb 10, 2019 2:28 am
by rockedge
you're most likely missing the x264 libraries and or mp4v2 so your system can't play mp4...

Re: ZM 1.33.1 - record MJPEG images

Posted: Sun Feb 10, 2019 3:28 pm
by pat2
thanks rock,
they are already installed:

Code: Select all

sudo apt-get install libx264-152

Code: Select all

 sudo apt-get install libmp4v2-dev
I receive:

Code: Select all

libx264-152 is already the newest version (2:0.152.2854+gite9a5903-2)

Code: Select all

libmp4v2-dev is already the newest version (2.0.0~dfsg0-6)
It seems my ZM 1.33 (or 1.32) is able to view the live MJPEG stream, but not able to view the same stream when recorded .

For the 2 cameras I'm testing, I went in the events directory.

For the first ffmpeg camera, the one it's possible to see what recorded,

Save JPEGs= disabled,
Video writer= H264 passthrough

->I found 1 snapshot.jpg and 1 mp4.

For the second mjpeg camera, the one it's NOT possible to see what recorded,

Save JPEGs= Frames only,
Video writer= disabled

->I found many jpegs.

thanks

Note: in log console i receive the following warning when I record:

Code: Select all

Can't find process with command of 'zma -m 2'
and the following error when I try to view what recorded;

Code: Select all

getCmdResponse stream error: Socket /var/run/zm/zms-436737s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information. - checkStreamForErrors()
the result is the following screen:

Re: ZM 1.33.1 - record MJPEG images

Posted: Mon Feb 11, 2019 5:50 pm
by siconic
That is my issue as well. Still no solution, in freebsd.

Re: ZM 1.33.1 - record MJPEG images

Posted: Wed Feb 20, 2019 12:05 pm
by pat2
I don't know if it is a bug of ZM or a specific beahviour of ZM in any specific environment.

I tried on an Intel core 5 + Ubuntu 18.04 in a VMware emulation enviroment and it is not working too.

For sure different behaviours according to the distro/HW platform used.

Re: ZM 1.33.1 - record MJPEG images

Posted: Wed Feb 20, 2019 3:30 pm
by iconnor
You can't use h264 passthrough if the source stream is not h264. Use x264 encode or just save the jpegs.

Re: ZM 1.33.1 - record MJPEG images

Posted: Thu Feb 21, 2019 2:15 pm
by pat2
Exactly. I'm with an ARM board and since not an FFMPEG camera, so both X264 Encode and H264 camera passthrough are disabled.

Since an MJPEG camera, I'm using

Save JPEGs= Frames only
Video writer= disabled

The issue is that it's not possible to reproduce a video from the recorded JPEGs. It was possible with ZM 1.29 and ZM 1.30.4. I see only a fixed frame (probably the first) or nothing on ZM 1.32 or 1.33.

On lower ZM versions like 1.29 or 1.30.4, ZM is able to reproduce a video using the recorded JPEG images.

In log file I'm getting the following ERR message:

Socket /var/run/zm/zms-973978s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/lat ... window-etc for more information.

Hope to be clear.
thaks

Re: ZM 1.32.3 and 1.33.1 - record MJPEG images

Posted: Mon Apr 15, 2019 10:43 pm
by detxm80
Same problem here

Re: ZM 1.32.3 and 1.33.1 - record MJPEG images

Posted: Wed Apr 17, 2019 1:25 pm
by iconnor
I think this is the same old cgi pass to zms problem. Check your apache config and apache logs.

Re: ZM 1.32.3 and 1.33.1 - record MJPEG images

Posted: Thu Apr 18, 2019 9:19 pm
by detxm80
iconnor wrote:
Wed Apr 17, 2019 1:25 pm
I think this is the same old cgi pass to zms problem. Check your apache config and apache logs.
Can you explain me ? I don’t understand how on x86 all work ok an arm not

Thanks

Re: ZM 1.32.3 and 1.33.1 - record MJPEG images

Posted: Sat Apr 20, 2019 1:02 pm
by pat2
I edited apache error log with sudo nano /var/log/apache2/error.log.
That's the result:
[Sat Apr 20 14:48:53.294943 2019] [mpm_prefork:notice] [pid 833] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sat Apr 20 14:48:53.296879 2019] [core:notice] [pid 833] AH00094: Command line: '/usr/sbin/apache2'
the log seems ok also after trying to open a recorded mjpeg image and the image is blocked at the first frame and it appear the following message under the image:

Mode: Replay Rate: 0x Progress: NaN:NaN:NaNs Zoom: 0x

So, probably we are stupid users not able to debug the error, but for sure we are many and following exactly the istruction on Zoneminder site.