Can't download jpeg frames

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
beppuz
Posts: 12
Joined: Mon Sep 18, 2023 7:28 pm

Can't download jpeg frames

Post by beppuz »

Hi all,

when downloading from montage review I face the same behaviour as reported here viewtopic.php?p=129943&hilit=actions+ca ... ST#p129943: downloaded package misses jpeg frames and ZM weblog reports "actions can no longer be performed without POST. Requested: download for request] at /usr/share/zoneminder/www/index.php line 200".

Monitor setup is:
- Save JPEGs: frames only
- Video writer: disabled

I replaced every occurence of method="get" with method="post" in the .php files under /usr/share/zoneminder/www/skins/classic/views/, to no avail.

With following settings:
- Save JPEGs: disabled
- Video writer: encode
- h264
- libx264

download succeds and event videos are working ok.
The downside is that CPU usage increases approx. 1.5 points/camera (and I manage 32...): not sustainable for my mileage.

Code: Select all

~# zmc -v
1.36.33
I'm new to ZM and perhaps I'm missing some configuration culprit...
User avatar
iconnor
Posts: 3384
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Can't download jpeg frames

Post by iconnor »

So... the Download button is basically Export with pre-configured settings to just grab the mp4s. If you don't have mp4's then you are going to get an empty file. It would be nice if it would detect this situation and alert you at least.

Do you get better behaviour using the Export button? Export will ask you what to download and you should get the saved jpegs.

Would you be able to use passthrough mode instead of recording jpegs or encoding?

In 1.37 Download has been changed to actually concatenation any available video, including jpegs into a single mp4 per monitor. Which should be slightly nicer. I havn't actually tested it with only jpegs though so it might not work for that at this time.
beppuz
Posts: 12
Joined: Mon Sep 18, 2023 7:28 pm

Re: Can't download jpeg frames

Post by beppuz »

Do you get better behaviour using the Export button? Export will ask you what to download and you should get the saved jpegs.
Export button triggers a correct download of all frames images in the event (BTW: html page hides more than half of the image - see attached screenshot).
Would you be able to use passthrough mode instead of recording jpegs or encoding?
I would like to do, but can't get the "camera passthrough" option enabled. I feel I'm missing something obvious:
passthrough.png
passthrough.png (20.13 KiB) Viewed 2952 times
In 1.37 Download has been changed to actually concatenation any available video, including jpegs into a single mp4 per monitor.
This is definitely a great feature: encoding load would be charged only when video download is needed.

Thanks a lot for the hints!
Attachments
img.png
img.png (55.07 KiB) Viewed 2952 times
all.png
all.png (35.86 KiB) Viewed 2952 times
User avatar
iconnor
Posts: 3384
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Can't download jpeg frames

Post by iconnor »

Passthrough mode is only available for ffmpeg type monitors.
beppuz
Posts: 12
Joined: Mon Sep 18, 2023 7:28 pm

Re: Can't download jpeg frames

Post by beppuz »

It was something obvious, indeed!

Now I setup all monitors as FFMPEG and recording as camera passthrough: system load is now 0.73. Great!

BTW: source string (for Axis M7016) is now: http://user:pass@ip/mjpg/[camera#]/video.mjpg

Downloading videos from montage review works now.

Thanks Isaac.
User avatar
iconnor
Posts: 3384
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Can't download jpeg frames

Post by iconnor »

You might want to try other urls... what you are recording is a constant stream of jpegs. This will take up a lot of space.

The general h264 url is rtsp://<ip>/axis-media/media.amp?camera=<source no>
beppuz
Posts: 12
Joined: Mon Sep 18, 2023 7:28 pm

Re: Can't download jpeg frames

Post by beppuz »

I tried that syntax in VLC ant it didn't work. So I was held from applying it to ZM.

Now I did, and it works.
I will adopt it for some of the monitors and compare storage usage and CPU load.

Thanks again!
Post Reply