LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 05-24-2011, 05:33 AM   #1
nztech
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Rep: Reputation: 0
Zone Minder USB Web Cam Not working


Hi,

I am wanting assistance with getting Zoneminder working under ubuntu 11.04.
I have ran the install and setup the settings via http://ipaddress/zm
added the camera re instructions.

I cannot view anything via Zone Minder.
Cam is a Logitech Pro 5000

Any help would be greatly appreciated.

Regards
Blair
 
Old 05-24-2011, 05:34 AM   #2
nztech
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Original Poster
Rep: Reputation: 0
followed this link:
http://www.unixmen.com/linux-tutoria...ith-zoneminder
and
http://www.howtoforge.com/video_surv...eminder_ubuntu
 
Old 05-24-2011, 05:36 AM   #3
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 581

Rep: Reputation: 114Reputation: 114
For that camera you can't just plug it into ZoneMinder directly.

You have to first install MJPEG-Streamer (formerly uvc_streamer) which can stream the image over the network, and then you have to configure ZoneMinder to access it as a remote camera URL with a loopback address.
 
Old 05-24-2011, 05:41 AM   #4
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 581

Rep: Reputation: 114Reputation: 114
I ought to add - trust me on this I did this only a couple of weeks ago. Specifically with ZoneMinder and a Logitech QuickCam Pro 5000. Works beautifully.
 
Old 05-25-2011, 01:39 AM   #5
nztech
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

Thanks alot for that
I am not a great Linux admin but would like some help to install this.

Located:
mjpg-streamer-r63.tar.gz
copied to "/streamer"
hence cd /
mkdir streamer
cd streamer
Extract file:
tar xvf mjpg-streamer-r63.tar.gz
apt-get install make

Now this is where I get lost?
Can you assist to make this simple for me and how this is installed.

Many thanks
Blair
 
Old 05-25-2011, 01:42 AM   #6
nztech
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Extracted to:
/usr/src/mjpg-streamer-r63/
Contents:
CHANGELOG LICENSE Makefile mjpg_streamer.c mjpg_streamer.h plugins README start.sh utils.c utils.h www

Ran:
sh start.sh
Error:
start.sh: 28: ./mjpg_streamer: not found

Also tried to setup the camera as 127.0.0.1 and still no image

I am rather lost from here now sorry ..


Cheers
Blair

Last edited by nztech; 05-25-2011 at 02:39 AM.
 
Old 05-25-2011, 04:48 AM   #7
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 581

Rep: Reputation: 114Reputation: 114
Read the README.

It explains everything.
 
Old 05-26-2011, 01:50 AM   #8
nztech
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

CMD:
root@ubuntu:/mjpg-streamer# tar xzvf mjpg-streamer-r63.tar.gz

Went through the readme and had the following issues:

root@ubuntu:/mjpg-streamer# cd mjpg-streamer-r63/
root@ubuntu:/mjpg-streamer/mjpg-streamer-r63# make clean all
make -C plugins/input_uvc clean
make[1]: Entering directory `/mjpg-streamer/mjpg-streamer-r63/plugins/input_uvc'
rm -f *.a *.o core *~ *.so *.lo
make[1]: Leaving directory `/mjpg-streamer/mjpg-streamer-r63/plugins/input_uvc'
make -C plugins/input_testpicture clean
make[1]: Entering directory `/mjpg-streamer/mjpg-streamer-r63/plugins/input_test picture'
rm -f *.a *.o core *~ *.so *.lo
make[1]: Leaving directory `/mjpg-streamer/mjpg-streamer-r63/plugins/input_testp icture'
make -C plugins/output_file clean
make[1]: Entering directory `/mjpg-streamer/mjpg-streamer-r63/plugins/output_fil e'
rm -f *.a *.o core *~ *.so *.lo
make[1]: Leaving directory `/mjpg-streamer/mjpg-streamer-r63/plugins/output_file '
make -C plugins/output_http clean
make[1]: Entering directory `/mjpg-streamer/mjpg-streamer-r63/plugins/output_htt p'
rm -f *.a *.o core *~ *.so *.lo
make[1]: Leaving directory `/mjpg-streamer/mjpg-streamer-r63/plugins/output_http '
make -C plugins/output_autofocus clean
make[1]: Entering directory `/mjpg-streamer/mjpg-streamer-r63/plugins/output_aut ofocus'
rm -f *.a *.o core *~ *.so *.lo
make[1]: Leaving directory `/mjpg-streamer/mjpg-streamer-r63/plugins/output_auto focus'
make -C plugins/input_gspcav1 clean
make[1]: Entering directory `/mjpg-streamer/mjpg-streamer-r63/plugins/input_gspc av1'
rm -f *.a *.o core *~ *.so *.lo
make[1]: Leaving directory `/mjpg-streamer/mjpg-streamer-r63/plugins/input_gspca v1'
rm -f *.a *.o mjpg_streamer core *~ *.so *.lo
gcc -O2 -DLINUX -D_GNU_SOURCE -Wall -c -o mjpg_streamer.o mjpg_streamer.c
mjpg_streamer.c:27:28: fatal error: linux/videodev.h: No such file or directory
compilation terminated.
make: *** [mjpg_streamer.o] Error 1

Ran:
root@ubuntu:/mjpg-streamer/mjpg-streamer-r63# export LD_LIBRARY_PATH=.

Ran:
root@ubuntu:/mjpg-streamer/mjpg-streamer-r63# ./mjpg_streamer -o "output_http.so -w ./www"

-bash: ./mjpg_streamer: No such file or directory


root@ubuntu:/mjpg-streamer/mjpg-streamer-r63# ls
CHANGELOG LICENSE Makefile mjpg_streamer.c mjpg_streamer.h plugins README start.sh utils.c utils.h www

Can you assist with these?


Kind Regards
Blair
 
Old 05-26-2011, 02:57 AM   #9
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 581

Rep: Reputation: 114Reputation: 114
You don't have the videodev.h file in your kernel headers.

In Slackware this file is installed in the kernel-headers package. In any other distro I don't know.
 
Old 05-26-2011, 11:53 PM   #10
nztech
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Hi,

Can you please guide me with this?
Re: videodev.h file install?

This is not an easy feat in Linux.....

Cheers
Blair
 
Old 05-27-2011, 09:59 AM   #11
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 581

Rep: Reputation: 114Reputation: 114
Why don't you at least tell me/us what distribution and version you are running?
 
Old 05-27-2011, 04:54 PM   #12
nztech
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Oh I should sorry - Is Ubunbtu Server 11.04 32-bit.

Cheers
Blair
 
Old 05-31-2011, 04:26 AM   #13
nztech
LQ Newbie
 
Registered: Aug 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Has anyone managed to get Ubuntu and ZoneMinder working?
Any help additional here would be great if you can assist to resolve this issue as not resolved.

Is it possible firstly and has anyone managed to do this before.

Regards
Blair
 
Old 05-31-2011, 06:32 AM   #14
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 581

Rep: Reputation: 114Reputation: 114
Go to the Ubuntu forums and ask there where you can find a package containing videodev.h. Or google for it. It's probably something with a -dev extension, i.e. v4l-dev.
 
  


Reply

Tags
cam, ubuntu, webcam, zoneminder


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
usb web cam to install abd_bela Linux - Hardware 2 01-01-2009 04:17 PM
Advice on getting USB Web Cam to work unux82 Linux - Hardware 11 11-13-2008 05:38 PM
Web cam not working new Linux User Linux - Hardware 2 05-07-2008 11:21 PM
Zone Minder carlosinfl Linux - Software 2 05-03-2007 07:49 AM
USB Web cam SittingInFrontOfPC Fedora 1 04-20-2006 10:57 AM


All times are GMT -5. The time now is 02:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration