Advertisement
alseambusher

bootanimation-zip.sh

May 2nd, 2015
3,048
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.44 KB | None | 0 0
  1. #!/bin/sh
  2. # Configuration
  3. ##################################
  4. # Resolution - Max value is resolution of screen
  5. xRes=768
  6. yRes=768
  7. # Rate - In fps
  8. rate=10
  9. ##################################
  10. mkdir -p part0
  11. echo "$yRes $xRes $rate
  12. p 0 0 part0
  13. " >desc.txt
  14.  
  15. ffmpeg -i $1 -r $rate -vf scale=$xRes:$yRes -b 100000 scaled.mp4
  16. ffmpeg -i scaled.mp4 -f image2 part0/%5d.png
  17. zip -0 -r bootanimation.zip part0 desc.txt
  18. rm -rf part0 desc.txt scaled.mp4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement