I decided to make a guide on what i've learned so far about bootanimation to make it easier for both the makers of and users alike.
Sections:
Concept
What is needed?
The desc.txt
Making a flashable zip
Concept
A bootanimation is what you see when you load the phone. However, what many don't know is how you can manipulate these files. A bootanimation is made up of a .zip containing the desc.txt and folder/s that contain the frames. The animation may also call to a sound file outside of the zip. the framework looks like this:
system-media-
|
bootanimation.zip- <--"store" or no compression
| |
| folder1-
| | |
| | anime_0001
| | anime_0002
| folder2-
| | |
| | anime_0003
| | anime_0004
| desc.txt
sound1
sound2
This is a somewhat complex animation and not all animations require all of the above.
Another thing to note is the type of files you can use. Actually, anything that the phone can normally display/play, you can use. This means .jpeg, .png, .mp3, and .ogg are all usable file types in your animation.
A little note also, you don't need to have super quality pictures. If you find your animation getting rather large, try lowering the quality of the pictures. You won't notice the difference and it save a lot of memory. (think dvd vs. blueray)
What is needed?
Ideally, you need multiply pictures named anime_0001.XXX and counting up. Then you need to write a desc.txt (preferably with notepad++ or equal) telling the system when and how to display the images. You will also need a sound file if you want sound. (optional)
Here is a list of helpful programs to make your animation:
7-zip 32-bit 7-zip 64-bit (or equal)
Notepad++ (or equal)
Paint.net (or equal, i rather like this picture editor)
The desc.txt
The desc.txt tells the system what to play when and for how long. You may not need notepad++ to make it, but some bootanimations you mod may be in code and notepad++ will then be required. I just suggest getting use to using notepad++ to save frustration.
Using Notepad++, create a new file. The text you need will look like this:
540 960 15
p 1 10 part1
s sound1.ogg
-540 is the width of the target device, 960 is the height, and 15 is the frames/second the animation will be played
-p means display pictures in folder, 1 is how many times to loop the folder (a 0 here is infinite), 10 is a delay at the end of the last loop (in frames) a 0 here means no delay, and "part1" is the folder name in the bootanimation.zip
-s means play sound in the media folder, "sound1.ogg" is the actual name of the file
You can make this file as complex is as simple as your animation requires. The sound file will play at the start of the folder being displayed. Here is an example of a complex desc.txt:
540 960 30
p 1 0 part1
s firstsound.mp3
p 1 0 part2
s secondsound.mp3
p 0 0 part3
this desc.txt tells the system to play the part1 folder once with sound1, then without a delay, display the part2 folder with sound2, and, again no delay, play the part3 but keep repeating it (useful for an ending frame).
A simple desc.txt could be:
540 960 1
p 0 0 part1
Then only put one picture in the part1 folder. This will basically just display a pic until the phone loads.
Making a flash-able Zip
To make it easy for users to install your animation, you should make a flash-able zip they can use in recovery. This is easy. Use notepad++ to make a file called "update-script" (with no file type). I won't go into great detail in the options you can do with the script but this is what it needs to say for our purposes:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.2 10
Save this file. You, then need to make a zip on "store" or no compression with the following format:
thenameyouwant.zip-
META-INF/com/google/android/"update-script" -no quotes, i just used them so you know it's not a folder
system/media/bootanimation.zip
sound1.ogg (optional)
Alternatively, I provided a zip of the script already in the correct format, just unzip, place your bootanimation.zip in the system/media folder and re-zip with no compression. You can rename that zip to whatever you want.
I also provided an example bootanimation.zip (this is NOT an actual animation, DON'T try to flash or use, just look at it's structure)
If you have any questions, feel free to ask. I'll be around
Got a question...if I change my bootanimation, will it cause OTA updates to fail?
captaincanada84 said:
Got a question...if I change my bootanimation, will it cause OTA updates to fail?
Click to expand...
Click to collapse
No.
//10 chars
chaosjh said:
Notepad++ (or equal)
Click to expand...
Click to collapse
Many thanks chaos!!
Nice tutorial!
hmm.. time to replace the heavy gedit, with notepad++ i think!!
chaosjh said:
I decided to make a guide on what i've learned so far about bootanimation to make it easier for both the makers of and users alike.
Sections:
Concept
What is needed?
The desc.txt
Making a flashable zip
Concept
A bootanimation is what you see when you load the phone. However, what many don't know is how you can manipulate these files. A bootanimation is made up of a .zip containing the desc.txt and folder/s that contain the frames. The animation may also call to a sound file outside of the zip. the framework looks like this:
system-media-
|
bootanimation.zip- <--"store" or no compression
| |
| folder1-
| | |
| | anime_0001
| | anime_0002
| folder2-
| | |
| | anime_0003
| | anime_0004
| desc.txt
sound1
sound2
This is a somewhat complex animation and not all animations require all of the above.
Another thing to note is the type of files you can use. Actually, anything that the phone can normally display/play, you can use. This means .jpeg, .png, .mp3, and .ogg are all usable file types in your animation.
A little note also, you don't need to have super quality pictures. If you find your animation getting rather large, try lowering the quality of the pictures. You won't notice the difference and it save a lot of memory. (think dvd vs. blueray)
What is needed?
Ideally, you need multiply pictures named anime_0001.XXX and counting up. Then you need to write a desc.txt (preferably with notepad++ or equal) telling the system when and how to display the images. You will also need a sound file if you want sound. (optional)
Here is a list of helpful programs to make your animation:
7-zip 32-bit 7-zip 64-bit (or equal)
Notepad++ (or equal)
Paint.net (or equal, i rather like this picture editor)
The desc.txt
The desc.txt tells the system what to play when and for how long. You may not need notepad++ to make it, but some bootanimations you mod may be in code and notepad++ will then be required. I just suggest getting use to using notepad++ to save frustration.
Using Notepad++, create a new file. The text you need will look like this:
540 960 15
p 1 10 part1
s sound1.ogg
-540 is the width of the target device, 960 is the height, and 15 is the frames/second the animation will be played
-p means display pictures in folder, 1 is how many times to loop the folder (a 0 here is infinite), 10 is a delay at the end of the last loop (in frames) a 0 here means no delay, and "part1" is the folder name in the bootanimation.zip
-s means play sound in the media folder, "sound1.ogg" is the actual name of the file
You can make this file as complex is as simple as your animation requires. The sound file will play at the start of the folder being displayed. Here is an example of a complex desc.txt:
540 960 30
p 1 0 part1
s firstsound.mp3
p 1 0 part2
s secondsound.mp3
p 0 0 part3
this desc.txt tells the system to play the part1 folder once with sound1, then without a delay, display the part2 folder with sound2, and, again no delay, play the part3 but keep repeating it (useful for an ending frame).
A simple desc.txt could be:
540 960 1
p 0 0 part1
Then only put one picture in the part1 folder. This will basically just display a pic until the phone loads.
Making a flash-able Zip
To make it easy for users to install your animation, you should make a flash-able zip they can use in recovery. This is easy. Use notepad++ to make a file called "update-script" (with no file type). I won't go into great detail in the options you can do with the script but this is what it needs to say for our purposes:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.2 10
Save this file. You, then need to make a zip on "store" or no compression with the following format:
thenameyouwant.zip-
META-INF/com/google/android/"update-script" -no quotes, i just used them so you know it's not a folder
system/media/bootanimation.zip
sound1.ogg (optional)
Alternatively, I provided a zip of the script already in the correct format, just unzip, place your bootanimation.zip in the system/media folder and re-zip with no compression. You can rename that zip to whatever you want.
I also provided an example bootanimation.zip (this is NOT an actual animation, DON'T try to flash or use, just look at it's structure)
If you have any questions, feel free to ask. I'll be around
Click to expand...
Click to collapse
I use Adobe Flash CS5. I output as queue png and put name first 0001.png. It works perfect.
BravoMotorola said:
I use Adobe Flash CS5. I output as queue png and put name first 0001.png. It works perfect.
Click to expand...
Click to collapse
that is really cool i'll have to try it out.
did you really have to quote my entire post though?
1. Create PNG images for your animation.
Tip: You can create GIF animations easily using a free online tools and then extract PNG images from the GIF animation.
2. Rename and resize those PNG images starting with a 4 digit number for the first frame and ascending for each consecutive frame. The images in part1 folder should start where the last image in part0 folder has ended.
For example the original boot animation in your android phone has images from 0000.PNG to 0009.PNG in part0 folder and 0010.PNG to 0082.PNG in part1 folder.
3. Create a custom desc.txt and add the following in it.
230 230 24
p 1 0 part0
p 0 0 part1
4. Place part0, part1 and desc.txt in a folder renamed as ‘bootanimation’. Zip the folder (using an archiving utility such as 7Zip). Set the ‘Compression level’ setting to ‘store’ (which means no compression), before you archive. Compression will make it unreadable for your android fone.
5. Copy bootanimation.zip file from your PC to your SDCard root.
6. Mount file system read/write using root explorer.
6. Make a backup of the original boot animation using root explorer.
/system/media/bootanimation.zip
7. Now copy the bootanimation.zip file from your SDcard to your phone’s memory.
8. Now reboot an enjoy!!!
u forgot to say that we must resize the png first and in desc.txt we put the exact png size as we have resize..=)
azadtaufiq said:
u forgot to say that we must resize the png first and in desc.txt we put the exact png size as we have resize..=)
Click to expand...
Click to collapse
Ooops thanxxx i'll update it!
galvic said:
1. Create PNG images for your animation.
Tip: You can create GIF animations easily using a free online tools and then extract PNG images from the GIF animation.
2. Rename and resize those PNG images starting with a 4 digit number for the first frame and ascending for each consecutive frame. The images in part1 folder should start where the last image in part0 folder has ended.
For example the original boot animation in your android phone has images from 0000.PNG to 0009.PNG in part0 folder and 0010.PNG to 0082.PNG in part1 folder.
3. Create a custom desc.txt and add the following in it.
230 230 24
p 1 0 part0
p 0 0 part1
4. Place part0, part1 and desc.txt in a folder renamed as ‘bootanimation’. Zip the folder (using an archiving utility such as 7Zip). Set the ‘Compression level’ setting to ‘store’ (which means no compression), before you archive. Compression will make it unreadable for your android fone.
5. Copy bootanimation.zip file from your PC to your SDCard root.
6. Mount file system read/write using root explorer.
6. Make a backup of the original boot animation using root explorer.
/system/media/bootanimation.zip
7. Now copy the bootanimation.zip file from your SDcard to your phone’s memory.
8. Now reboot an enjoy!!!
Click to expand...
Click to collapse
Hi dude, is it possible if i just copy bootanimation.zip(original one) to extract and replace with some photo?
i have no problem for creating new bootanimation by using this tool..Works great for me (http://forum.xda-developers.com/showthread.php?t=1234611)
you can use a Boot Animation Creator but you will have to first create the png files yourself.
what the boot animation does is lets you select two folders (part0, part1), specify image size, frames speed and it does the rest for you, you can also preview your bootanimation before installing it on the phone
DISCLAIMER:
I am not responsible if you break your phone. You should always do a nandroid backup befor flashing any files. Remember to wipe your dalvik before making a nandroid to save a lot of time and space
Intro
So. Boot animations. Hard to make? At first yes. But I will explain in great detail each step in making a boot animation.
Requirements
-A photo Editing program (GIMP and Photoshop are the best.)http://www.photoshop.com/
-A text editor besides notepad or wordpad. (Notepad++)http://notepad-plus-plus.org/
-An archive manager (7-Zip or WinRAR)http://www.win-rar.com/website/index.php
My setup:
Photoshop CS5
WinRAR
Notpad++
The Tutorial
Step 1: Folders
So in this step, we need to make folders. The number of folders depends on what type of animation you want. You can name the folders anything you want as long as they are reflected in your desc.txt (we will get more into that later).
If you have a video that you want to repeat, you will need only 1 folder. (Name it anything you want)
If you want an intro (only shown once) and then a repeated set, You will need 2 folders. Most common names: (part0, part1) (intro, repeat)
If you have more then 2 sections of images, then I have no clue what you are doing but good for you for being awesome!
Step 2: Images
So this section will be a generilization of the images. I say this because every video is going to be different.
Each image in the video is called a frame. They usually vary slightly from image to image which sped through makes the illusion of a video.
-Each frame must be 480*800 px (thats 480 pixels wide by 800 pixels tall).
-Each frame must be saved in a .png format. (If you are using Photoshop, File > Save for Web & Devices to reduce the file size drastically.)
-Each frame needs to have some numarical value.
+Recommended would be something like frame0001.png, frame0002.png, frame0003.png, etc.
+Try to keep it under 300 images total
After all of the images are created, we now need to place them in folders.
Step 3: Placing images in folders
This step will vary from user to user. based on what type of animation you are making.
Intro to loop (2 folders):
With this one, you are going to place all of the images that is to be the intro to folder 1.
All looping images will go into folder 2.
Looping video:
All images will go into a single folder.
Step 4: desc.txt
This is the 'script' that tells android what to do.
Open up your text editing program. You have to use something other then notepad/wordpad included with Windows. They add some funky stuff for every new line you make which will ultimately break the script. It is best to use Notepad++.
This is an example of a desc.txt that has 2 folders in it:
480 800 20
p 1 0 intro
p 0 0 repeat
Here is what it is telling android to do line by line:
480 800 20 <-- Width of the animation in pixels. This will stay 480 for Evo users Height of the animation. Keep this 800 for Evo Users Frames per second. This is basically your 'speed' of the animation. This will stay in between 10-30 (10 being slower, longer, and choppy; 30 being fast, short, and smooth.)
p 1 0 intro <-- p is telling it to play this folder. It will always be there. Folder is to be played 1 time before moving on to the next folder. Pause the movie for 0 frames after the animation is completed before moving on to the next folder. (This will normally stay 0). Name of the folder to be played. In this case, the folder named "intro" gets played once and then it moves on to the next line.
p 0 0 repeat <-- Play the animation... Folder is to be indefinately played. The 0 is telling it to play this folderover and over. Just keep it 0. Folder "repeat" gets played
And now for an example of a single folder (same thing looping over and over):
480 800 20
p 0 0 part0
So same as before... 480px wide by 800px tall at 20 FPS
Play the folder "part0" an indefinate amount with no pause in between.
Why not go funky!:
480 800 20
p 1 0 intro
p 5 0 cookies
p 2 0 cake
p 0 0 mynion
Same... 480px wide by 800px tall at 20 FPS
Play "intro" 1 time with no pause
Play "cookies" 5 times with no pause
Play "cake" 2 times with no pause
Play "mynion" indefinately
Ok. So now we save this file with the file name "desc.txt". It must be named that. Case sensitive.
Get it? Good. Let's move on.
Step 5: Packaging
Now we are going to package this sweetness of a custom boot animation!
(this is assuming you are using Windows with WinRAR. Steps may vary from OS and program)
1. Highlight all of your folders and desc.txt and right click > "Add to archive..."
2. On the left side, change the radio buttons from rar to zip
3. Change compression method to "store"
4. Name the file. For now, you can name it anything. Eventually, it will need to be named "bootanimation.zip"
And we are done! Now we just need to set it up on your phone!
Here are 2 methods of doing this:
Root Explorer method:
1. Rename your boot animation to bootanimation
2. Put it on your SD card
3. Open Root Explorer and copy bootanimation.zip to /system/customize/resource. The destination folder may vary from ROM to ROM. I am using Synergy.
4. Reboot your phone
ADB method:
1. Make sure you have downloaded android sdk
2. Put android sdk in C:\
3. Set the directory of command prompt to C:\android-sdk-windows\platform-tools. Click here for a video tutorial.
4. Rename your boot animation to bootanimation and put it in C:\android-sdk-windows\platform-tools
5. Open cmd
6. Type in order:
-adb remount
-adb push bootanimation.zip /system/customize/resource/bootanimation.zip The destination folder may vary from ROM to ROM. I am using Synergy.
-adb reboot
Cool...! Thanks alot! Great tut!
Sent from my iPad 3 using XDA App
good but too long...almost slept reading it
All the work given below is not my own; I only compile knowledge from different threads in to single easy guide. Huge thanks to xda senior members devilex94 and makers_mark for their nice work.
Everyone like to change bootanimation but if that bootanimation is our favourite video then it will be nice experience.
Xda Senior member devilex94 has made bootanimation file which will execute video as bootanimation. See original thread here http://forum.xda-developers.com/general/xda-university/guide-set-video-bootanimationtesters-t2915445
Proceedure is as below ,
1. First download zip from http://d-h.st/LjJK and extract it on desktop. You will find ffmpeg, image resizer and bootanimation2mp4 converter in it. Also bootanimation execution file in 'bootanimation file' folder.
2. Now copy your favourite video mp4 file in in C drive. Open ffmpeg folder and open bin foder in it. Then open command prompt there and write "ffmpeg.exe -i c:\ABC.mp4 -r 8 -ss 00:00:0X.000 -t Y ABC-%3d.jpg" without "" this sign where,
ABC is name of mp4 video
8 is number of frames per second(8 will work for every video or you can keep it as per the fps of your video by checking it from properties/ details )
00:00:0X.000 is time from where video is to be converted
Y is the time of video length
3. Then press ENTER & you will see jpg images in bin folder.
4. Resize these images as per phones screen size ie. 540X960 pixels or as per your requirement.
5. Now make folder 'part0' and copy from first image upto the image you want as your main bootanimation in this folder.
6. Now make folder 'part1' and copy the last image in pat0 and remaining images in it. These images will appear as loop.
7. Now make desc.txt file in notepad and write,
540 960 08
p 1 0 part0
p 0 0 part1
where, 540&960 are image size and 08 is frames per second. Also leave one blank line after last line and then save the file.
8. Zip all these part0, part1 and desc.txt using 7zip in bootanimation.zip (REMEMBER TO KEEP COMPRESSION LEVEL TO STORE FORMAT OTHERWISE BOOTANIMATION WILL NOT WORK).
Now this bootanimation is ready in jpg format and you can use it in any custom rom. To use it in stock rom we have to convert it in mp4 format using proceedure below,
1.Put the bootanimation file in 'bootanimation file' folder in place of original bootanimation file in /system/bin folder and change permissions to 0755 (rwxr-xr-x). Also make the backup of original bootanimation file.
2. Now run 'RUNba2mp4v186b.bat' file in bootanimation to mp4 converter. This will create some folders in bootanimation to mp4 converter. Copy your bootanimation zip in zips folder in bootanimation2mp4 converter and press 2 and ENTER. Then proceed for video bootanimation conversion by finally pressing 7 and ENTER. You will find 6100kbs_bootanimation.zip in Made_Zips folder. Rename it to bootanimation.zip and this is your final video bootanimation zip.
3. Place it in /system/media folder and give permissions 0644 (rw-r-r) and reboot. You will see phone booting with your favourite video.
4. You can also change booting sound in stock roms. Copy your favourite sound track in /system/media/audio/ui and rename it to PowerOn.ogg and change permissions to 0644 and reboot.
I made one; download and flash through cwm
http://d-h.st/meY2
http://d-h.st/brWB
I created a rickroll bootanimation, but it doesn't work.
I renamed the frame images to increasing numbers and put them into a folder called part0.
The desc.txt code is:
720 720 15
p 0 0 part0
I used ZArchiver to convert the files to zip without compression. The file is 18MB, maybe it's too big? (I attached it)
Bootanimation app says it's an invalid bootanimation. When I put it manually to system/media, it doesn't show any animation when booting.
What did I do wrong?
I found the solution.
This Magisk module fixed the problem:
[MODULE] Bootanimation Replacer
Decription: Bootanimation Replacer is a simple module to customize bootanimation of your deviece. It detects the bootanimation.zip file in /data/media/0 on boot, and if it exist, move it to its module dir $MODDIR/system/media. And this...
forum.xda-developers.com
If you have the same problem, check that link