LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-06-2009, 01:41 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
alternative to camstream?


is there a good alternative to camstream?
 
Old 01-06-2009, 03:43 PM   #2
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
http://linuxbrit.co.uk/camE/

here my

.camErc:
Quote:
## --------------------------------------------------------------------
## My (user) 12/2007 comments prefaced with 2 hashes: ##
## I have Ubuntu 7.10 & Logitech 4000 Cam
##
## After installing, in the root terminal window, type: camE -help
## As root, I start my camE by typing: camE -c .camErc
## I don't know of a better way to stop it & reload the
## config file: '.camErc' besides using the BLOCKCAM/BLOCKUPLOAD
## or killing the process.
## The file you are reading didn't appear on my system after
## installing camE so I got it from here:
## http://www.enlightenment.org/viewvc/misc/camE/
## I put it in the default dir of the user I run this as.
## I got the req'd log file name & info file name from reading this file.
## 0 is no, 1 is yes
## --------------------------------------------------------------------
[ftp]
host = mywebsite.org
user = mywebsitelogin
pass = thepassword
dir = firstfolder/folder
##Use something more secure though.


# where should the file end up? Also, this extension determines the file
# type the image is saved as. Try image.png for a png.
file = snapshottmp.jpg

# camE uploads to a temp file, and moves it across when done
# this way people don't view half-uploaded images
## This is a nice feature
tmp = snapshot.jpg
# keep the connection open (1) or reopen it for each shot (0)
keepalive = 1
# do passive ftp?
## mine didn't work with passive so I set it at 0
passive = 0
#an interface to use for non-passive ftp. use "-" to let libcurl choose, or
#use a real interface name. (libcurl often chooses incorrectly)
## I still don't know what this means so I left it at the default
interface = -
# ftp debugging? (noisy)
## Shows a lots of status msgs for each upload in the terminal window
## ...I set at 1 until I'm satisfied my settings work well
debug = 1
#
# Actually do the upload? If do = 0, just take and archive pics.
#
do = 1
# Some servers require us to explicitly delete the previous image
# In that case, enable this option
## mine didn't work unless I did this
delete_first = 1
##delete_first = 0
# Determines how many shots are taken before an image is uploaded.
# (1 == every picture is uploaded, 10 would be every 10th image)
# (Defaults to 1 if not present)
upload_every = 1

# you can set ftp->do to 0 above and use scp instead - you still need
# the dir, file and tmp settings in the ftp section for this to work.
# scp also honors the upload_every setting from the ftp section, and
# will also default to a value of 1 if not present.

[scp]
# target = user@host
## ---------------------------------------------------------------
[grab]
# use
##This command found my device: find /dev -name video*
##...it was the first one listed
device = /dev/video0
##I have a Logitech 4000 Pro - actually a Phillips chip
##so I had to get drivers for it specifically:
##Philips PWC-chip-based webcams
##Logitech 3000 and 4000 Pro, Notebook Pro, and Zoom
##http://www.linux.com/base/ldp/howto/.../hardware.html
##This command shows cam id: lsusb

# store temp image on local machine
temp_file = /home/username/webcam/snapshot.jpg
# lag reduction, takes 5 shots, discards the first 4, thus clearing mmap
# buffers
## I set mine to 0
lag_reduce = 0
#lag_reduce = 5
# This goes at the bottom left, with the message from "infofile" appended.
# It is run through strftime, so date vars are expanded.
## I customized my date/time
text = %m/%d/%Y %H:%M:%S %Z -
width = 320
height = 240
# delay between uploading one shot and starting the next
## mine set at 15 for 15 secs
delay = 15
# do we want to correct the delay for a slow connect?
# (keeps the perpetually updating clients in sync)
correct = 1
# scale image resolution dynamically based on bandwidth?
# percentage of the delay to spend uploading the image,
# 100 disables, useful values are < 40
percent = 100

################################################## ######
# PWC specific features (only for philps cams right now)

# framerate of cam capture, lower fps -> less grainy image, more chance or
# blurred motion
#framerate = 5
## 10 seems to show less grain
framerate = 10

# image settings (0-100)
colour = 50
brightness = 50
contrast = 50
hue = 50
whiteness = 50

# White balance mode
# can be "auto", "indoor", "outdoor", "fluorescent" or "manual"
pwc_wb_mode = auto
# if _mode is set to manual, these two controls affect the balance
# (0-100)
pwc_wb_red = 50
pwc_wb_blue = 50

# Backlight compensation mode
# switched off, when set to 0
## 1 seems best
pwc_backlight_mode = 1
#pwc_backlight_mode = 1
################################################## ######
# where to log activity. comment out this line to disable logging
logfile = /home/username/.camlog
# gets the message text from here. one line allowed only. means you can do
# stuff like echo "sleeping and stuff" > ~/.caminfo
##It wouldn't work w/my own file name so I stuck with the default
##...in my case it was/is weather data
##infofile = /home/username/weather/weatherStationData.htm
infofile = /home/username/.caminfo
# directory to archive pics in. They are datestamped and saved in here.
archive = /home/username/webcam/archives
## didn't work if this was set at 0
## archive = 0
# archive pics in datestamped subdirs
# (1 == with subdirs, 0 == without subdirs)
archive_subdirs = 0
# extension (determines type) of archived images.
archive_ext = jpg
# determines how many shots are taken before a pic is archived
# (1 == every pic, 0 == don't archive)
## I turned this off, too much disk activity & used space over time
archive_shot_every = 0
#archive_shot_every = 1
# create archive thumbnails enable/disable flag and give width/height
archive_thumbnails_dir = /home/username/webcam/thumbnails
archive_thumbnails_create = 0
archive_thumbnails_width = 120
archive_thumbnails_height = 90
# jpeg quality (you can save as png etc too, but then quality does squat)
quality = 80
input = 0
# 0 for PAL, 1 for NTSC
## Left this at default, don't know which is better in USA
norm = 0
# Goes in the top right. strftime() is run on this too, so put date stuff in
# if you like
## Put whatever you want
title_text = It's Me TV
# color/transparency of title text
title_r = 255
title_g = 255
title_b = 0
title_a = 255
# font for title text. fontname/size
title_font = Arial_Bold/10
# fancy font styles
# title_style = /path/to/title.style
# color/transparency of message text
text_r = 255
text_g = 255
text_b = 0
text_a = 255
# font for message text. fontname/size
text_font = Arial_Bold/8
# fancy font styles
# text_style = /path/to/text.style
# color/transparency of rectangle behind text
# make it 0,0,0,0 to disable.
bg_a = 0
bg_b = 0
bg_g = 0
bg_a = 75
#bg_a = 100
# directory to look for ttf fonts in
## Mine was in a different dir than the default setting.
## You have to actually see the font name sans extension and use it
## and in my case the font was: Arial_Bold.ttf
## For the below line use only the dir, not the specific font.
ttf_dir = /usr/share/fonts/truetype/msttcorefonts
#ttf_dir = /usr/X11R6/lib/X11/fonts/TrueType
# ************************************************** *************************
# file to check for before shooting. while this file exists, no shots will
# be taken.
# ************************************************** *************************
blockfile = /home/root/BLOCKCAM
# ************************************************** *************************
# image to upload when blockfile is first put in place
offline_image = /home/username/snapshot.jpg
# ************************************************** *************************
# File to check before shotting, while this file exists, shots will be taken.
# but not uploaded. blockimage will not be uploaded if you set this.
#uploadblockfile = /home/root/BLOCKUPLOAD
# ************************************************** *************************
# Shots will only be taken/uploaded if the specified interface is active.
## Run this command to see what yours is: ifconfig
#watch_interface = ppp0
watch_interface = eth0
## It wouldn't work with 0, couldn't disable it
##watch_interface = 0
# image to overlay
## I'm not using this but left it at default
overlay_image = /home/username/.lb.png
overlay_x = 5
overlay_y = 5
## I left all the rest as is/was
# do things. like play sounds or whatever. Each is a shell command.
#action_pre_shot
#action_post_shot
#action_post_upload
# image processing
# crop = 1
# crop_width = 320
# crop_height = 240
# crop_x = 20
# crop_y = 20
#
# scaling is applied after cropping, so you can###
# remove borders then stretch up the result
# scale = 1
# scale_width = 640
# scale_height = 480
#
# Flip the image horizontally or vertically.
# Horizontal flipping is useful for some Philips cams
# which give a mirrored image when used with the pwc module.
# flip_horizontal = 1
# flip_vertical = 1
#
# Change the orientation of the image.
# Useful if your camera is on its side (for whatever reason).
# 1 rotates clockwise by 90 degrees, 2, rotates clockwise by 180 degrees,
# 3 rotates clockwise by 270 degrees.
# orientation = 1;
 
Old 01-06-2009, 04:12 PM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
to add the time/date in the webcam pic:
convert -font helvetica -fill black -draw "text 10, 280 '`date`'"
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Added Labtec WebCam Pro using the Camstream Utility but can't connect it to the IM? bliss4one MEPIS 1 08-08-2007 03:50 PM
Via C7 alternative pericop Linux - Hardware 2 02-26-2007 09:49 AM
Fedora Core 4 locks up when running camstream. chipfiev Linux - Software 1 01-07-2006 05:09 PM
camstream compile error nmayotte Linux - Software 3 12-06-2005 02:57 PM
du alternative plisken Linux - General 3 07-09-2003 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:11 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration