Raw stream viewer

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post 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
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

ok great work. I will give it a go soon when i have doon a bit more to zm4ms
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post 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.
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post 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.
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post 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.
Best Regards
Tom Stage
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post by voronwe »

Ok i was just wondering when i ran the make.
Best Regards
Tom Stage
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post 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.
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post 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.
Best Regards
Tom Stage
semotta
Posts: 20
Joined: Wed Jun 29, 2005 11:39 pm
Location: Sao Paulo, Brazil

Post 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.
semotta
Posts: 20
Joined: Wed Jun 29, 2005 11:39 pm
Location: Sao Paulo, Brazil

Post 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
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post 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.
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post 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.
semotta
Posts: 20
Joined: Wed Jun 29, 2005 11:39 pm
Location: Sao Paulo, Brazil

Post 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
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post 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.
Post Reply