Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 Nov 2017, 18:30
All times are UTC - 4
 Forum index » Off-Topic Area » Security
Webcam jpg image trapper (looping security recorder)
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
greengeek


Joined: 20 Jul 2010
Posts: 4721
Location: Republic of Novo Zelande

PostPosted: Mon 02 Oct 2017, 22:17    Post subject:  Webcam jpg image trapper (looping security recorder)
Subject description: jpg looprecorder portable (security webcam)
 

I needed a way to use my webcam to trap jpg images at intervals and accumulate them in a storage directory for later inspection. I also wanted to be able to put the script onto a usb stick and have it operate as a portable "security" camera script.

The script creates a "jpgstore" subdirectory in the same directory where you place the script. This is where the trapped images are stored.

You specify how many images you want to trap and whether you want the script to loop around and overwrite the oldest files once that image limit is reached - or whether you want it to stop recording once that number of images has been reached. (The default setting is 10 images - so the user can do a quick test to see if they like how it works). Set the number of images to cover 24 hours or longer if you have adequate space.

*** If you have multiple web cameras it will be necessary to decide if you want to trap /dev/video0 or /dev/video1 etc (change "camera name" parameter in script as required).

Attached are both .pet and .sfs versions.

Notes:
- The pet (or sfs) installs itself initially to /root. You will see a directory called jpglooprecorder_portable. If you don't like it being in /root you can simply move it somewhere else - including onto a fresh usb stick acquired for the purpose.

- in the looprecorder directory you will find a ReadFirst.txt (please read it for fine-tuning and webcam selection etc).

- you will also find 4 scripts:
- jpglrp is the script that does the work. (This is where you can alter parameters)
- jpglooprecorderportable_START is what you click to start the image trapping
- jpglooprecorderportable_STOP is what you click to stop the image trapping
- jpglooprecroderportable_TERMINATE is used for immediate termination of the script if required (use this if you experience any runaway or script errors that need debugging).

I have stuck this in "security" for now, as that is my intended usage. This is an offshoot of my previous "audio" version of a similar loop recorder here:
http://murga-linux.com/puppy/viewtopic.php?t=96532

The actual ffmpeg syntax that generates each image is from MochiMoppel in this discussion here:
http://murga-linux.com/puppy/viewtopic.php?p=960402#960402
.
jpglooprecorderportable_gg-0.1.pet
Description 
pet

 Download 
Filename  jpglooprecorderportable_gg-0.1.pet 
Filesize  3.99 KB 
Downloaded  20 Time(s) 
jpglooprecorder_gg-0.1.sfs.gz
Description  False .gz suffix. Please remove the false gz suffix
gz

 Download 
Filename  jpglooprecorder_gg-0.1.sfs.gz 
Filesize  4 KB 
Downloaded  17 Time(s) 

Last edited by greengeek on Sat 28 Oct 2017, 16:03; edited 2 times in total
Back to top
View user's profile Send private message 
april


Joined: 14 Sep 2013
Posts: 1009
Location: Off Lizard Island for a bit

PostPosted: Tue 03 Oct 2017, 17:29    Post subject:  

Not sure if I can use it with my setups but thanks for posting it.
Back to top
View user's profile Send private message Yahoo Messenger 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Security
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0291s ][ Queries: 12 (0.0058s) ][ GZIP on ]