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

Forum for questions and support relating to the 1.32.x releases only.
pat2
Posts: 157
Joined: Fri Sep 16, 2016 6:35 pm

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

Post 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
Last edited by pat2 on Sat Apr 27, 2019 2:42 pm, edited 3 times in total.
---------------------------------------------------------------------------
ZM 1.36.36 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
rockedge
Posts: 1178
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: ZM 1.33.1 - Save MJPEG images

Post 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.
pat2
Posts: 157
Joined: Fri Sep 16, 2016 6:35 pm

Re: ZM 1.33.1 - Save MJPEG images

Post by pat2 »

thanks. I tried both.
In each case I see a fixed image... :-(
---------------------------------------------------------------------------
ZM 1.36.36 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
rockedge
Posts: 1178
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: ZM 1.33.1 - Save MJPEG images

Post by rockedge »

I am not sure what you are trying to do. What MPEG do you mean? The .mp4 file of an event?
pat2
Posts: 157
Joined: Fri Sep 16, 2016 6:35 pm

Re: ZM 1.33.1 - Save MJPEG images

Post 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
Last edited by pat2 on Sun Feb 10, 2019 5:25 pm, edited 3 times in total.
---------------------------------------------------------------------------
ZM 1.36.36 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
rockedge
Posts: 1178
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: ZM 1.33.1 - Save MJPEG images

Post by rockedge »

you're most likely missing the x264 libraries and or mp4v2 so your system can't play mp4...
pat2
Posts: 157
Joined: Fri Sep 16, 2016 6:35 pm

Re: ZM 1.33.1 - record MJPEG images

Post 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:
Attachments
Cattura1.PNG
Cattura1.PNG (66.31 KiB) Viewed 13425 times
Cattura2.PNG
Cattura2.PNG (44.69 KiB) Viewed 13425 times
Cattura3.PNG
Cattura3.PNG (43.02 KiB) Viewed 13425 times
Last edited by pat2 on Mon Feb 11, 2019 9:17 pm, edited 1 time in total.
---------------------------------------------------------------------------
ZM 1.36.36 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
siconic
Posts: 8
Joined: Mon Jan 07, 2019 3:21 pm

Re: ZM 1.33.1 - record MJPEG images

Post by siconic »

That is my issue as well. Still no solution, in freebsd.
pat2
Posts: 157
Joined: Fri Sep 16, 2016 6:35 pm

Re: ZM 1.33.1 - record MJPEG images

Post 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.
Last edited by pat2 on Sat Apr 27, 2019 2:46 pm, edited 1 time in total.
---------------------------------------------------------------------------
ZM 1.36.36 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
User avatar
iconnor
Posts: 3199
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: ZM 1.33.1 - record MJPEG images

Post by iconnor »

You can't use h264 passthrough if the source stream is not h264. Use x264 encode or just save the jpegs.
pat2
Posts: 157
Joined: Fri Sep 16, 2016 6:35 pm

Re: ZM 1.33.1 - record MJPEG images

Post 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
---------------------------------------------------------------------------
ZM 1.36.36 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
detxm80
Posts: 38
Joined: Fri Oct 13, 2017 9:42 am

Re: ZM 1.32.3 and 1.33.1 - record MJPEG images

Post by detxm80 »

Same problem here
User avatar
iconnor
Posts: 3199
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: ZM 1.32.3 and 1.33.1 - record MJPEG images

Post by iconnor »

I think this is the same old cgi pass to zms problem. Check your apache config and apache logs.
detxm80
Posts: 38
Joined: Fri Oct 13, 2017 9:42 am

Re: ZM 1.32.3 and 1.33.1 - record MJPEG images

Post 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
pat2
Posts: 157
Joined: Fri Sep 16, 2016 6:35 pm

Re: ZM 1.32.3 and 1.33.1 - record MJPEG images

Post 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.
---------------------------------------------------------------------------
ZM 1.36.36 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
Post Reply