LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-2010, 01:37 AM   #1
fullout-blaine
LQ Newbie
 
Registered: Mar 2008
Posts: 8

Rep: Reputation: 0
webcamrc configuration not parsing dates for image filenames


I am running webcam under Ubuntu 9.04 and I want to upload the images it captures to a server via ftp and have every image have a date and time in the filename. But I can't get this to work.

From reading the man page for webcam it appears that I should be able to specify file = "webcam_%Y-%m-%d_%H:%M:%S.jpeg" and have it parsed so I get something like webcam_2010-01-05_10:54:23.jpeg but webcam is just uploading an image with an unparsed filename. So instead of getting a series of images on the server, I just get the most recent image (with the older images being overwritten every 1800 seconds).

I know I could write a script on the server to rename the files as they are uploaded and put it on a cron but this seems to be something webcam should be able to handle.

Also note, the date and time in the "text" parameter is being parsed correctly.

Ideas?



Here is my .webcamrc config file:

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

[ftp]
host = myserver.com
user = user
pass = XXXXXXXXXX
dir = webcam
file = "webcam_%Y-%m-%d_%H:%M:%S.jpeg"
tmp = uploading.jpeg
passive = 1
debug = 1
auto = 0
local = 0
ssh = 0
 
Old 01-15-2010, 11:50 AM   #2
no2498
Member
 
Registered: Jan 2010
Posts: 120

Rep: Reputation: 23
the program (motion) can do that
im not sure it runs on 904
wxcam can do motion with date and time
 
Old 03-23-2010, 06:00 PM   #3
ssdpl1
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
use archive
I put this in the [grab] section:
archive = "danotest_%Y-%m-%d_%H:%M:%S.jpeg"
saves a local copy haven't tested ftp
 
  


Reply



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
[Bash] Rename filenames with corresponding filenames Power2All Linux - Software 4 12-02-2009 04:15 AM
How to write a command to FTP files with dates filenames mistiqshannen Linux - Newbie 5 06-05-2007 12:59 AM
plucker - image parsing problem chii-chan Linux - Software 3 12-07-2005 09:51 PM
PHP PNG image file parsing Proud Programming 4 08-04-2004 12:55 PM
.webcamrc file porblems jonfa Linux - General 5 09-20-2003 02:31 PM

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

All times are GMT -5. The time now is 11:37 AM.

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