Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I am trying to make a script that automatically creates a mp4 video for Android boot animations. Any help would be appreciated. I am attempting to accomplish this on Ubuntu using ffmpeg.
- Here is an example of a boot animation: https://github.com/CyanogenMod/android_vendor_cm/blob/cm-11.0/prebuilt/common/bootanimation/1080.zip?raw=true
- Video of the animation: https://www.youtube.com/watch?v=jSbo14yUfRI
- The boot animation usually has a couple of folders with images. The animation will be played image by image. The animation also has a file named "desc.txt" which describes how the animation should be played.
- Example of desc.txt:
- ---------------------------
- 1080 608 25
- p 1 8 part0
- p 0 17 part1
- ---------------------------
- Explanation of desc.txt:
- ----
- 1080 = width of the images
- 608 = height of the images
- 25 = frames per second
- ----
- p = play
- 1 = play the files in this animation only once (0=forever|1=one time)
- 8 = pause 8 seconds before playing the animation
- part0 = the folder inside the zip that contains the images to play
- ----
- p = play
- 0 = loop over the animation until the phone completes booting up
- 17 = pause 17 seconds before playing this part of the animation
- part1 = the folder inside the zip that contains the images to play
- Goal: Create a script that automatically unzips the bootanimation, orders the images and outputs a video according to the desc.txt.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement