Oct 05, 2005

webcam設定ファイルの編集

下がぼくが使っている「.webcamrc」。うまく動かすために下線が、過去にやったwebcamの設定と違う部分。
また前のでは、[ftp]セクションはなく「.netrc]で設定したが、「.webcamrc」にまとめて書けるようになったので、「.netrc」は必要なくなった。
「.webcamrc」のアクセスモードは必ず600にする。
$webcam &
とすると配信が始まる。

[ftp]
host = *****
user = *****
pass = *****
dir = public_html/webcam
file = webcam.jpg
tmp = uploading.jpg
passive = 1
auto = 1
debug = 0
ssh = 0

[grab]
device = /dev/video0
text = "20%y-%m-%d %H:%M:%S"
#width = 160
#height = 120
quality = 75
input = usb
#input = Composite1
rotate = 0
top = 0
left = 6
bottom = -1
right = -1
trigger = 0
once = 0
wait = 10
delay = 120
#norm = NTSC
archive = /home/shimirin/webcam/%y%m%d%H%M%S.jpg



下の引用は、「man webcam」コマンドで出てくるexample。普通これを修正して、「.webcamrc」を作る。

[grab]
device = /dev/video0
text = "webcam %Y-%m-%d %H:%M:%S"
infofile = filename
fg_red = 255
fg_green = 255
fg_blue = 255
width = 320
height = 240
delay = 3
wait = 0
input = composite1
rotate = 0
top = 0
left = 0
bottom = -1
right = -1
quality = 75
trigger = 0
once = 0

[ftp]
host = www
user = webcam
pass = xxxxxx
dir = public_html/images
file = webcam.jpeg
tmp = uploading.jpeg
passive = 1
debug = 0
auto = 0
local = 0
ssh = 0
WriteBacks
TrackBack ping me at
http://www.haizara.net/~shimirin/blosxom/blosxom.cgi/computer/linux/20051005230706.trackback
Post a comment

writeback message: Ready to post a comment.













Captcha:
To prevent comment spam, please retype the characters in this image:

Enter the text here: