Page 2 of 14

Posted: Tue Feb 21, 2006 4:15 pm
by maciekc
jameswilson wrote:Maciekc, i havnt tried your viewer, but if development with you is progressing i could drop working on the linux one i have as you seem to know more about what your doing than me.
If your making an app for linux, obviously viewing is important, you need various split screen types ie quad, 9 way 16 way etc. Also playback.
I don't have a rescalling for now. So I can display only in the native resolution. I'm now working on support for more cameras in one program - almost done.
A problem that i have had for a while now is multicam playback (i was thinking of limiting it to 4 way playback max.
Probably I wouldn't make playback. I like to use it in firefox.
I also think the interface should be mouse only (or keyboard not needed but usefull) as a keyboard gets in the way, plus if you felt flash a touchscreen would be great.
I will make scroll or mouse click change camera.
I dont think it needs to be to amazing as its the software on the machine and the more it does is less power is available to zm. (Plus its a damn site harder to work on, on the development side lol ;-))
I think it should be very simple. My goal is to implement quad/9 way/16 way/cycle. And the simple interface with few buttons.
PS whats it written in?
C

Posted: Tue Feb 21, 2006 4:44 pm
by jameswilson
ok great work. I will give it a go soon when i have doon a bit more to zm4ms

Posted: Thu Feb 23, 2006 1:08 pm
by maciekc
New version 0.1.2 - xlib_shm & xlib_raw.
Fixed memory leak problem. After few days when using version < 0.1.2 your memory will be full.

Posted: Thu Feb 23, 2006 9:03 pm
by maciekc
xlib_shm-0.2 reads the information from zm.conf and zm_database. you don't need to specify monitor width height and fps - they are automatically read from database.
Example of running:
./xlib_shm -m 1
Also you can specify -f to get other framerate than maxfps specified in zm options.

Posted: Thu Feb 23, 2006 10:42 pm
by voronwe
Hi guys

Am i the only one that have to modify the Makefile to make it compile under FC3 ?

My problem is that i could not find the mysqlclient libs, if you want i can post the changes that i made to the Makefile.

Posted: Thu Feb 23, 2006 11:04 pm
by cordel
It's not really a flaw. This is why a configure script is created. You will have to edit the make file. Is just not worth the effort to make a configuration script to change one line.

Regards,
Corey

Posted: Fri Feb 24, 2006 12:33 am
by voronwe
Ok i was just wondering when i ran the make.

Posted: Fri Feb 24, 2006 3:41 pm
by maciekc
version 0.3 of xlib_shm - supports up to 32(this could be simple changed) monitors in one program. But still no rescalling. It should work with various monitor sizes however I have tested it only with 352x288.

Example of running:
./xlib_shm -m2 -m1 -m2 -m1 -m2 -m1 -m1 -m1 -m1 -d 10000

-d is used to specify a delay between trying to get next image - it depends on how many monitors you have and how many fps you want to get.

Here you can get it and see a screenshot:
http://dig.hopto.org/xlib_shm/

@voronwe
I will make a configure script when it would be really needed. Or you can write some for me and I'll attach it to package.

Posted: Sat Feb 25, 2006 10:52 am
by voronwe
Hi Maciekc

I will have to say that i would be happy to do so if i knew how to.
Iam not a programmer, i dont know that much about it, it took me an hour to figure out what to add to the make script.

Posted: Tue Feb 28, 2006 11:31 pm
by semotta
maciekc wrote: @voronwe
I will make a configure script when it would be really needed. Or you can write some for me and I'll attach it to package.
How about just putting some comment on Makefile, like:

# Note for Fedora users:
# gcc xlib_shm.o -L$(X11PREFIX)/lib -L/usr/lib/mysql -lX11 -lmysqlclient -Wl,-rpath=$(X11PREFIX)/lib -o xlib_shm

It's not like a configure script, but it can save users time to discover what's wrong with compilation.

Sergio.

Posted: Tue Feb 28, 2006 11:43 pm
by semotta
Hi,

When i run xlib_shm (xlib_shm -m 1) as root, screen flashes and returns with the following
messages:

xlib_shm viewer for zm 1.22.0 version 0.3
imgx=0 imgy=0
delay=10000
shmkey=7a6d2000
monitors:1
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 72 (X_PutImage)
Serial number of failed request: 11
Current serial number in output stream: 13

System is FC4.
Thanks,
Sergio

Posted: Wed Mar 01, 2006 11:20 am
by maciekc
semotta wrote:Hi,

When i run xlib_shm (xlib_shm -m 1) as root, screen flashes and returns with the following
messages:

xlib_shm viewer for zm 1.22.0 version 0.3
imgx=0 imgy=0
delay=10000
shmkey=7a6d2000
monitors:1
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 72 (X_PutImage)
Serial number of failed request: 11
Current serial number in output stream: 13

System is FC4.
Thanks,
Sergio
Change your display depth to 24bits in your xserver configuration file. It should work.
If not please post what is happening.

Posted: Wed Mar 01, 2006 1:23 pm
by maciekc
semotta wrote: # Note for Fedora users:
# gcc xlib_shm.o -L$(X11PREFIX)/lib -L/usr/lib/mysql -lX11 -lmysqlclient -Wl,-rpath=$(X11PREFIX)/lib -o xlib_shm
Sergio.
I'll add this to next release.

Posted: Tue Mar 07, 2006 5:59 pm
by semotta
maciekc wrote: X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 72 (X_PutImage)
Serial number of failed request: 11
Current serial number in output stream: 13

Change your display depth to 24bits in your xserver configuration file. It should work.
If not please post what is happening.
Changed display to 24 bits depth:

# ./xlib_shm -m 1
xlib_shm viewer for zm 1.22.0 version 0.3
imgx=0 imgy=0
delay=10000
shmkey=7a6d2000
monitors:1
ERROR: Failed to shmget

Any other hint?

Sergio

Posted: Tue Mar 07, 2006 6:05 pm
by maciekc
semotta wrote: # ./xlib_shm -m 1
xlib_shm viewer for zm 1.22.0 version 0.3
imgx=0 imgy=0
delay=10000
shmkey=7a6d2000
monitors:1
ERROR: Failed to shmget

Any other hint?

Sergio
Probably not running zm. Start it with zmpkg.pl start

Or you are trying to run xlib_shm on other user than zm(you should run it from the same user as www and zm - in debian www-data in other distros nobody, wwwuser and so on), you can also run it as root - for cheching if that was the fault.