cambozola limitations (zoom, montage, & resize) [SOLVED]

Forum for questions and support relating to the 1.24.x releases only.
Locked
th
Posts: 23
Joined: Wed Dec 30, 2009 4:05 am
Location: Iowa

cambozola limitations (zoom, montage, & resize) [SOLVED]

Post by th »

I'm trying to make this easy for others to use. And as we all know the "others" tend to use IE as a browser and are scared of change. Obviously, cambozola is the key to streaming on IE.

But when I use cambozola I come across 3 limitations.

First. In Montage view, I get the same image repeating across the cameras. So if I have 8 cameras, I see 8 views of camera one or three or whatever one seemed to refresh first. Refreshing the entire page gives me different results each time. If I'm lucky, the refresh will show 2 or 3 that will load correctly and then a bunch of duplicates. But not all 8 (or however many I have on that installation).

Second. In viewing the individual camera, I can't click on the image to zoom in like I can when I'm not in cambozola. Nothing happens.

Third. In viewing the individual camera, I can't resize the image. Well, sometimes it lets me resize it down. But if I click to resize to 2x it just creates a 2x screen with the same 1x/Actual sized image in the center of it.

I've tried this on 3 different installs of Zone minder. And on different IE installations.

Yet I've searched the forum and not seen anyone mention this.

Can anyone duplicate this? Or has anyone been able to find a work around so I can expect cambozola in IE to work as well as mjpeg streams in the real browsers?

For what its worth, all my clients were fully patched to IE8 and Java 6 Update 18.
I tried on both Vista and XP too.
Last edited by th on Fri Mar 05, 2010 5:59 pm, edited 1 time in total.
whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy »

Repeating images might be another issue other than IE or Cambozola... this occurs when having one chip 2 or more channels on it... check the forums there's plenty of info on how to fix it...

If resize to 2x don't work, and in the selection menu still shows 1x, it is a problem with Fedora 12 and zoneminder... or might be configuration, but there are several people including my self that have that problem, and when viewing events, you select gapless events, reverts to single event... only known solution I know, is to moddify some files and rearrange the order of the arrays...
th
Posts: 23
Joined: Wed Dec 30, 2009 4:05 am
Location: Iowa

Post by th »

whatboy wrote:Repeating images might be another issue other than IE or Cambozola... this occurs when having one chip 2 or more channels on it... check the forums there's plenty of info on how to fix it...
Are you referring to CCTV capture cards?

In the most recent builds (that I'm making for other people now), its all been IP cams... with no capture chips.

But as I recall, it did it under my earlier CCTV setups as well.
whatboy wrote:If resize to 2x don't work, and in the selection menu still shows 1x, it is a problem with Fedora 12 and zoneminder... or might be configuration, but there are several people including my self that have that problem, and when viewing events, you select gapless events, reverts to single event... only known solution I know, is to moddify some files and rearrange the order of the arrays...
Mine continues to say "2x" or whatever size I selected. So its not changing back. Its just not changing the size of the image in the java app.

I have to admit that I don't know how to select gapless events. Can you clarify where that option is?

And what files need to modified? Or what should I search for in my files to find them myself?

Also, I should have added that I am using CentOS.
whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy »

When replaying events, an option (dropdown menu) will apear, (single event, all events, gapless events) the file is located in zoneminder folder, skins/classic/views and the file is event.php, the original array is like...

Code: Select all

$replayModes = array(
    'single' => $SLANG['ReplaySingle'],
    'all' => $SLANG['ReplayAll'],
    'gapless' => $SLANG['ReplayGapless'],
);
just change to what you want to be default...

Code: Select all

$replayModes = array(
    'gapless' => $SLANG['ReplayGapless'],
    'all' => $SLANG['ReplayAll'],
    'single' => $SLANG['ReplaySingle'],
);
th
Posts: 23
Joined: Wed Dec 30, 2009 4:05 am
Location: Iowa

Post by th »

whatboy wrote:When replaying events, an option (dropdown menu) will apear, (single event, all events, gapless events) the file is located in zoneminder folder, skins/classic/views and the file is event.php, the original array is like...

Code: Select all

$replayModes = array(
    'single' => $SLANG['ReplaySingle'],
    'all' => $SLANG['ReplayAll'],
    'gapless' => $SLANG['ReplayGapless'],
);
just change to what you want to be default...

Code: Select all

$replayModes = array(
    'gapless' => $SLANG['ReplayGapless'],
    'all' => $SLANG['ReplayAll'],
    'single' => $SLANG['ReplaySingle'],
);
That doesn't appear to help in regards to the montage view showing the same images repeatedly. Or maybe you never intended that to be a solution to that problem.

Can anyone confirm the same problem is happening to them as in my original post?
whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy »

That doesn't appear to help in regards to the montage view
Nope, but you ask for'em... sorry, guess I'm of no help with your problems...
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Post by mastertheknife »

Cambozola works fine here for rescaling live stream and events, tested in IE6 and IE8.
There was a line i needed to comment to get rescaling to work properly in events, that line was already commented for live streams.
About montage i can't test yet because only 1 camera installed at the moment, second camera pending installation.
Zooming indeed doesn't work when using cambozola, hopefully a solution will be found.

Make sure to use latest version of cambozola, from here:
http://www.charliemouse.com/code/cambozola/
You just replace the file with the file in your zm html folder.
th
Posts: 23
Joined: Wed Dec 30, 2009 4:05 am
Location: Iowa

Post by th »

mastertheknife wrote:Make sure to use latest version of cambozola, from here:
http://www.charliemouse.com/code/cambozola/
You just replace the file with the file in your zm html folder.
You sir are my hero.

I thought I read about people having problems with updated cambozola.jar jars so I stayed away from them. But per your recommendation, the new one is in place and instantly all the broken features (except zoom) were working!

Thank you for the recommendation.
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Post by mastertheknife »

I want zoom working with cambozola but its not easy.
I tried many ways to get it to work with cambozola but the problem is that the applet steals the onclick events for itself.
Googling for hours i found you can create an invisible iframe over the applet, that way we will be able to capture mouse clicks.
I will try it sometime and report how it goes, but my javascript knowledge is very low.

mastertheknife
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Post by mastertheknife »

UPDATE:
I couldn't get my transparent iframe and div to be over the applet, its hard to get the positioning right.
The idea is to set the onclick event for a div located above the applet but because my html, css and javascript knowledge is low, i couldn't get it to work.

Here are examples and code of this in case anyone wants to try:
http://www.bluestudios.co.uk/blog/?p=6
http://www.oratransplant.nl/2007/10/26/ ... va-applet/
http://weblogs.asp.net/bleroy/archive/2 ... in-ie.aspx
MarcoP
Posts: 46
Joined: Wed Mar 24, 2010 1:46 pm

Post by MarcoP »

th wrote:
whatboy wrote:When replaying events, an option (dropdown menu) will apear, (single event, all events, gapless events) the file is located in zoneminder folder, skins/classic/views and the file is event.php, the original array is like...

Code: Select all

$replayModes = array(
    'single' => $SLANG['ReplaySingle'],
    'all' => $SLANG['ReplayAll'],
    'gapless' => $SLANG['ReplayGapless'],
);
just change to what you want to be default...

Code: Select all

$replayModes = array(
    'gapless' => $SLANG['ReplayGapless'],
    'all' => $SLANG['ReplayAll'],
    'single' => $SLANG['ReplaySingle'],
);
That doesn't appear to help in regards to the montage view showing the same images repeatedly. Or maybe you never intended that to be a solution to that problem.

Can anyone confirm the same problem is happening to them as in my original post?
http://www.zoneminder.com/forums/viewtopic.php?t=15692
ememberus
Posts: 3
Joined: Thu Sep 09, 2010 3:40 pm

Post by ememberus »

Confirming - in Montage view (zoneminder version version 1.24.2) cambozola does not scale video frames correctly: it keeps frame size 1x when I want to zoom, or crops them whem I want to downsize video frames.
ememberus
Posts: 3
Joined: Thu Sep 09, 2010 3:40 pm

Post by ememberus »

besides, cambozola is no longer working in monitor watch window -
it worked there before, at least in version 1.22.3 ...
ememberus
Posts: 3
Joined: Thu Sep 09, 2010 3:40 pm

Post by ememberus »

Hi -
cambozola zoom issue is marked as solved,
but I do not see on this site any solution other than
upgrading cambozola to the newest version.

Well, I installed cambozola 0.80 but the zoom problem
is still there.

If the issue has been solved, could anyone tell me
what the fix is or where to find the patch for it.

Thanks a lot!
Locked