Advertisement
Guest User

Untitled

a guest
Aug 27th, 2014
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. 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.
  2.  
  3. 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
  4.  
  5. Video of the animation: https://www.youtube.com/watch?v=jSbo14yUfRI
  6.  
  7. 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.
  8.  
  9. Example of desc.txt:
  10. ---------------------------
  11. 1080 608 25
  12. p 1 8 part0
  13. p 0 17 part1
  14. ---------------------------
  15.  
  16. Explanation of desc.txt:
  17. ----
  18. 1080 = width of the images
  19. 608 = height of the images
  20. 25 = frames per second
  21. ----
  22. p = play
  23. 1 = play the files in this animation only once (0=forever|1=one time)
  24. 8 = pause 8 seconds before playing the animation
  25. part0 = the folder inside the zip that contains the images to play
  26. ----
  27. p = play
  28. 0 = loop over the animation until the phone completes booting up
  29. 17 = pause 17 seconds before playing this part of the animation
  30. part1 = the folder inside the zip that contains the images to play
  31.  
  32. 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