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
Hello everyone,
I have Jellybam 1.2.0 (Android 4.1.2) on my GT-I9100.
I have changed the boot animation to the stock galaxy S2 one, but I haven't been able to add the sound to it. Is it possible?
I have tried adding the sound as PowerOn.ogg, PowerOn.wav and 1_poweron.ogg on /system/etc but still no luck.
Any ideas?
desc.txt contents, in case it is relevant:
Code:
480 800 30
p 1 0 part0
p 0 0 part1
I also tried:
- Editing desc.txt with a proper editor and adding "s PowerOn.ogg" while having PowerOn.ogg in /system/media.
- Using a script named bootsnd.sh to create a bootsnd file in /system/bin while having android_audio.mp3 in /system/media.
Stilll no sound. Perhaps it is not supported?
Sent from my GT-I9100
A member of the forum suggested me using JellyBam Bootanimation by Metallaxis v1.1 as a guideline, found in this post.
I flashed that bootanimation but no bootsound.
He also suggested me:
- Giving eXecute permissions to /system/bin/bootsound
- Adding the following lines in /system/build.prop:
Code:
persist.sys.boot_volume=100
ro.config.play.bootsound=1
Still no sound
Also, my kernel is Siyah but I'm not sure if it is related to the bootsound.
Boot sound unsupported as yet on jb
[COLOR="#black"]galaxys2 [/COLOR] dori7.29 rootbox nightly enzo
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 have already dumped the bootanimation.zip file, and upon unzipping it I find two MP4 files, one PNG, and one TXT document.
The text file contains this:
Code:
1 0
0 1
and the PNG is just the boot logo as a PNG.
The MP4 files are the two parts of the boot animation (one containing the main part, and the other has the loading spiral).
How in tarnation does this work?