Page 1 of 1

Wonky montage

Posted: Tue Mar 08, 2005 5:30 pm
by JimNoble
Finally got zm up and running again having moved house, upgraded to FC3, and bought a 4xBT878 card that actually works.

All going swimmingly so far, except in the montage view, the first camera (of two - got one local and one remote going so far) is all distorted.

The top line of the image is fine, but the next line down is barrel shifted/wrapped right by one pixel, 2nd line by 2 pixels, etc etc all the way down the image, such that what should be the vertical left hand edge of the image is actually a diagonal line sweeping down the image and to the right.

Anyone seen this before?

Jim

Posted: Tue Mar 08, 2005 8:25 pm
by zoneminder
Can you post screen grab of the problem? Does it look ok on the single monitor view?

Phil

Posted: Tue Mar 08, 2005 10:48 pm
by JimNoble
Hi Phil,

Image

Image

(Highly exciting picture of the inside of the window! Must move the camera outside...)

Image size doesn't seem to make a difference btw.

Jim

Posted: Tue Mar 08, 2005 11:34 pm
by zoneminder
Curious. I assume the top image is correct tho? It looks to me like an X x Y image is being displayed in a space that just isn't quite large enough, or that the capture settings are slightly out. Do you see the image ok in the single monitor view?

Phil

Posted: Tue Mar 08, 2005 11:55 pm
by JimNoble
Yeah, top one is from the single monitor view - it's supposed to look like that :wink:

Jim

Posted: Thu Mar 10, 2005 11:52 am
by zoneminder
Are you able to post the HTML source of the frame (using 'view source' or similar command) containing the image in the broken example? That might shed some light on things.

Posted: Thu Mar 10, 2005 10:35 pm
by JimNoble
Yep:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>ZM - Montage</title>
<link rel="stylesheet" href="zm_html_styles.css" type="text/css">
<script type="text/javascript">
window.focus();
</script>
</head>
<frameset rows="16,*" cols="*" border="1" frameborder="no" framespacing="0">
<frame src="/zm/index.php?view=montagemenu&mode=" marginwidth="0" marginheight="0" name="MontageMenu" scrolling="no">
<frameset rows="240" cols="320,320" border="1" frameborder="no" framespacing="0">
<frame src="/zm/index.php?view=montageframe&mid=1&mode=" marginwidth="0" marginheight="0" name="MontageFrame1" scrolling="no">
<frame src="/zm/index.php?view=montageframe&mid=5&mode=" marginwidth="0" marginheight="0" name="MontageFrame5" scrolling="no">
</frameset>
</frameset>
</html>
Jim

Posted: Thu Mar 10, 2005 10:42 pm
by zoneminder
Hi Jim,

Thanks for that. However that's the source for the containing frameset and I need the actual frame source. If you have FireFos you can a 'This Frame -> View Source' as the default gives you what you have posted. In IE I think you just have to make sure you are exactly in the right place before you right click.

By the way, what size have yopu defined your monitor as, it looks like 320x240 is that right?

Phil

Posted: Fri Mar 11, 2005 2:31 pm
by JimNoble
D'Oh! :roll:

Try again:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ZM - Front - Feed</title>
<link rel="stylesheet" href="zm_html_styles.css" type="text/css">
<script type="text/javascript">
</script>
</head>
<body>
<table width="96%" align="center" border="0" cellspacing="0" cellpadding="2">
<tr><td align="center">
<applet code="com.charliemouse.cambozola.Viewer" archive="cambozola.jar" align="middle" width="314" height="236"><param name="url" value="/cgi-bin/zm/zms?mode=jpeg&monitor=1&scale=41&maxfps=25&user=Jim&pass=wibble"></applet>
</td></tr>
</table>
</body>
</html>
The wonky one is from a full res PAL image (768x576), and the 2nd one is from a 320x240 remote wireless cam.

Here's the source for the 2nd image:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ZM - Garage - Feed</title>
<link rel="stylesheet" href="zm_html_styles.css" type="text/css">
<script type="text/javascript">
</script>
</head>
<body>
<table width="96%" align="center" border="0" cellspacing="0" cellpadding="2">
<tr><td align="center">
<applet code="com.charliemouse.cambozola.Viewer" archive="cambozola.jar" align="middle" width="320" height="240"><param name="url" value="/cgi-bin/zm/zms?mode=jpeg&monitor=5&scale=100&maxfps=25&user=Jim&pass=wibble"></applet>
</td></tr>
</table>
</body>
</html>
Looks like maybe I'm confusing it by having different sized monitors...?

Jim

Posted: Fri Mar 11, 2005 5:07 pm
by zoneminder
Different sized monitors shouldn't be a problem but I wonder if in your case there's a rounding error that means one of the dimensions is one pixel out and you are getting a one pixel offset per line.

Do you have ZM_WEB_MONTAGE_WIDTH or HEIGHT set? If so, to what?

Phil

Posted: Fri Mar 11, 2005 5:31 pm
by JimNoble
WIDTH 320 HEIGHT 240 (default?)

Ta!

Jim

Posted: Fri Mar 11, 2005 5:34 pm
by zoneminder
I don't think it will likely make too much difference but try leaving one and then the other of them blank, or set to zero (I forget which).

Phil

Posted: Fri Mar 11, 2005 5:55 pm
by JimNoble
No difference. However, using 384 and 288 sorts it out...

Jim