【Android论文栏目提醒】:网学会员鉴于大家对Android论文十分关注,论文会员在此为大家搜集整理了“Creating a Boot Animation for Android Based Systems ( Specificto - 学士论文”一文,供大家参考学习
Creating a Boot Animation for Android Based Systems Specific to the Galaxy Nexus by JaeKar99 I have seen requests for a tutorial or some instructions regarding making/building boot animations.. This is a beginning and is in a rough stage of the editing process.. It may take some time to get all the pieces assembled and all the contingencies covered. Thanks to all the themers devs and mods I have worked with and their support in learning and using my boots in their work.. gunnermike53 nitsuj17 sbrissen GrainOsand Adrynalyne Vache - - - and a bunch more that I cannot think of right now You will need some tools – All that are listed here are free or you already have them: First off to get your raw material videos you will need to get YouTube Downloader. This will give you the option to pull down videos you may choose to use for your image sources. There is also the option to build your own animation - Blender is a great tool to make animation sequences. I will not be doing any teaching on Blender – there are detailed videos on Youtube.com Next you will need Free Video to jpg Converter. This is the best tool free to extract individual images from the video that you have. Some form of picture or image editor will also be needed: MS paint or Photoshop works well - Gimp is free. Faststone Image Viewer. - This tool is used to batch change files. This is a nice program because it can rename rotate or completely convert whole batches of image files for you. Photoscape - is another that will build animated gifs for you and will make batch changes to images. You may also need a video editing program that is capable of putting captions on the video sequence or can edit longer sequences to shorter or cut and piece them together. Any should work fine. I use MSLive Movie Maker.. I am sure that there are many more available. You can also get GifSplitter program to pull animated gif files apart into the respective images then those can be packed into a boot.. You will also need a file zip utility. 7zip works best for me: This will be needed to package the image files so that they are playable by the device. You will also need program to edit the desc.txt file.. best program out there is Notepad . I do not use any other program so if there is another out there I have not used it. Do not use MSWord or other word processor. It will corrupt the file in a fashion that makes the boot not play. Once you have your tools you move on to the next step... Patience is the greatest principle from this point on. Much of this takes time and practice to get all the variables to work the first time. Expect lots of trials and lots of errors. Step 1: Download and install all the programs that are listed above.. then go hunting for the video images that you will want to use. Once you find the vid you want to turn into a boot animation you download it using the YouTube downloader. Step 2: Once you have the file you can use the Video to jpg Converter to break it into the number of images you desire or you can put it into your video editor to adjust the length or add a caption.. Keep in mind that when importing process lowers the overall quality of the end image output. It is not really noticeable on a phone but makes many boots on a tablet it can appear grainy. Things to consider If you are cutting up a HD video each image will be very large in memory size and you may have to reduce the number of images that you have.. A really good number is 100 to 200. Sometimes a 100 image sequence will 20 megs in size. There is a trade off with larger numbers of images.. big images means really clear images awesome colors and great resolution… but – slow load times animations may start and stop blackouts or freeze ups. To ensure smooth image flow and good load times I have always tried to keep all my animations under 7 megs. The absolute max is not established but if you are trying to push a 20 meg boot animation it will likely black out. . But this all depends on image color and density black is always better. Step 3: Once you have your images procured you can edit them in batches: use Faststone to change the numbering in batches.. Android OS is nice enough that it will follow the established sequence and will keep playing even if you leave a number out.. You can also do batch changes in file format from jpg to png. This program is nice for this process because it does not degrade the integrity of the image. I recommend any image editing be done in batches as well.. I use Microsoft Picture editor to select all the images at once and then crop as I need to.. Warning: if you crop either left or right side of the image the corresponding crop has to occur on the opposite side. The same applies to the top and bottom of the image. If you cut 10 pixels off the top you have to cut 10 off the bottom. If the crop is not symmetrical your images will play skewed and you it will look like your boot animation shifted diagonally to one side or the other.. or will not play at all. When colorizing using Gimp or other graphics software to colorize if there are inherent undesired artifacts hidden in the images colorizing or inverting will make the artifacts more pronounced and may make some images unusable. Step 4: When you feel that all your images are completely edited to your liking you can start to assemble the images into the boot animation. The bootanimation.zip file has to contain certain structures: Image Folders and the desc.txt file. The folders that contain the images each folder labeled so that when told to play it plays the specific folder first. Then a desc.txt file. This file is the commander for the os/kernel. more on that later If you want to break up the images into different folders this is the time to do it. One folder can be made to be played one time where the next may loop over and over again.. There is no current limit on the number of images in any of the folders. Early phones had caps of about one meg per folder. I have not found this to be the case with any Android system after 2.1. Folder labeling – really does not matter as long as the desc.txt file contains the direction to that specific folder in it. Almost all boot builders will use ‘part0’ ‘part1’ ‘part2’… etc. as respective names for the folders. It is usually helpful to set up a working folder where your images are located and then drop your images there for editing.. you can then change the name to the desired folder in the boot sequence. Step 5: The desc.txt file: This is where most errors take place if they are going to happen to prevent a boot from playing first time. Using Notepad open an existing file from a boot that you have already.. you will notice that there a few lines of code : Line 1: The first two numbers on line one are the resolution and the third is the frames per second to play the image sequence Line 2: Left blank. Some boot builders put a blank line in here for unknown reasons. I have found that it is not needed but you can keep it in if you choose. Line 3: p play 1 number of times to play 0 pause in the number of frames/second part0 the folder containing the image files chosen for that section. Note: spelling must match identically with the folder name. Line 4: p play 0 0 infinite number of times to play 0 pause in the number of frames/second part1 the folder containing the image files chosen for that section. Note: spelling must match identically with the folder name. Line 5: ALWAYS LEFT OPEN. If you do not have an open last line the line preceding it will NOT play work Black out and the boot will stop playing.. or will not play at all. The desc.txt file for a boot animation that will loop only one folder: The desc.txt file for a boot animation that will play the first folder one time then loop the second folder: 1 720 1280 35 2 3 p 1 0 part0 4 p 0 0 part1 5 Note: The number of times that the a folder plays has a maximum.. currently I cannot get it to play more than 7 times before it moves to the next folder regardless of the number of plays defined in the desc.txt file. Step 6: When you have your folders and your desc.txt file assembled you should move all of that to what I call a working folder and then select them using 7zip.. then zip them up… IMPORTANT DO NOT compress the files.. they are to be ‘stored’ – to a file called ‘bootanimation.zip’.. if it is compressed in any fashion it will not work.. You also cannot open the archive and then drag and drop files to it. You must compile the file each time from the folders and the desc.txt file.. and zip it. If you opt to go the drag n drop route it will not work. You have assembled your first boot animation. Copy over to your device and try it.. Expect many attempts that do not work the first time.... do not give up. Next…… Trouble shooting: I set the images up in HD but the boot animation is washed out: There are a few devices out there that will actually play a HD boot animation ex. HP Touchpad. Many devices will not display a boot animation in HD. The HD drivers and animation components are loading in the background and are not available for boot animation displays. There are ways around this by using image stock that has pronounced bright colors primary colors are best for this. Many people have be very disappointed when they invest considerable time in up scaling images to have them be washed out and dull during the boot.. Boot plays but is bent/skewed to one side: The images were edited incorrectly when cropped. The crop was not symmetrical. This will also happen if you compress the jpg images too much in a You will need to redo the images from the video sequence then crop and repack. Boot starts to play then stops and goes to black: make sure that the folder names are the same between the desc.txt file. There may not be a blank line at the end of the desc.txt file. The file sizes may be too big and the files cannot be played. Boots with image files greater than 500K per image will lock up on some devices. You may have to run the video through a converter to get it to a resolution low enough to run on the device without locking it up bogging down or failing to loop. This is more likely to happen with HD files 720p and 1080p files that are directly converted to jpgs and then run as the boot animation.. I do not know why this happens but by running the video through like Windows Live Movie Maker it will allow it to work.. This does not happen to all videos.. If it happens I suggest converting the wmv to an avi and then reprocessing the video to jpgs. Boot plays but only loops the first folder: the number after the ‘p’ in the second line should be a ‘1’ not a ‘0’. The boot plays very slow and cannot play all the way through before the device is done booting: Image sizes are too big or the fps in the first line is too low and you need to raise the number. Reduce the size of the files compression – be cautious of this it has been known to corrupt the images and will cause them to skew/bend or freeze up upon play. Boot will play then flash and start over – or will loop as designed with flashes: Windows image editor side effect. When you are viewing files in the windows picture viewer it will place a hidden file in the folder usually thumbs.db or imagethumb.db or other .db file. This will cause the boot to flash white as the player tries to play the image sequence. This file must be removed from the folder for your boot to work right – when it is in the ‘stored’ format you can right click then select 7zip in the dropdown go over to open archive and then examine the contents of each folder if you see a .db file – delete it. That will correct the problem. Permissions: Get just a black screen or a landscaped “Android” logo.. you will need to ensure that your permissions for the bootanimation.zip file are set at: rw-r-r Making Flash install zips – Coming Soon.