Event Frames Image not save correctly

Current Development version likely to have breaking changes
Post Reply
nevermind19
Posts: 19
Joined: Fri Oct 16, 2015 11:25 pm

Event Frames Image not save correctly

Post by nevermind19 »

I don't know why the frames events in my zoneminder 1.37.65 are saved in this mode...

Image

Image

This is a problem for the my script where i download the images from frames of the events and analized with yolo.

I think the previus version not had the problem
User avatar
iconnor
Posts: 3263
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Event Frames Image not save correctly

Post by iconnor »

I can't fathom how this would be possible... there is no code in zm to do a partial rotation
nevermind19
Posts: 19
Joined: Fri Oct 16, 2015 11:25 pm

Re: Event Frames Image not save correctly

Post by nevermind19 »

i don't know how it makes it...i'm use linux ubuntu server 24.04.1 LTS , i think it's from 2 weeks it makes it, also, sometimes , rotate completely the image...i have this strage things also into a video it makes..
The only thing i make is a python script, where i use zmapi and yolo for see the allarmed frames of events and download them, and checked with yolo11,like your zm event server....but i don't think this is what can make this...
I use ffmpeg source , and the live i see in the correct view, the problem is the saved frames...also i use like 5 zones from all the cameras ..i dont't know what can make this strange things!
mikb
Posts: 673
Joined: Mon Mar 25, 2013 12:34 pm

Re: Event Frames Image not save correctly

Post by mikb »

iconnor wrote: Wed Dec 18, 2024 12:09 am I can't fathom how this would be possible... there is no code in zm to do a partial rotation
Is FFMPEG doing this (a minor typo in an option to FFMPEG might trigger something?) -- FFMPEG is certainly capable of rotating arbitrary degrees ...

Secondly, is some metadata from the camera getting handled differently -- for example some image viewers show images from my mobile phone "any which way up they like" (i.e. the natural way round the image sensor got the data), others "correct" it based on EXIF metadata in the .JPG file that says orientation of original imaging device. This means the same image can look completely different in two different viewers with no input from me to do so!
User avatar
iconnor
Posts: 3263
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Event Frames Image not save correctly

Post by iconnor »

I think you are on to something. Is this monitor recording in passthrough without saving jpegs? if so, then when viewing frames we are using ffmpeg to generate the frame images.

We recently discovered that ffmpeg deprecated the way we were specifying a rotation in a passthrough mp4, so just in the last few days I implemented the new way.

So I guess I will have to go see if I can replicate this.
User avatar
iconnor
Posts: 3263
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Event Frames Image not save correctly

Post by iconnor »

I havn't been able to reproduce it here. Are you using a rotation?
nevermind19
Posts: 19
Joined: Fri Oct 16, 2015 11:25 pm

Re: Event Frames Image not save correctly

Post by nevermind19 »

i not use rotation, i have this configuration

Image Image Image

anyway this strange things, are not always , but often .
nevermind19
Posts: 19
Joined: Fri Oct 16, 2015 11:25 pm

Re: Event Frames Image not save correctly

Post by nevermind19 »

I can show this video for understand what is happened. This is other camera , with the same configuration i show you before.You can see a video , is ok but all the frame are like in the mirror view.

https://youtu.be/KAT8FB85new
User avatar
iconnor
Posts: 3263
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Event Frames Image not save correctly

Post by iconnor »

So it's flipped... along the y-axis...
nevermind19
Posts: 19
Joined: Fri Oct 16, 2015 11:25 pm

Re: Event Frames Image not save correctly

Post by nevermind19 »

Yes…but i not decided to flip the image…i mean i find some frames flipped y or x or rotate as it want….but not all frames have this problem…. i don’t understand from where it understand to rotate the image or flip into the event.

But the monitor not have this configuration.

Now i trining to set to save all the jpg in recording for one camera for understand if this configuration for now solve the problem.
Post Reply