sample crontab entry and scripts to create avi from jpg

crontab

# DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.08R3t9 installed on Thu Feb 9 20:36:21 2017) # (Cronie version 4.2) # MIN HOUR DAY MONTH DAYOFWEEK COMMAND ######################################## 58 23 * * * /users/luser/bin/make-avi >/dev/null 2>&1 59 23 * * * /users/luser/bin/make-HD-avi >/dev/null 2>&1 ######################################## # 5 6-20 * * * /users/luser/bin/get-map # */2 7-10 * * * /users/luser/bin/get-map # */2 14-18 * * * /users/luser/bin/get-map

make-avi

#!/bin/bash # john meister 14nov2013 # updating mkavi to make-avi to include two directories 9 may 2015 # updated 28 Dec 2015 to move comments and adjust path after web update # removing commented lines # see ~/bin/ARCHIVE for dated copy 24 Oct 2016 # DIRNAME=`pwd | awk -F / '{print $4}'` ##### /users/luser/www/jm/Time_Lapse/2015_04_07 (7th field) ####################################################################################################### # added for cron - tested 10 may 2015 # DATED=`date '+%Y%m%d'` # cd /users/luser/www/jm/Time_Lapse/$DATED ####################################################################################################### DATED=`date '+%Y%m%d'` cd /users/luser/www/Time_Lapse/$DATED DIRNAME=`pwd | awk -F / '{print $6}'` chmod 644 *.jpg find . -type f -size 0 -exec rm {} \; ls *.jpg > $DIRNAME.files.txt ########################################################################################################## ######## DOES NOT WORK with updated mencoder: #### mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4 -o $DIRNAME.avi -mf type=jpeg:fps="5" mf://@$DIRNAME.files.txt ### mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4 -o $DIRNAME.avi -mf type=jpeg:fps="24" mf://@$DIRNAME.files.txt ########################################################################################################## ######## should work with new mencoder: updated 17 jun 2017 ########################33 mencoder mf://@$DIRNAME.files.txt -mf fps=10 -o $DIRNAME.avi -ovc x264 ########################################################################################################## ###################### # /users/luser/bin/mkpg "- Time Lapse - $DIRNAME" # /users/luser/bin/mkpg " Time Lapse low def " echo "<a href="$DIRNAME/$DIRNAME.avi" target="new">$DIRNAME.avi</a> <br>" | tee -a ../Daily_Time_Lapse_2017.html #######################################################################################################

make-HD-avi

#!/bin/bash ## john meister 4july2016 # converting make-avi to make-HD-avi # update simplify path 2017-01-22 # updated script to move files up to /users/luser/www/HD-DECK/HD-2018 # updated script to move files up to /users/luser/www/HD-DECK/HD-2019 # updated script to move files up to /users/luser/www/HD-DECK/HD-2020 1/6/2020 # updated script for new camera - retired FI9804P -->> FI9900P_00626E8B7AEF 8/1/2018 ####################################################################################################### DATED=`date '+%Y%m%d'` ##### mkdir `date '+%Y%m%d'` cd /users/luser/www/HD-DECK/FI9900P_00626E8B7AEF/snap/ mkdir /users/luser/www/HD-DECK/HD-2020/$DATED mv Schedule_$DATED-* /users/luser/www/HD-DECK/HD-2020/$DATED mv MDAlarm_* /users/luser/www/HD-DECK/MDAlarm cd /users/luser/www/HD-DECK/HD-2020/$DATED ##### DIRNAME=`pwd | awk -F / '{print $8}'` DIRNAME=`pwd | awk -F / '{print $7}'` chmod 644 *.jpg find . -type f -size 0 -exec rm {} \; ls *.jpg > $DIRNAME.files.txt mencoder mf://@$DIRNAME.files.txt -mf fps=10 -o $DIRNAME.avi -ovc x264 /users/luser/bin/mkpg "Time Lapse" touch ran-make-HD-avi-here ######################################################################################################## # TESTING time snap for shorter video... # may copy these files from all directories and merge into one video... showing daylight hours only # ls *[060-200]????.jpg > 6-8.txt # mencoder mf://@6-8.txt -mf fps=10 -o 6-8-2020-Jan-2.avi -ovc x264 ########################################################################################################

JohnMeister.com Today's Date:


fotomeister: john's fotos

Study the Bible on line
Simply Linux: Basics Using BASH on Windows 10
Practical Suggestions for Microsoft Windows
Linux Tackles Microsoft  Full Size Jeep Buyer's Guide
FULL SIZE JEEP

Buyer's Guide

SJ Jeeps

"Jeep is America's
only real sports car."
-Enzo Ferrari


Mercedes, VW, and other Diesels
Nikon cameras
general tech info
AMSOIL product guide,
or, AMSOIL web, or 1-800-956-5695,
use customer #283461

Amsoil dealer since 1983

purchase AMSOIL and have it
installed locally in WA at:

- Northland Diesel 360.676.1970 - Bellingham
- Midway Auto 360.668.7111 - Clearview/Snohomish
- Fleet Services 425.355.4440 - Everett