ZMS terminates when attempting to change scale from "Ac

Forum for questions and support relating to the 1.24.x releases only.
Locked
krisp
Posts: 1
Joined: Tue Apr 21, 2009 1:53 pm

ZMS terminates when attempting to change scale from "Ac

Post by krisp »

I'm having an issue while using the monitor stream and changing the scale of the jpeg stream on the fly. If I set the default scale to 2x it will load up fine at 2x, but can't be switched back to actual. Here is the debug log from zms:

Code: Select all

04/21/09 09:50:41.511290 zms[31913].DB2-zm_monitor.cpp/2917 [Got message, type 1, msg 11]
04/21/09 09:50:41.511309 zms[31913].DB1-zm_monitor.cpp/3118 [Got SCALE command, to 200]
04/21/09 09:50:41.511322 zms[31913].DB2-zm_monitor.cpp/3171 [L:0, D:0, P:0, R:100, d:0.057, Z:100, E:1 F:0]
04/21/09 09:50:41.511346 zms[31913].DB3-zm_stream.cpp/58 [FPS:30.12, MXFPS:15, BFPS:30, EFPS:30, FM:1]
04/21/09 09:50:41.511361 zms[31913].DB3-zm_stream.cpp/65 [aEFPS:15, aFM:2]
04/21/09 09:50:41.511373 zms[31913].DB2-zm_monitor.cpp/3504 [Storing frame 151]
04/21/09 09:50:41.539363 zms[31913].DB3-zm_stream.cpp/115 [Scaling by 200, zooming by 100 = magnifying by 200(200)]
04/21/09 09:50:41.539379 zms[31913].DB3-zm_stream.cpp/119 [Last scaling by 100, zooming by 100 = magnifying by 100(100)]
04/21/09 09:50:41.539391 zms[31913].DB3-zm_stream.cpp/122 [Base image width = 320, height = 240]
04/21/09 09:50:41.539400 zms[31913].DB3-zm_stream.cpp/125 [Virtual image width = 640, height = 480]
04/21/09 09:50:41.539410 zms[31913].DB3-zm_stream.cpp/128 [Last virtual image width = 320, height = 240]
04/21/09 09:50:41.539420 zms[31913].DB3-zm_stream.cpp/131 [Actual image width = 640, height = 480]
04/21/09 09:50:41.539430 zms[31913].DB3-zm_stream.cpp/134 [Last actual image width = 320, height = 240]
04/21/09 09:50:41.539439 zms[31913].DB3-zm_stream.cpp/137 [Display image width = 640, height = 480]
04/21/09 09:50:41.539449 zms[31913].DB3-zm_stream.cpp/140 [Last display image width = 320, height = 240]
04/21/09 09:50:41.539459 zms[31913].DB3-zm_stream.cpp/143 [Send image width = 640, height = 480]
04/21/09 09:50:41.539468 zms[31913].DB3-zm_stream.cpp/146 [Last send image width = 320, height = 240]
04/21/09 09:50:41.539478 zms[31913].DB3-zm_stream.cpp/152 [Magnifying by 200]
04/21/09 09:50:41.542723 zms[31913].DB3-zm_stream.cpp/164 [Real image width = 640, height = 480]
04/21/09 09:50:41.565961 zms[31913].DB2-zm_monitor.cpp/3504 [Storing frame 152]
04/21/09 09:50:41.599365 zms[31913].DB2-zm_monitor.cpp/3504 [Storing frame 153]
04/21/09 09:50:41.631265 zms[31913].DB3-zm_stream.cpp/115 [Scaling by 200, zooming by 100 = magnifying by 200(200)]
04/21/09 09:50:41.631281 zms[31913].DB3-zm_stream.cpp/119 [Last scaling by 200, zooming by 100 = magnifying by 200(100)]
04/21/09 09:50:41.631292 zms[31913].DB3-zm_stream.cpp/122 [Base image width = 320, height = 240]
04/21/09 09:50:41.631302 zms[31913].DB3-zm_stream.cpp/125 [Virtual image width = 640, height = 480]
04/21/09 09:50:41.631312 zms[31913].DB3-zm_stream.cpp/128 [Last virtual image width = 640, height = 480]
04/21/09 09:50:41.631322 zms[31913].DB3-zm_stream.cpp/131 [Actual image width = 640, height = 480]
04/21/09 09:50:41.631331 zms[31913].DB3-zm_stream.cpp/134 [Last actual image width = 320, height = 240]
04/21/09 09:50:41.631341 zms[31913].DB3-zm_stream.cpp/137 [Display image width = 640, height = 480]
04/21/09 09:50:41.631351 zms[31913].DB3-zm_stream.cpp/140 [Last display image width = 640, height = 480]
04/21/09 09:50:41.631360 zms[31913].DB3-zm_stream.cpp/143 [Send image width = 640, height = 480]
04/21/09 09:50:41.631370 zms[31913].DB3-zm_stream.cpp/146 [Last send image width = 320, height = 240]
04/21/09 09:50:41.631379 zms[31913].DB3-zm_stream.cpp/152 [Magnifying by 200]
04/21/09 09:50:41.633339 zms[31913].DB3-zm_stream.cpp/164 [Real image width = 640, height = 480]
04/21/09 09:50:41.633528 zms[31913].INF-zm_signal.cpp/43 [Got signal 15 (Terminated), exiting]
It briefly shows the image as 2x in Firefox or IE and then the image disappears and I have to reopen the monitor window.
sherrmann
Posts: 1
Joined: Mon May 04, 2009 3:25 pm

Post by sherrmann »

I get the same issues with a installation freshly upgrade to 1.24.1. It happens with two different IP-Cams and by scaling the resolution in either direction.

When I set the default scale of the camera to some none standard values, than this scale works without problems. But I try than to change the scale from default (1/2 as example) to original, zms crashes with the messages reported by krisp...

Any tips how to further trace this problem?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I have seen this as well, and know that it has been discussed, I'm thinking it's fixed in SVN but don't remember for sure. I'll take a look at it this weekend so long as I remember :lol:
User avatar
henriquejf
Posts: 77
Joined: Tue Feb 10, 2009 12:01 pm
Location: Brazil

use firefox built in zoom

Post by henriquejf »

I have always prefered to use the client side solution; by that i mean using the firefox zoom ("ctrl +", "ctrl zero" or "ctrl -") to zoom in/out; works perfectly with images and video live streams;

of course it is not a solution, and neither a part of it, but it´s a way to get the same results in terms of quality, and i think much more practical because it feels MORE "on-the-fly" that changing the scale on a drop-down with the mouse and waiting for the "server-side" effect; it would be exagerated to say that this "lowers" server load, but theoretically, i think it does;

And just before someone says that the quality is not the same, please make a test first and tell me sincerely you notice some quality loss, i really doubt it;

disconsider this suggestion if you´re more interested in caving and fixing the real problem, tough;
-----------------------
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

This is a new 'feature' of FireFox 3 at least. It objects to the image size in a stream changing on the fly. It used to work in FireFox 2 which didn't mind.

The released 1.24.x versions of ZM dynamically adjust the resolution for best results. Ie, if you are viewing at 50% resolution and then resize to 100% then the resolution you see on your screen would have changed to match. In order to get round this issue the SVN version of ZM is changed now to just adjust the client window and the stream continues at the initial resolution so in the example above if you go from 50% to 100% scaling then all you will get is a doubled up 50% size image with no improvement in resolution unfortunately.
Phil
Locked