Guest User

Untitled

a guest
Dec 6th, 2015
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. yesterday=$(date --date="1 day ago" +"%Y-%m-%d")
  3. cd /storage/Webcam/
  4. mencoder mf://$yesterday/*.jpg -mf w=1920:h=1080:fps=2:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=600:mbd=2 -nosound -o $yesterday.avi
  5.  
  6. if [ $? -eq 0 ]; then
  7. if [ -e $yesterday.avi ]; then
  8. rm -rf $yesterday/
  9. fi
  10. fi
RAW Paste Data