File: example.conf

package info (click to toggle)
fswebcam 20140113-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 612 kB
  • sloc: ansic: 8,442; makefile: 58
file content (51 lines) | stat: -rw-r--r-- 1,331 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Example configuration for fswebcam
# [2006-09-05: phil@sanslogic.co.uk]

# Be very quiet...
quiet

# Or be very loud?
#verbose

# The image source - In this case we are capturing frames from a TV channel
device     "v4l2:/dev/video0"
input      0
frequency  670.90
palette    YUV420P
resolution 768x576

skip   2	# Skip the first two frames.
frames 1	# And capture one.

# Move the banner to the top and make the background 100% transparent.
top-banner
font          "/home/user/.fonts/luxisr.ttf"
title         "Webcam 1"
info          "The Office"
banner-colour #FF000000
line-colour   #FF000000

# Save it to a shared folder.
save "/home/user/public_html/02-large.jpeg"

# Save another copy for the archive. The archive contains a folder for each
# day of images. First we create the folder if it doesn't already exist.
exec "mkdir /home/user/archive/%Y%m%d 2> /dev/null"

# Then save the image into it.
save "/home/user/archive/%Y%m%d/01-%Y%m%d-%H%M%S.jpeg"

# Scale the image down to half it's size.
scale 384x288

# Move the banner to the bottom and give it some colour.
bottom-banner
banner-colour \#40263A93
line-colour   \#00FF0000

# Load an overlay image. This is placed above everything, including the banner.
overlay "/home/user/outline.png"

# Save this to the shared folder.
save "/home/user/public_html/02.jpeg"