ZM 1.33.1 - record MJPEG images

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

ZM 1.33.1 - record MJPEG images

Post by pat2 » Sat Feb 09, 2019 10:34 am

hi,
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 Sun Feb 10, 2019 11:31 am, edited 1 time in total.

rockedge
Posts: 1001
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: ZM 1.33.1 - Save MJPEG images

Post by rockedge » Sat Feb 09, 2019 2:37 pm

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: 44
Joined: Fri Sep 16, 2016 6:35 pm

Re: ZM 1.33.1 - Save MJPEG images

Post by pat2 » Sat Feb 09, 2019 4:48 pm

thanks. I tried both.
In each case I see a fixed image... :-(

rockedge
Posts: 1001
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: ZM 1.33.1 - Save MJPEG images

Post by rockedge » Sat Feb 09, 2019 11:04 pm

I am not sure what you are trying to do. What MPEG do you mean? The .mp4 file of an event?

pat2
Posts: 44
Joined: Fri Sep 16, 2016 6:35 pm

Re: ZM 1.33.1 - Save MJPEG images

Post by pat2 » Sat Feb 09, 2019 11:22 pm

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.

rockedge
Posts: 1001
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: ZM 1.33.1 - Save MJPEG images

Post by rockedge » Sun Feb 10, 2019 2:28 am

you're most likely missing the x264 libraries and or mp4v2 so your system can't play mp4...

pat2
Posts: 44
Joined: Fri Sep 16, 2016 6:35 pm

Re: ZM 1.33.1 - record MJPEG images

Post by pat2 » Sun Feb 10, 2019 3:28 pm

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 115 times
Cattura2.PNG
Cattura2.PNG (44.69 KiB) Viewed 115 times
Cattura3.PNG
Cattura3.PNG (43.02 KiB) Viewed 115 times
Last edited by pat2 on Mon Feb 11, 2019 9:17 pm, edited 1 time in total.

siconic
Posts: 7
Joined: Mon Jan 07, 2019 3:21 pm

Re: ZM 1.33.1 - record MJPEG images

Post by siconic » Mon Feb 11, 2019 5:50 pm

That is my issue as well. Still no solution, in freebsd.

pat2
Posts: 44
Joined: Fri Sep 16, 2016 6:35 pm

Re: ZM 1.33.1 - record MJPEG images

Post by pat2 » Wed Feb 20, 2019 12:05 pm

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 working.

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest