BASH 9
Webcam thingy By pronto on 5th July 2026 01:43:01 AM
  1. ###OBV: MAKE SURE YOU CHANGE THE PATH STUFFS
  2.  
  3. #script one: download the jpg from webcam thing
  4. while :
  5. do
  6.         sleep 30
  7.         name=NAMEHERE$(date +%s).jpg
  8.         echo $name
  9.         wget -O /var/www/html/jpg/camcam/sky/8/$name "<URL OF JPG WEB CAM HERE>"
  10. done
  11.  
  12.  
  13. ####SCRIPT TWO
  14.  
  15. #turn jpgs into video with stabilization
  16.  
  17. update='./.tmp/new.mp4'
  18. trans='./.tmp/trans.trf'
  19. stable='./.tmp/stable.mp4'
  20. rm ./.tmp/*
  21.  
  22. ffmpeg -framerate 30 -pattern_type glob -i './8/*.jpg' -c:v libx264 -pix_fmt yuv420p $update
  23. ffmpeg -i $update -vf "vidstabdetect=stepsize=6:accuracy=15:result=$trans" -f null -
  24. ffmpeg -i $update -vf "vidstabtransform=input=$trans:smoothing=30:zoom=1.0:optzoom=1" -c:a copy $stable
  25. mv $stable ./current.mp4

ifconfig paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.