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.
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

That fixed my first issue. Worked fine in my Ubuntu Edgy test system after installing libmysqlclient12. Then I tried on a Feisty system, and had to find libmysqlclient12, and only 15 is available in the repositories. Then it fails with an auth issue... (I think because 12 will not auth with the mysql using 15.) Any hints or hope for a patch? :) It is so handy, and I really want it on the production system!
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post by maciekc »

Lee Sharp wrote:That fixed my first issue. Worked fine in my Ubuntu Edgy test system after installing libmysqlclient12. Then I tried on a Feisty system, and had to find libmysqlclient12, and only 15 is available in the repositories. Then it fails with an auth issue... (I think because 12 will not auth with the mysql using 15.) Any hints or hope for a patch? :) It is so handy, and I really want it on the production system!
Did you tried to recompile xlib_shm?(make clean, make)
Did you compiled zm by yourself?
Maybe you need to change some includes in xlib_shm.c or something in makefile.
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

As a policy, we compile nothing on production systems. It makes upgrades painful. :) Stand alone binaries are slid in under the wire, but packages (from repositories) are the preferred method. Perhaps this could be integrated into Peter's debs for Ubuntu and Debian?

But to answer your question, no I did not compile, and I installed from the debs. I was hoping a new version was forthcoming, and thought I would check first. It keeps patch management simple. :)
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post by maciekc »

Lee Sharp wrote:As a policy, we compile nothing on production systems. It makes upgrades painful. :) Stand alone binaries are slid in under the wire, but packages (from repositories) are the preferred method. Perhaps this could be integrated into Peter's debs for Ubuntu and Debian?
So you should ask him to include xlib_shm to his debs. I think this is a good idea.
But to answer your question, no I did not compile, and I installed from the debs. I was hoping a new version was forthcoming, and thought I would check first. It keeps patch management simple. :)
Try to compile only xlib_shm it should help, cause my binary was compiled on older system.
sesam_pt
Posts: 7
Joined: Wed Feb 28, 2007 1:11 pm

Post by sesam_pt »

Hello, i'm trying to setup zoneminder with xlib_shm-gl on ubuntu feisty, but it only runs using sudo, if i try to run with normal user it states

ERROR:Failed to shmget
EACESS - no rights to access segment

Can someone help-me with the needed permissions. thank you
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post by maciekc »

sesam_pt wrote:Hello, i'm trying to setup zoneminder with xlib_shm-gl on ubuntu feisty, but it only runs using sudo, if i try to run with normal user it states

ERROR:Failed to shmget
EACESS - no rights to access segment

Can someone help-me with the needed permissions. thank you
You have to run it with root or with your zm user - probably www-data, or change permissions of shared memory in zm source code.
muzyk10
Posts: 6
Joined: Mon Apr 10, 2006 2:46 pm
Location: Poland

Post by muzyk10 »

hi

I'm trying to run xlib_shm and xlib_shm_gl without luck.
I have (gentoo system):

gcc-4.1.1
2.6.20-gentoo-r8
libmysqlclient.so.15
xorg-server-1.4-r1
xf86-video-i810 (dri) -2.1.1
zoneminder-1.22.3

They both compile ok, but after start i get 'segmentation fault' only.
Is there chance to make them more verbose ?
I didnt find 'configure' scripts.
Occasionally xlib_shm (no GL) will run but for some time (secodns to minutes) and them 'segfault'.

Sorry for my english :)

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

Post by maciekc »

muzyk10 wrote:hi

I'm trying to run xlib_shm and xlib_shm_gl without luck.
I have (gentoo system):

gcc-4.1.1
2.6.20-gentoo-r8
libmysqlclient.so.15
xorg-server-1.4-r1
xf86-video-i810 (dri) -2.1.1
zoneminder-1.22.3

They both compile ok, but after start i get 'segmentation fault' only.
Is there chance to make them more verbose ?
I didnt find 'configure' scripts.
Occasionally xlib_shm (no GL) will run but for some time (secodns to minutes) and them 'segfault'.

Sorry for my english :)

greetings
Did you used version 0.6.3?
Send email to me so I can help you using pl language, would be much simpler for both of us:)
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post by linuxsense »

Just wanted to say thanks for the stream viewer. I use it often and the performance is very good. I have been using the gl version....no issues.

Here is a KDE desktop shortcut that I setup to launch the viewer. You will need to adjust the path to the binary and the options to want to use for xlib_shm and you may also need to icon setting, but this should get you going:

Code: Select all

[Desktop Entry]
Categories=Qt;KDE;Core;
Comment=
Comment[en_US]=
Encoding=UTF-8
Exec=kdesudo "/home/dave/bin/xlib_shm -m1 -m2 -m3 -m4 -w 1024 -h 768"
GenericName=ZoneMinder Stream Viewer
GenericName[en_US]=ZoneMinder Stream Viewer
Icon=tv
MimeType=
Name=ZoneMinder Stream
OnlyShowIn=KDE;
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=
X-KDE-SubstituteUID=false
X-KDE-Username=
Save as a .desktop file in ~/Desktop/...I called mine "ZMstream.desktop". Just click to launch.
nextime
Posts: 23
Joined: Thu Nov 29, 2007 9:20 pm

bad view

Post by nextime »

Hi,
i'm trying xlib_shm (gl version and "no gl" version, same results ) with zm 1.22.3 from debian package ( 1.22.3-8 ) on debian sid, kernel 2.6.18 self compiled, xlib_shm version 0.6.3.
Hardware info:
CPU AMD Athlon(tm) X2 Dual Core Processor BE-2300
RAM: 2 gigs
capture card: pv155 card ( 16 ports x 4 chip Bt878 )
cams: 11 CCTV PAL color rgb24 at 320x240 ( work well in web gui of zm )
+1 linksys with a ugly hack with mplayer, so, local jpeg at 320x240

When i launch xlib_shm with: ./xlib_shm -m 20 -c 1 -w 320 -h 240
i get: http://danex.nexlab.it/xlib_shm.jpg

Any idea? what's wrong?
nextime
Posts: 23
Joined: Thu Nov 29, 2007 9:20 pm

Post by nextime »

Debian packages compiled against sid:

deb http://packages.medianix.net/ mercury main
deb-src http://packages.medianix.net/ mercury main

xlib-shm and xlib-shm-gl
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

nextime wrote:Debian packages compiled against sid:

deb http://packages.medianix.net/ mercury main
deb-src http://packages.medianix.net/ mercury main

xlib-shm and xlib-shm-gl
For those that do not want to add the repo, do you have a stand alone download as well?
nextime
Posts: 23
Joined: Thu Nov 29, 2007 9:20 pm

Post by nextime »

linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post by linuxsense »

Any chance of a version of xlib_shm for use with 1.23 in the near future?
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Re: bad view

Post by maciekc »

nextime wrote:Hi,
i'm trying xlib_shm (gl version and "no gl" version, same results ) with zm 1.22.3 from debian package ( 1.22.3-8 ) on debian sid, kernel 2.6.18 self compiled, xlib_shm version 0.6.3.
Hardware info:
CPU AMD Athlon(tm) X2 Dual Core Processor BE-2300
RAM: 2 gigs
capture card: pv155 card ( 16 ports x 4 chip Bt878 )
cams: 11 CCTV PAL color rgb24 at 320x240 ( work well in web gui of zm )
+1 linksys with a ugly hack with mplayer, so, local jpeg at 320x240

When i launch xlib_shm with: ./xlib_shm -m 20 -c 1 -w 320 -h 240
i get: http://danex.nexlab.it/xlib_shm.jpg

Any idea? what's wrong?
Looks like a bad pallette settings. Are you sure you are using rgb24 on all cameras?
Post Reply