Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Configuration
- ##################################
- # Resolution - Max value is resolution of screen
- xRes=768
- yRes=768
- # Rate - In fps
- rate=10
- ##################################
- mkdir -p part0
- echo "$yRes $xRes $rate
- p 0 0 part0
- " >desc.txt
- ffmpeg -i $1 -r $rate -vf scale=$xRes:$yRes -b 100000 scaled.mp4
- ffmpeg -i scaled.mp4 -f image2 part0/%5d.png
- zip -0 -r bootanimation.zip part0 desc.txt
- rm -rf part0 desc.txt scaled.mp4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement