Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Peripherals / Hardware > configuring camserv

Forgot Password?
 Peripherals / Hardware   Is your hardware supported? Having trouble getting some hardware working? Post here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 02-18-2009   #1 (permalink)
j1s
Just Joined!
 
j1s's Avatar
 
Join Date: Nov 2006
Location: Norway
Posts: 88
configuring camserv

Hi, all.

I need help configuring camserv.

The installation process executes without any errors
Code:
sudo apt-get install camserv
When I point my browser to localhost:9192, the image is like a tv with bad receptions.

When I test the same camera with aMsn, it works just fine.

My config file is like this:

Code:
# video_basic: The 'basic' color-changing video module.
[video_basic]
path		/usr/lib/camserv/libvideo_basic.so.0

# video_v4l_bttv:  Example of a common BTTV module for video4linux.  
# port 0 == TV, port 1 = Composite 1, port 2 = Composite 2
# frequency == is the channel frequency for the TV
# autobright == 0 turns off autobrightness adjusting, otherwise it adjusts
#               the brightness of the picture every 'autobright' frames.
# brightmean == The mean pixel value that is the 'goal' of the autobright.
#               (0->255)
# brightx1->y2 == (x1,y1) top left coords, and (x2,y2) bottom right coords
#                 of a rectangle of which to take the average pixel value.
#                 this is then used in calculating the mean to adjust the
#                 brightness of the image.
# mode == the video norm to use:  0 == PAL, 1 == NTSC, 2 == SECAM, 3 == AUTO
# color,hue,contrast,brightness,whiteness = 0->60000, representing
# the value of each component.

[video_v4l_bttv]
path		/usr/lib/camserv/libvideo_v4l.so.0
device_path	/dev/video0
port		0
mode		3
#frequency	74.43
color		30000
hue		30000
contrast	30000
brightness	30000
whiteness	30000
autobright	1
brightmean      128
brightx1	0
brighty1	320
brightx2	0
brighty2	240

# FreeBSD BTTV driver:
# port 0  = Video
#      1  = Tuner
# Channel Sets:
# nabscst   1
# cableirc  2
# cablehrc  3
# weurope   4
# jpnbcst   5
# jpncable  6
# xussr     7
# australia 8

[video_fbsd_bttv]
path		/usr/lib/camserv/libvideo_fbsd_bttv.so.0
port		1
width		320
height		240
autobright	100
#brightness	0
#chroma		180
#contrast	1000
channelset      2
channel         60

[video_v4l_qcam]
path		/usr/lib/camserv/libvideo_v4l.so.0
device_path	/dev/video0
port		0
color		30000
hue		30000
contrast	30000
brightness	30000
whiteness	30000
autobright	0


[jpg_filter]
path            /usr/lib/camserv/libjpg_filter.so.0
quality		30

# text_filters:  Text filters are used to provide text on your webcam
# bg,fg          == #RRGGBB if RGB camera, #CC if B&W camera,else 'transparent'
# x,y            == Coordinates for the text
# mangle         == 0 turns off mangling of the 'text', 1 turns it on
# text           == Text to display.  If mangling == 1, special metachars
#                   such as '%X' will be expanded -- see date(1) for lots of
#                   flags
# fontname       == 6x11 or 8x8 for the fontsize.

[hello_world_banner]
path            /usr/lib/camserv/libtext_filter.so.0
text		Hello World
bg		#000000
fg		#ffffff
x		0
y		0
mangle		0
fontname	6x11

[time_stamp]
path            /usr/lib/camserv/libtext_filter.so.0
text		Klokken er: %X
bg		#000000
fg		#ffffff
x		0
y		11
mangle		1
fontname	8x8

[static_filter]
path		/usr/lib/camserv/librand_filter.so.0
num_perline	20
coloredpix	0

#
# You can add the imlib2_filter to your filters list to display pictures
# over your own, or small regions, or whatever your heart desires.
[imlib2_filter]
path		/usr/lib/camserv/libimlib2_filter.so.0
file		/tmp/my_nasty_picture.png
x		0
y		0

##########################################
#  Begin Fixed Sections                  #
##########################################

# socket parameters:
#	listen_port = port the camserv program listens on
#       max_frames  = Maximum # of frames to send to the client before
#                     closing the connection (0 disables)
#       max_bytes   = Maximum # of bytes to send to a client before
#                     closing the connection (0 disables)
#       max_seconds = Maximum # of seconds a client can be connected before
#                     being closed (0 disables)

[socket]
listen_port		9192
max_frames		0
max_bytes		0
max_seconds		0

[filters]
num_filters   	      	2
filter0_section		time_stamp
filter1_section		jpg_filter


# [video] - This section is devoted to all things dealing with the pictures
#           taken by the input video module.  These are general things which
#           should be used by all video modules.
#
#           IMPORTANT:  If you are seeing cycling colours instead of the
#                       video for your camera, you need to change video_basic
#                       to video_v4l_qcam or video_v4l_bttv

[video]
video_section		video_v4l_bttv
width			320
height			240
maxfps                  0
memhack			1


[main]
# To do a single time invocation of the output from the camserv, 
# use output_snapfile which designates the output location, and 
# output_presnaps to take a number of pictures before finally outputting
# the final image.
#output_snapfile		foo.jpg
#output_presnaps		100
If I start camserv from terminal, and then set my browser to localhost:9192, I get an error message in the terminal window.

Code:
VIDIOSYNC: Invalid arbument
(V4L) Freeing captured frames: invalid argument
(V4L) Freeing captured frames: invalid argument
(V4L) Freeing captured frames: invalid argument
VIDIOSYNC: Invalid arbument
(V4L) Freeing captured frames: invalid argument
(V4L) Freeing captured frames: invalid argument
(V4L) Freeing captured frames: invalid argument
This goes on and on and on and on until I CTRL-Z the program.

I need some advice.

J1s
j1s is offline  



Reply With Quote
Old 04-07-2009   #2 (permalink)
Just Joined!
 
Join Date: Apr 2009
Posts: 2
camserv broken w/ intrepid ibex

I was a big camserv & camserv-relay user for about a year.
After the Intrepid Ibex update I started getting the errors:
(V4L) Freeing captured frames: Invalid argument
I have have not been able to get camserv working again since then.

I sent an email to the original author Jon Travis.
Here was his reply:
"I haven't maintained Camserv for years and years. Usually the different distribution vendors keep it working fairly well with any changes to v4l, etc."
I have some experience as a web programmer. But knowing some java/perl/php is a far cry from the C++ used to write camserv. So, I'm still holding out for a fix.
ddoxey is offline   Reply With Quote
Old 04-07-2009   #3 (permalink)
j1s
Just Joined!
 
j1s's Avatar
 
Join Date: Nov 2006
Location: Norway
Posts: 88
Thank you!

This makes perfect sence. I will now downgrade the box I'm planning to use camserv on.

Thank you, again.
j1s is offline   Reply With Quote
Old 04-07-2009   #4 (permalink)
Just Joined!
 
Join Date: Apr 2009
Posts: 2
configuring camserv

I'd be interested to know if that fix works out for you.
If so, then perhaps even just a downgrade of video for linux would do the trick.

Good luck.
ddoxey is offline   Reply With Quote
Old 04-08-2009   #5 (permalink)
j1s
Just Joined!
 
j1s's Avatar
 
Join Date: Nov 2006
Location: Norway
Posts: 88
If I remeber correct, I had Ubuntu 7.04 or 7.10 installed on that PC.

I will try to find time, during this Easter. I'll be in touch.
j1s is offline   Reply With Quote
Old 08-24-2009   #6 (permalink)
j1s
Just Joined!
 
j1s's Avatar
 
Join Date: Nov 2006
Location: Norway
Posts: 88
It's kind of 'out of date' - but here goes.

Code:
sudo apt-get install motion
I use this instead of camserv... It has some limitations, but with some brainwork, I think I'll overcome.

J1s
j1s is offline   Reply With Quote
Old 12-27-2009   #7 (permalink)
Just Joined!
 
Join Date: Dec 2009
Posts: 1
solution

Hi,

Quote:
Originally Posted by ddoxey View Post
I was a big camserv & camserv-relay user for about a year.
After the Intrepid Ibex update I started getting the errors:
(V4L) Freeing captured frames: Invalid argument
Just registered to tell you that you can try to start camserv this way:
Code:
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so camserv
Works for me on Ubuntu 9.10 64bit with Microsoft Lifecam VX-3000.

Good luck,
zerwas
zerwas is offline   Reply With Quote
Old 12-27-2009   #8 (permalink)
j1s
Just Joined!
 
j1s's Avatar
 
Join Date: Nov 2006
Location: Norway
Posts: 88
Hm... This was interesting. I will try this. Thanks!

Happy New Year.
j1s is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 02:45 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1