camErc samples

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search

Navigation

computing: software: camE: camErc samples

Overview

Some sample .camErc files

Things which should probably be changed for your specific purpose are highlighted.

example for non-Philips camera - stripped down

[ftp]
host = yourserver.name
user = ftp_user
pass = ftp_pass
dir  = subdir_for_image_file
# 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 = webcam.jpg
# camE uploads to a temp file, and moves it across when done
# this way people don't view half-uploaded images
tmp  = uploading.jpg
# keep the connection open (1) or reopen it for each shot (0)
keepalive = 1
# do passive ftp?
passive = 1
#an interface to use for non-passive ftp.  use "-" to let libcurl choose, or
#use a real interface name.  (libcurl often chooses incorrectly)
interface = -
# ftp debugging? (noisy)
debug = 0
# 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
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

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

# jpeg quality (you can save as png etc too, but then quality does squat)
quality = 90
input  = 1
# 0 for PAL, 1 for NTSC
norm   = 1
# Goes in the top right. strftime() is run on this too, so put date stuff in
# if you like

## TEXT/FONT STUFF
# directory to look for ttf fonts in
# (Wzl) this was the default
#ttf_dir = /usr/X11R6/lib/X11/fonts/TrueType
# 2006-10-20 Wzl
ttf_dir = /usr/share/fonts/truetype/freefont

## Title Text
title_text = SquadConCam
# color/transparency of title text
title_r = 128
title_g = 255
title_b = 0
title_a = 128
# font for title text. fontname/size
# (Wzl) this was the default
#title_font = arial/8
# 2006-10-20 Wzl
title_font = FreeSans/8
# fancy font styles
# title_style = /path/to/title.style

## Message Text
# color/transparency of message text
text_r = 255
text_g = 255
text_b = 0
text_a = 255
# font for message text. fontname/size
# (Wzl) this was the default
#text_font = arial/8
# 2006-10-20 Wzl
text_Font = FreeSans.ttf
# 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 = 100

# 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.
# upside-down:
#orientation = 2;
# mounted base-right:
#orientation = 1;

example for non-Philips camera - with archiving

[ftp]
host = yourserver.name
user = ftp_user
pass = ftp_pass
dir  = subdir_for_image_file
# 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 = webcam.jpg
# camE uploads to a temp file, and moves it across when done
# this way people don't view half-uploaded images
tmp  = uploading.jpg
# keep the connection open (1) or reopen it for each shot (0)
keepalive = 1
# do passive ftp?
passive = 1
#an interface to use for non-passive ftp.  use "-" to let libcurl choose, or
#use a real interface name.  (libcurl often chooses incorrectly)
interface = -
# ftp debugging? (noisy)
debug = 0
# 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
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

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

# where to log activity. comment out this line to disable logging
logfile = /home/woozle/AppData/camE/camE.log
# gets the message text from here. one line allowed only. means you can do
# stuff like echo "sleeping and stuff" > ~/.caminfo
infofile = /home/woozle/AppData/camE/.caminfo
# directory to archive pics in. They are datestamped and saved in here.
archive = /home/woozle/AppData/camE/archive
# archive pics in datestamped subdirs
# (1 == with subdirs, 0 == without subdirs)
archive_subdirs = 1
# 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)
archive_shot_every = 10
# create archive thumbnails enable/disable flag and give width/height
archive_thumbnails_dir    = /home/woozle/AppData/camE/thumbs
#archive_thumbnails_create = 1
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 = 90
input  = 1
# 0 for PAL, 1 for NTSC
norm   = 1
# Goes in the top right. strftime() is run on this too, so put date stuff in
# if you like

## TEXT/FONT STUFF
# directory to look for ttf fonts in
# (Wzl) this was the default
#ttf_dir = /usr/X11R6/lib/X11/fonts/TrueType
# 2006-10-20 Wzl
ttf_dir = /usr/share/fonts/truetype/freefont

## Title Text
title_text = SquadConCam
# color/transparency of title text
title_r = 128
title_g = 255
title_b = 0
title_a = 128
# font for title text. fontname/size
# (Wzl) this was the default
#title_font = arial/8
# 2006-10-20 Wzl
title_font = FreeSans/8
# fancy font styles
# title_style = /path/to/title.style

## Message Text
# color/transparency of message text
text_r = 255
text_g = 255
text_b = 0
text_a = 255
# font for message text. fontname/size
# (Wzl) this was the default
#text_font = arial/8
# 2006-10-20 Wzl
text_Font = FreeSans.ttf
# 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 = 100

## INHIBITING
# file to check for before shooting. while this file exists, no shots will
# be taken.
blockfile = /home/woozle/AppData/camE/BLOCKCAM
# image to upload when blockfile is first put in place
offline_image = /home/woozle/AppData/camE/.block.jpg
# File to check before shooting, while this file exists, shots will be taken.
# but not uploaded. blockimage will not be uploaded if you set this.
uploadblockfile = /home/woozle/AppData/camE/BLOCKUPLOAD
# Shots will only be taken/uploaded if the specified interface is active.  
#watch_interface = ppp0
# image to overlay
#overlay_image = /home/woozle/AppData/camE/.lb.png
#overlay_x = 5
#overlay_y = 5
# do things. like play sounds or whatever. Each is a shell command.
#action_pre_shot
action_post_shot convert /home/woozle/AppData/camE/webcam-temp.jpg -gamma 3.0 /home/woozle/AppData/camE/webcam-adj.jpg
#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.
# upside-down:
#orientation = 2;
# mounted base-right:
orientation = 1;