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

Post by maciekc »

semotta wrote: I checked video is 24bpp, running xlib_shm as root, zm running.
Question: is xlib_shm 0.6 compatible with zm 1.22.3 or only with zm 1.22.2?
Just made new version.
try version 0.6.3-gl or 0.6.3 it is compatible with 1.22.3.
There were some changes in shm beetween 1.22.2 vs 1.22.3
semotta
Posts: 20
Joined: Wed Jun 29, 2005 11:39 pm
Location: Sao Paulo, Brazil

Post by semotta »

maciekc wrote:
semotta wrote: I checked video is 24bpp, running xlib_shm as root, zm running.
Question: is xlib_shm 0.6 compatible with zm 1.22.3 or only with zm 1.22.2?
Just made new version.
try version 0.6.3-gl or 0.6.3 it is compatible with 1.22.3.
There were some changes in shm beetween 1.22.2 vs 1.22.3
It worked with 0.6.3.

How about "WARNING: Couldn't find free Xv adaptor with RGB XvImage support
Falling back to ximage - slow and ugly rescalling"?

Could you explain this message?
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post by maciekc »

semotta wrote: It worked with 0.6.3.

How about "WARNING: Couldn't find free Xv adaptor with RGB XvImage support
Falling back to ximage - slow and ugly rescalling"?

Could you explain this message?
Sure.
It indicates that your card doesn't support xv exntension in format RGB.
Only cards that I found working with this are nvidia's with nv driver.
Better use gl version it is much faster, and should work with every card if you configure it properly for opengl. Almost every ati and nvidia card should be working.
The minimal card for opengl is probably geforce 2 mx.
semotta
Posts: 20
Joined: Wed Jun 29, 2005 11:39 pm
Location: Sao Paulo, Brazil

Post by semotta »

maciekc wrote:
semotta wrote: It worked with 0.6.3.

How about "WARNING: Couldn't find free Xv adaptor with RGB XvImage support
Falling back to ximage - slow and ugly rescalling"?

Could you explain this message?
Sure.
It indicates that your card doesn't support xv exntension in format RGB.
Only cards that I found working with this are nvidia's with nv driver.
Better use gl version it is much faster, and should work with every card if you configure it properly for opengl. Almost every ati and nvidia card should be working.
The minimal card for opengl is probably geforce 2 mx.
Understood. In fact, my video card is SiS 661 (on-board), and that's why gl version didn't
worked. Based on your experience, do you think it's worth buying something better,
like a geforce?

Would it help to lower system load?

I love ZoneMinder but there's one negative aspect: my P4 box is having a hard time to
deal with 8 bttv cams...I've been searching through this forum for performance hints, but
little progress has been made till now.
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post by maciekc »

semotta wrote:
Understood. In fact, my video card is SiS 661 (on-board), and that's why gl version didn't
worked. Based on your experience, do you think it's worth buying something better,
like a geforce?

Would it help to lower system load?

yes it's worth it, because card like geforce 2 mx costs about 10 Euro. And it will give you better quality and very very minimal system load. On Pentium D 2,8GHz cpu use by xlib_shm is 0% displayed in `top`.

I love ZoneMinder but there's one negative aspect: my P4 box is having a hard time to
deal with 8 bttv cams...I've been searching through this forum for performance hints, but
little progress has been made till now.
I have pentium d 2,8GHz with 250GB fast SATA disks in RAID0 with 21 cameras, and it's working without problems. Framerate is about 4fps per camera.
Turn off every debug options, and set resolution to 352x288 and 4fps.
That should give you good results.
User avatar
victor_diago
Posts: 245
Joined: Wed Jan 21, 2004 2:44 pm
Location: Brazil, sao paulo
Contact:

Post by victor_diago »

Hi !

Do you use 352 x 288 in NTSC Cameras ?

thanks a lot

Victor Diago
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post by maciekc »

victor_diago wrote:Hi !

Do you use 352 x 288 in NTSC Cameras ?

thanks a lot

Victor Diago
No, I use 352x288 in PAL.
In NTSC max without interlace should be 320x240.
semotta
Posts: 20
Joined: Wed Jun 29, 2005 11:39 pm
Location: Sao Paulo, Brazil

Post by semotta »

maciekc wrote: It indicates that your card doesn't support xv exntension in format RGB.
Only cards that I found working with this are nvidia's with nv driver.
Better use gl version it is much faster, and should work with every card if you configure it properly for opengl. Almost every ati and nvidia card should be working.
The minimal card for opengl is probably geforce 2 mx.
I've installed GeForce4 MX 4000 and tried opengl version:

Code: Select all

xlib_shm viewer for zm 1.22.3 version 0.6.3-gl
imgx=0 imgy=0
delay=10000
shmkey=7a6d2000
monitors:1
ERROR: no appropriate RGB visual with depth buffer
resolution is 1024x768, 24bpp. I've tried also 32bpp but it was not supported.

EDIT: I realised I was using nv driver instead of nvidia, as is suggested on README file. I will change drivers and try again.
gola10
Posts: 150
Joined: Wed Nov 01, 2006 3:16 pm
Location: Panama

Summary

Post by gola10 »

I am new in Zoneminder and would like to implement Raw stream viewer since it reduces load on the server and mine is needing it.
There is a lot of information on the 7 pages of this topic but
Finaly how is it done?

I would appeciate if someone would guide me on how to implement it.
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Re: Summary

Post by maciekc »

gola10 wrote:I am new in Zoneminder and would like to implement Raw stream viewer since it reduces load on the server and mine is needing it.
There is a lot of information on the 7 pages of this topic but
Finaly how is it done?

I would appeciate if someone would guide me on how to implement it.
Read readme included in xlib_shm.

In few words:
It gets the image directly from zm and displays it in probably the most efficient way. F.e. mozilla gets the images through webserver(more load) and displays it very very slowly(a lot... of load).
The program was written to reduce the load, and replace hanging/disconnecting mozilla.

If you have some problems setting it up, don't hesitate to write to me.
gola10
Posts: 150
Joined: Wed Nov 01, 2006 3:16 pm
Location: Panama

Post by gola10 »

I just upgrade zoneminder from version 1.22.2 (installed from mandriva livecd) to version 1.22.3.
Also downloaded xlib_shm for version 1.22.3.
When i run it i has this error message.
xlib_shm viewer for zm 1.22.3 version 0.6.3
Client does not support authentication protocol requested by server; consider upgrading MySQL client.

if i do urpmf mysqlclient
libmysql14:/usr/lib/libmysqlclient.so.14
libmysql14:/usr/lib/libmysqlclient.so.14.0.0
libmysql14:/usr/lib/libmysqlclient_r.so.14
libmysql14:/usr/lib/libmysqlclient_r.so.14.0.0
libmysql14-devel:/usr/lib/libmysqlclient.a
libmysql14-devel:/usr/lib/libmysqlclient.la
libmysql14-devel:/usr/lib/libmysqlclient.so
libmysql14-devel:/usr/lib/libmysqlclient_r.a
libmysql14-devel:/usr/lib/libmysqlclient_r.la
libmysql14-devel:/usr/lib/libmysqlclient_r.so
libmysql14:/usr/lib/libmysqlclient.so.14
libmysql14:/usr/lib/libmysqlclient.so.14.0.0
libmysql14:/usr/lib/libmysqlclient_r.so.14
libmysql14:/usr/lib/libmysqlclient_r.so.14.0.0
libmysql14-devel:/usr/lib/libmysqlclient.a
libmysql14-devel:/usr/lib/libmysqlclient.la
libmysql14-devel:/usr/lib/libmysqlclient.so
libmysql14-devel:/usr/lib/libmysqlclient_r.a
libmysql14-devel:/usr/lib/libmysqlclient_r.la
libmysql14-devel:/usr/lib/libmysqlclient_r.so
libmysql15:/usr/lib/libmysqlclient.so.15
libmysql15:/usr/lib/libmysqlclient.so.15.0.0
libmysql15:/usr/lib/libmysqlclient_r.so.15
libmysql15:/usr/lib/libmysqlclient_r.so.15.0.0
libmysql12:/usr/lib/libmysqlclient.so.12
libmysql12:/usr/lib/libmysqlclient.so.12.0.0
libmysql12:/usr/lib/libmysqlclient_r.so.12
libmysql12:/usr/lib/libmysqlclient_r.so.12.0.0
libmysql12-devel:/usr/lib/libmysqlclient.a
libmysql12-devel:/usr/lib/libmysqlclient.la
libmysql12-devel:/usr/lib/libmysqlclient.so
libmysql12-devel:/usr/lib/libmysqlclient_r.a
libmysql12-devel:/usr/lib/libmysqlclient_r.la
libmysql12-devel:/usr/lib/libmysqlclient_r.so
libmysql15-devel:/usr/lib/libmysqlclient.a
libmysql15-devel:/usr/lib/libmysqlclient.la
libmysql15-devel:/usr/lib/libmysqlclient.so
libmysql15-devel:/usr/lib/libmysqlclient_r.a
libmysql15-devel:/usr/lib/libmysqlclient_r.la
libmysql15-devel:/usr/lib/libmysqlclient_r.so

On /usr/lib/ i have
libmysqlclient.so.12.0.0 and libmysqlclient.so.14.0.0 and libmysqlclient.so.15.0.0 which is the latest version on mandriva 2006.

Which is the problem?
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post by maciekc »

gola10 wrote:I just upgrade zoneminder from version 1.22.2 (installed from mandriva livecd) to version 1.22.3.
Also downloaded xlib_shm for version 1.22.3.
When i run it i has this error message.
xlib_shm viewer for zm 1.22.3 version 0.6.3
Client does not support authentication protocol requested by server; consider upgrading MySQL client.

Which is the problem?
Try to recompile xlib_shm.

Code: Select all

make clean
make
gola10
Posts: 150
Joined: Wed Nov 01, 2006 3:16 pm
Location: Panama

Post by gola10 »

[/home/guest/Download/xlib_shm-0.6.3]# make clean
rm -f *.o *.core xlib_shm
[/home/guest/Download/xlib_shm-0.6.3]# make
gcc -c xlib_shm.c -I/usr/X11R6/include
xlib_shm.c:57:22: error: X11/Xlib.h: No such file or directory
xlib_shm.c:66:34: error: X11/extensions/Xvlib.h: No such file or directory
xlib_shm.c:149: error: syntax error before 'XvImage'
xlib_shm.c:149: warning: no semicolon at end of struct or union
xlib_shm.c:153: error: syntax error before '}' token
xlib_shm.c:153: warning: data definition has no type or storage class
xlib_shm.c:155: error: syntax error before '*' token
xlib_shm.c:155: warning: data definition has no type or storage class
xlib_shm.c:163: error: syntax error before '*' token
xlib_shm.c:163: warning: data definition has no type or storage class
xlib_shm.c:171: error: syntax error before 'wm_delete_window'
xlib_shm.c:171: warning: data definition has no type or storage class
xlib_shm.c:175: error: syntax error before '*' token
xlib_shm.c: In function 'GetPortId':
xlib_shm.c:178: error: 'XvImageFormatValues' undeclared (first use in this function)
xlib_shm.c:178: error: (Each undeclared identifier is reported only once
xlib_shm.c:178: error: for each function it appears in.)
xlib_shm.c:178: error: 'formats' undeclared (first use in this function)
xlib_shm.c:179: error: 'XvAdaptorInfo' undeclared (first use in this function)
xlib_shm.c:179: error: 'info' undeclared (first use in this function)
xlib_shm.c:183: error: 'Success' undeclared (first use in this function)
xlib_shm.c:183: error: 'dpy' undeclared (first use in this function)
xlib_shm.c:189: error: 'XvImageMask' undeclared (first use in this function)
xlib_shm.c:202: error: 'CurrentTime' undeclared (first use in this function)
xlib_shm.c: In function 'main':
xlib_shm.c:380: error: request for member 'mon_id' in something not a structure or union
xlib_shm.c:381: error: request for member 'pallete' in something not a structure or union
xlib_shm.c:386: error: request for member 'mon_id' in something not a structure or union
xlib_shm.c:387: error: request for member 'pallete' in something not a structure or union
xlib_shm.c:448: error: request for member 'width' in something not a structure or union
xlib_shm.c:449: error: request for member 'height' in something not a structure or union
xlib_shm.c:450: error: request for member 'image_buffer_count' in something not a structure or union
xlib_shm.c:460: error: request for member 'width' in something not a structure or union
xlib_shm.c:460: error: request for member 'height' in something not a structure or union
xlib_shm.c:460: error: request for member 'image_buffer_count' in something not a structure or union
xlib_shm.c:460: error: request for member 'mon_id' in something not a structure or union
xlib_shm.c:464: error: request for member 'height' in something not a structure or union
xlib_shm.c:464: error: request for member 'height' in something not a structure or union
xlib_shm.c:465: error: request for member 'width' in something not a structure or union
xlib_shm.c:465: error: request for member 'width' in something not a structure or union
xlib_shm.c:479: error: request for member 'mon_id' in something not a structure or union
xlib_shm.c:483: error: 'Display' undeclared (first use in this function)
xlib_shm.c:483: error: 'dis' undeclared (first use in this function)
xlib_shm.c:485: error: 'Window' undeclared (first use in this function)
xlib_shm.c:485: error: syntax error before 'win'
xlib_shm.c:486: error: 'GC' undeclared (first use in this function)
xlib_shm.c:488: error: 'XEvent' undeclared (first use in this function)
xlib_shm.c:500: error: 'parent' undeclared (first use in this function)
xlib_shm.c:503: error: 'win' undeclared (first use in this function)
xlib_shm.c:505: error: 'None' undeclared (first use in this function)
xlib_shm.c:518: error: 'gc' undeclared (first use in this function)
xlib_shm.c:550: error: request for member 'image' in something not a structure or union
xlib_shm.c:550: error: request for member 'width' in something not a structure or union
xlib_shm.c:550: error: request for member 'height' in something not a structure or union
xlib_shm.c:551: error: request for member 'image' in something not a structure or union
xlib_shm.c:562: error: request for member 'image_buffer_count' in something not a structure or union
xlib_shm.c:563: error: request for member 'pallete' in something not a structure or union
xlib_shm.c:563: error: request for member 'image_buffer_count' in something not a structure or union
xlib_shm.c:563: error: request for member 'width' in something not a structure or union
xlib_shm.c:563: error: request for member 'height' in something not a structure or union
xlib_shm.c:564: error: request for member 'pallete' in something not a structure or union
xlib_shm.c:564: error: request for member 'image_buffer_count' in something not a structure or union
xlib_shm.c:564: error: request for member 'width' in something not a structure or union
xlib_shm.c:564: error: request for member 'height' in something not a structure or union
xlib_shm.c:567: error: request for member 'mon_id' in something not a structure or union
xlib_shm.c:593: error: request for member 'shared_data' in something not a structure or union
xlib_shm.c:595: error: request for member 'shared_images' in something not a structure or union
xlib_shm.c:598: error: request for member 'image_buffer_count' in something not a structure or union
xlib_shm.c:618: error: 'StructureNotifyMask' undeclared (first use in this function)
xlib_shm.c:618: error: 'KeyPressMask' undeclared (first use in this function)
xlib_shm.c:620: error: 'XWindowAttributes' undeclared (first use in this function)
xlib_shm.c:620: error: syntax error before 'win_attrib'
xlib_shm.c:622: error: 'win_attrib' undeclared (first use in this function)
xlib_shm.c:637: error: 'ZPixmap' undeclared (first use in this function)
xlib_shm.c:637: warning: assignment makes pointer from integer without a cast
xlib_shm.c:653: error: request for member 'shared_data' in something not a structure or union
xlib_shm.c:669: error: request for member 'shared_data' in something not a structure or union
xlib_shm.c:671: error: request for member 'pallete' in something not a structure or union
xlib_shm.c:672: error: request for member 'shared_images' in something not a structure or union
xlib_shm.c:672: error: request for member 'width' in something not a structure or union
xlib_shm.c:672: error: request for member 'height' in something not a structure or union
xlib_shm.c:673: error: request for member 'pallete' in something not a structure or union
xlib_shm.c:674: error: request for member 'shared_images' in something not a structure or union
xlib_shm.c:674: error: request for member 'width' in something not a structure or union
xlib_shm.c:674: error: request for member 'height' in something not a structure or union
xlib_shm.c:680: error: request for member 'pallete' in something not a structure or union
xlib_shm.c:682: error: request for member 'width' in something not a structure or union
xlib_shm.c:682: error: request for member 'height' in something not a structure or union
xlib_shm.c:691: error: request for member 'pallete' in something not a structure or union
xlib_shm.c:693: error: request for member 'width' in something not a structure or union
xlib_shm.c:693: error: request for member 'height' in something not a structure or union
xlib_shm.c:706: error: request for member 'image' in something not a structure or union
xlib_shm.c:706: error: request for member 'width' in something not a structure or union
xlib_shm.c:706: error: request for member 'height' in something not a structure or union
xlib_shm.c:717: error: request for member 'height' in something not a structure or union
xlib_shm.c:718: error: request for member 'width' in something not a structure or union
xlib_shm.c:719: error: request for member 'width' in something not a structure or union
xlib_shm.c:722: error: request for member 'pallete' in something not a structure or union
xlib_shm.c:730: error: request for member 'pallete' in something not a structure or union
xlib_shm.c:752: error: 'event' undeclared (first use in this function)
xlib_shm.c:753: error: 'ConfigureNotify' undeclared (first use in this function)
xlib_shm.c:764: warning: assignment makes pointer from integer without a cast
xlib_shm.c:768: error: 'ClientMessage' undeclared (first use in this function)
xlib_shm.c:776: error: 'KeyPress' undeclared (first use in this function)
xlib_shm.c:874: warning: assignment makes pointer from integer without a cast
make: *** [xlib_shm.o] Error 1

This is what i get from make
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post by maciekc »

xlib_shm.c:57:22: error: X11/Xlib.h: No such file or directory
xlib_shm.c:66:34: error: X11/extensions/Xvlib.h: No such file or directory
Look for packages containing xlib.h and xvlib.h.
probably package libxorg-x11-devel.
gola10
Posts: 150
Joined: Wed Nov 01, 2006 3:16 pm
Location: Panama

It is working

Post by gola10 »

Maciekc:
it say "Could not find free Xv adapter........" but it is working anyway.

Thanks for your help.

I need to REMOTELY view all the cameras as i do with xlib_shm. Can it be used remotely?
I have tried to open a ssh session and run it but it is slow and only the first row of cameras is displayed.

Is there a remote viewer for Linux? other than Montage.

Thanks
Post Reply