camErc samples

Navigation
computing: software: camE: camErc samples

Overview
Some sample .camErc files

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

example for non-Philips camera - stripped down
[ftp] host = user = pass = dir = file = webcam.jpg tmp = uploading.jpg keepalive = 1 passive = 1 interface = - debug = 0 do = 1 delete_first = 0 upload_every = 1 [grab] device = /dev/video0 temp_file = lag_reduce = 0 text  = %Y/%m/%d %H:%M:%S %Z - width = 352 height = 288 delay = 1 correct = 0 percent = 100 quality = 90 input = 1 norm  = 1 ttf_dir = /usr/share/fonts/truetype/freefont title_text = SquadConCam title_r = 128 title_g = 255 title_b = 0 title_a = 128 title_font = FreeSans/8 text_r = 255 text_g = 255 text_b = 0 text_a = 255 text_Font = FreeSans.ttf bg_a = 0 bg_b = 0 bg_g = 0 bg_a = 100
 * 1) where should the file end up? Also, this extension determines the file
 * 2) type the image is saved as. Try image.png for a png.
 * 1) camE uploads to a temp file, and moves it across when done
 * 2) this way people don't view half-uploaded images
 * 1) keep the connection open (1) or reopen it for each shot (0)
 * 1) do passive ftp?
 * 1) an interface to use for non-passive ftp. use "-" to let libcurl choose, or
 * 2) use a real interface name. (libcurl often chooses incorrectly)
 * 1) ftp debugging? (noisy)
 * 1) Actually do the upload? If do = 0, just take and archive pics.
 * 1) Some servers require us to explicitly delete the previous image
 * 2) In that case, enable this option
 * 1) Determines how many shots are taken before an image is uploaded.
 * 2) (1 == every picture is uploaded, 10 would be every 10th image)
 * 3) (Defaults to 1 if not present)
 * 1) store temp image on local machine
 * 1) lag reduction, takes 5 shots, discards the first 4, thus clearing mmap
 * 2) buffers
 * 3) lag_reduce = 5
 * 1) This goes at the bottom left, with the message from "infofile" appended.
 * 2) It is run through strftime, so date vars are expanded.
 * 1) delay between uploading one shot and starting the next
 * 1) do we want to correct the delay for a slow connect?
 * 2) (keeps the perpetually updating clients in sync)
 * 1) scale image resolution dynamically based on bandwidth?
 * 2) percentage of the delay to spend uploading the image,
 * 3) 100 disables, useful values are < 40
 * 1) jpeg quality (you can save as png etc too, but then quality does squat)
 * 1) 0 for PAL, 1 for NTSC
 * 1) Goes in the top right. strftime is run on this too, so put date stuff in
 * 2) if you like
 * 1) TEXT/FONT STUFF
 * 2) directory to look for ttf fonts in
 * 3) (Wzl) this was the default
 * 4) ttf_dir = /usr/X11R6/lib/X11/fonts/TrueType
 * 5) 2006-10-20 Wzl
 * 1) Title Text
 * 1) color/transparency of title text
 * 1) font for title text. fontname/size
 * 2) (Wzl) this was the default
 * 3) title_font = arial/8
 * 4) 2006-10-20 Wzl
 * 1) fancy font styles
 * 2) title_style = /path/to/title.style
 * 1) Message Text
 * 2) color/transparency of message text
 * 1) font for message text. fontname/size
 * 2) (Wzl) this was the default
 * 3) text_font = arial/8
 * 4) 2006-10-20 Wzl
 * 1) fancy font styles
 * 2) text_style = /path/to/text.style
 * 3) color/transparency of rectangle behind text
 * 4) make it 0,0,0,0 to disable.
 * 1) Change the orientation of the image.
 * 2) Useful if your camera is on its side (for whatever reason).
 * 3) 1 rotates clockwise by 90 degrees, 2, rotates clockwise by 180 degrees,
 * 4) 3 rotates clockwise by 270 degrees.
 * 5) upside-down:
 * 6) orientation = 2;
 * 7) mounted base-right:
 * 8) orientation = 1;

example for non-Philips camera - with archiving
[ftp] host = user = pass = dir = file = webcam.jpg tmp = uploading.jpg keepalive = 1 passive = 1 interface = - debug = 0 do = 1 delete_first = 0 upload_every = 1 [grab] device = /dev/video0 temp_file = lag_reduce = 0 text  = %Y/%m/%d %H:%M:%S %Z - width = 352 height = 288 delay = 1 correct = 0 percent = 100 logfile = infofile = archive = archive_subdirs = 1 archive_ext = jpg archive_shot_every = 10 archive_thumbnails_dir   = /home/woozle/AppData/camE/thumbs archive_thumbnails_create = 0 archive_thumbnails_width = 120 archive_thumbnails_height = 90 quality = 90 input = 1 norm  = 1 ttf_dir = /usr/share/fonts/truetype/freefont title_text = SquadConCam title_r = 128 title_g = 255 title_b = 0 title_a = 128 title_font = FreeSans/8 text_r = 255 text_g = 255 text_b = 0 text_a = 255 text_Font = FreeSans.ttf bg_a = 0 bg_b = 0 bg_g = 0 bg_a = 100 blockfile = offline_image = uploadblockfile = action_post_shot convert # # # orientation = 1;
 * 1) where should the file end up? Also, this extension determines the file
 * 2) type the image is saved as. Try image.png for a png.
 * 1) camE uploads to a temp file, and moves it across when done
 * 2) this way people don't view half-uploaded images
 * 1) keep the connection open (1) or reopen it for each shot (0)
 * 1) do passive ftp?
 * 1) an interface to use for non-passive ftp. use "-" to let libcurl choose, or
 * 2) use a real interface name. (libcurl often chooses incorrectly)
 * 1) ftp debugging? (noisy)
 * 1) Actually do the upload? If do = 0, just take and archive pics.
 * 1) Some servers require us to explicitly delete the previous image
 * 2) In that case, enable this option
 * 1) Determines how many shots are taken before an image is uploaded.
 * 2) (1 == every picture is uploaded, 10 would be every 10th image)
 * 3) (Defaults to 1 if not present)
 * 1) store temp image on local machine
 * 1) lag reduction, takes 5 shots, discards the first 4, thus clearing mmap
 * 2) buffers
 * 3) lag_reduce = 5
 * 1) This goes at the bottom left, with the message from "infofile" appended.
 * 2) It is run through strftime, so date vars are expanded.
 * 1) delay between uploading one shot and starting the next
 * 1) do we want to correct the delay for a slow connect?
 * 2) (keeps the perpetually updating clients in sync)
 * 1) scale image resolution dynamically based on bandwidth?
 * 2) percentage of the delay to spend uploading the image,
 * 3) 100 disables, useful values are < 40
 * 1) where to log activity. comment out this line to disable logging
 * 1) gets the message text from here. one line allowed only. means you can do
 * 2) stuff like echo "sleeping and stuff" > ~/.caminfo
 * 1) directory to archive pics in. They are datestamped and saved in here.
 * 1) archive pics in datestamped subdirs
 * 2) (1 == with subdirs, 0 == without subdirs)
 * 1) extension (determines type) of archived images.
 * 1) determines how many shots are taken before a pic is archived
 * 2) (1 == every pic, 0 == don't archive)
 * 1) create archive thumbnails enable/disable flag and give width/height
 * 1) archive_thumbnails_create = 1
 * 1) jpeg quality (you can save as png etc too, but then quality does squat)
 * 1) 0 for PAL, 1 for NTSC
 * 1) Goes in the top right. strftime is run on this too, so put date stuff in
 * 2) if you like
 * 1) TEXT/FONT STUFF
 * 2) directory to look for ttf fonts in
 * 3) (Wzl) this was the default
 * 4) ttf_dir = /usr/X11R6/lib/X11/fonts/TrueType
 * 5) 2006-10-20 Wzl
 * 1) Title Text
 * 1) color/transparency of title text
 * 1) font for title text. fontname/size
 * 2) (Wzl) this was the default
 * 3) title_font = arial/8
 * 4) 2006-10-20 Wzl
 * 1) fancy font styles
 * 2) title_style = /path/to/title.style
 * 1) Message Text
 * 2) color/transparency of message text
 * 1) font for message text. fontname/size
 * 2) (Wzl) this was the default
 * 3) text_font = arial/8
 * 4) 2006-10-20 Wzl
 * 1) fancy font styles
 * 2) text_style = /path/to/text.style
 * 3) color/transparency of rectangle behind text
 * 4) make it 0,0,0,0 to disable.
 * 1) INHIBITING
 * 2) file to check for before shooting. while this file exists, no shots will
 * 3) be taken.
 * 1) image to upload when blockfile is first put in place
 * 1) File to check before shooting, while this file exists, shots will be taken.
 * 2) but not uploaded. blockimage will not be uploaded if you set this.
 * 1) Shots will only be taken/uploaded if the specified interface is active.
 * 2) watch_interface = ppp0
 * 3) image to overlay
 * 4) overlay_image =
 * 5) overlay_x = 5
 * 6) overlay_y = 5
 * 7) do things. like play sounds or whatever. Each is a shell command.
 * 8) action_pre_shot
 * 1) action_post_upload
 * 2) image processing
 * 3) crop = 1
 * 4) crop_width = 320
 * 5) crop_height = 240
 * 6) crop_x = 20
 * 7) crop_y = 20
 * 1) scaling is applied after cropping, so you can
 * 2) remove borders then stretch up the result
 * 3) scale = 1
 * 4) scale_width = 640
 * 5) scale_height = 480
 * 1) Flip the image horizontally or vertically.
 * 2) Horizontal flipping is useful for some Philips cams
 * 3) which give a mirrored image when used with the pwc module.
 * 4) flip_horizontal = 1
 * 5) flip_vertical = 1
 * 1) Change the orientation of the image.
 * 2) Useful if your camera is on its side (for whatever reason).
 * 3) 1 rotates clockwise by 90 degrees, 2, rotates clockwise by 180 degrees,
 * 4) 3 rotates clockwise by 270 degrees.
 * 5) upside-down:
 * 6) orientation = 2;
 * 7) mounted base-right: