Difference between revisions of "Xlib shm"

From ZoneMinder Wiki
Jump to navigationJump to search
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Current version - 0.5 is intended to use with '''zoneminder 1.22.1''' only.
Current version - 0.6.3 is intended to use with '''zoneminder 1.22.3''' only.


If you want to have it for other zm version please write to me, or change zm shm structures in code.
If you want to have it for other zm version please write to me, or change zm shm structures in code.
Line 11: Line 11:
I tried to add support to UYUV, but it consumes a lot of cpu.<br>
I tried to add support to UYUV, but it consumes a lot of cpu.<br>
It doesn't make sense because zm stores images in RGB24.<br>
It doesn't make sense because zm stores images in RGB24.<br>
<br>
If it doesn't find compatible xv adapter it tries to use ximage.<br>
<br>
<br>
For changing/disabling cameras use keys:<br>
For changing/disabling cameras use keys:<br>
Line 52: Line 54:
- GUI - buttons<br>
- GUI - buttons<br>
<br>
<br>
SCREENSHOT:
SCREENSHOT:<br>
[[Image:Xlib_shm-0.5.jpg]]
[[Image:Xlib_shm-0.5.jpg|200px]]<br>
DOWNLOAD:<br>
[http://dig.hopto.org/xlib_shm/ download here]
 


--[[User:Maciekc|Maciekc]] 21:50, 21 May 2006 (BST)
--[[User:Maciekc|Maciekc]] 21:50, 21 May 2006 (BST)

Latest revision as of 07:57, 6 December 2006

Current version - 0.6.3 is intended to use with zoneminder 1.22.3 only.

If you want to have it for other zm version please write to me, or change zm shm structures in code.

Xlib_shm is a program that allows you to view live stream from zoneminder on machine which you are running zoneminder.
It is small and fast, it is more cpu friendly than mozilla:)
In this version you can change your monitors with keyboard.
You need to have graphics card that support RGB32 in xvideo.
My Nvidia Riva Tnt 1 works OK.

I tried to add support to UYUV, but it consumes a lot of cpu.
It doesn't make sense because zm stores images in RGB24.

If it doesn't find compatible xv adapter it tries to use ximage.

For changing/disabling cameras use keys:
1 2 3 4
q w e r
a s d f
z x c v

In single mode you use only "1"
In quad "1" "2" "q" "w"
In 9 monitors "1" "2" "3" "q" "w" "e" "a" "s" "d"
In 16 monitors - all keys

For changing modes use:
5 t g b
"5" - single
"t" - quad
"g" - 9 monitors
"b" - 16 monitors

In command line you need to specify your id's of monitor which you want to look at
example:
./xlib_shm -m1 -m2 -m3 -m4

Command line parameters:
-x - x position of first monitor - default 0
-y - y position of first monitor - default 0
-w - width of a window - default x resolution
-h - height of a window - default y resolution
-k - shared memory key - shm_key - default 0x7a6d2000
-m - monitor id(max 32)
-d - delay between getting images in us - default 10000
-c - how many cameras at start in row and column - 1 single, 2 - quad, 3 - 9monitors, 4 - 16monitors
-i - info

If you have any ideas for making this software better please write to me:
maciekcz@(NO/SPAM)epf.pl

TODO:
- mouse support
- GUI - buttons

SCREENSHOT:
Xlib shm-0.5.jpg
DOWNLOAD:
download here


--Maciekc 21:50, 21 May 2006 (BST)