(HELP)Breaking down a .GIF file to make a boot? - Nexus One Themes and Apps

I havent posted in a minute but i found a .gif that i would love to break down and make a boot animation, i wasnt sure if maybe someone knew of a program that broke .gif's down into individual images? or if maybe someone wanted to take this on
http://www.engr.colostate.edu/~dga/...stuff/cylinder_combustion_cycle_animation.gif

thats quite good i like it, heres a zip full of pngs from that animation, hope its what you meant.
http://www.mediafire.com/?gr5olzkrrya
heres my bootanimations..
http://forum.xda-developers.com/showthread.php?t=623960

Related

[PROJECT] REAL animated Bootanimations in AOSP

I want to start a project for a REAL animated bootscreen, maybe as GIF or multiple JPGs..
From what I know, the bootanimation is triggered by the surfaceflinger, and it calls the bootanimation binary.
The source is here:
http://android.git.kernel.org/?p=pl...9269bc9fa9452ad32d733830713565e157cc;hb=donut
Lets mod it
In the Droid dump the start animation is a serie ofpng files maybe we can use the same things for the desktop ?
Quick Question: Does htc include some special files that allows android to support GIF's ?
imfloflo said:
In the Droid dump the start animation is a serie ofpng files maybe we can use the same things for the desktop ?
Click to expand...
Click to collapse
Incompatible, throws out errors, idk why.
Daneshm90 said:
Quick Question: Does htc include some special files that allows android to support GIF's ?
Click to expand...
Click to collapse
Didn't see any.. but running the bootaniamtion bin does show the AOSP animation.
K i dont have a build environment setup so im just gonna suggest
What happens if u replace
Code:
initTexture(&mAndroid[0], mAssets, "images/android-logo-mask.png");
with
Code:
initTexture(&mAndroid[0], mAssets, "images/boot.gif");
???
djengizz mentioned to me, he saw in the source that the system makes calls to android-logo-mask.png maybe we should change that .png to .gif
Daneshm90 said:
K i dont have a build environment setup so im just gonna suggest
What happens if u replace
Code:
initTexture(&mAndroid[0], mAssets, "images/android-logo-mask.png");
with
Code:
initTexture(&mAndroid[0], mAssets, "images/boot.gif");
???
Click to expand...
Click to collapse
man u beat me 2 it
Maybe it's possible to create an array of images for the foreground (android-logo-mask0.png --> android-logo-maskxxx.png) and iterate over them in the do - while loop that shifts the background image.
Yes, great idea, maybe a very wide,wide image of pngs? Not sure if it will work though..
Any dev out there with java knowledge?
Sorry to say that but it isn't Java...
C++... I'm cloning the git-repro and then look it's so easy to just change the name to .gif...
I don't think it's enough, because the png and gif-format are both different and png is ONE frame, a gif has many frames!
born2die said:
Sorry to say that but it isn't Java...
C++... I'm cloning the git-repro and then look it's so easy to just change the name to .gif...
I don't think it's enough, because the png and gif-format are both different and png is ONE frame, a gif has many frames!
Click to expand...
Click to collapse
Ah it never is as easy as it seems, but doesnt hurt to give it a shot
Yea loading multiple png's would definitely be a good alternative, just add some delay between them.
maxisma said:
Yes, great idea, maybe a very wide,wide image of pngs? Not sure if it will work though..
Any dev out there with java knowledge?
Click to expand...
Click to collapse
Judging from the source the background shift happens at 12 fps and it renders a texture from the png image (so i don't think an animated gif would work).
That means that something like the Droid animations would at least last around 4 seconds (i thought there's about 50 images in it) although you could speed up / slow down things of course.
we gotta figure out the way that droid calls the bootanimation.zip in /media. they're clearly not even using /assets because the android-mask.png is all still in there.
djengizz said:
That means that something like the Droid animations would at least last around 4 seconds (i thought there's about 50 images in it)
Click to expand...
Click to collapse
there's more like 100
jroid said:
we gotta figure out the way that droid calls the bootanimation.zip in /media. they're clearly not even using /assets because the android-mask.png is all still in there.
Click to expand...
Click to collapse
Same with Htc. They even have their assets folder n stuff, but never use it. If we cud figure out either htc or droid's calling methods, we're set
Which bootanimation.zip are you talking about?
it looks like the source is written to recognize png's. a simple change to .gif wouldn't work unless we were to re-write the source to recognize .gif.. so then our focus should be to get an animation using png's. hence, what Motorola did w/ droid
jroid said:
we gotta figure out the way that droid calls the bootanimation.zip in /media. they're clearly not even using /assets because the android-mask.png is all still in there.
Click to expand...
Click to collapse
It doesn't really matter, we could move them to framework-res/assets for the AOSP builds.
born2die said:
Which bootanimation.zip are you talking about?
Click to expand...
Click to collapse
in droid's dump, the /system/media/ has bootanimation.zip in there which contains the droid boot png's
At the moment i'm a bit confused, so wich bootanimation are you really talking about?
EDIT: Thx, don't know so much about DROID...

Converting Bootscreen to 2.1

Is there a good writeup on the requirements for setting up a 2.1 bootscreen? I've seen some nice 1.5/6 ones and i'd like to port them over the 2.1.
THanks!
i'm pretty sure you can do it the same way.
All of the 1.5 style bootscreens use an xml format with animated gifs, while it seems the 2.1 ones are PNG frames with a dat type control file.
You can still use the old bootscreens, you just have to remove bootanimation.zip, create a bootscreen folder inside /system/media, then drop your bootscreen in there.
I've flashed zips that do exactly that and they never work for me.
bootanimation.zip removed. reboot.
flash whatever bootscreen. /system/media/bootscreen is created. contains gif, xml, and audio. get blackscreen during boot and not animation.
the only ones I have gotten to work are tailored for 2.1 specifically.
ogboot said:
I've flashed zips that do exactly that and they never work for me.
bootanimation.zip removed. reboot.
flash whatever bootscreen. /system/media/bootscreen is created. contains gif, xml, and audio. get blackscreen during boot and not animation.
the only ones I have gotten to work are tailored for 2.1 specifically.
Click to expand...
Click to collapse
post one of the zips up and let me take a look at it, maybe something's different in the xml.
And you are on Sprint? Some people have been having troubles if they are not on Sprint.
regaw_leinad said:
post one of the zips up and let me take a look at it, maybe something's different in the xml.
And you are on Sprint? Some people have been having troubles if they are not on Sprint.
Click to expand...
Click to collapse
Thanks Regaw. You're right i'm Cellsouth.
The ones that work for me are folders containing PNG frames and a desc file (no xml). There is a supernova out that works fine and it has this format. I have access to GIMP so i've considered pulling all the frames out of one of the gifs, saving them as PNG and then recreating the directory structure I see in a standard bootanimation.zip. However, I haven't seen a batch method in GIMP for saving the frames as individual PNG files so it would kind of be a pain in the arse.
I've tried many of the ones in the 2.1 collection thread, same results every time. phone works great just the black screen during boot.
okkkkkkkkkk...........
so...
Can someone tell me the format for creating a bootanimation.zip that uses a desc file and PNG files? I've looked at the desc file and can obviously see where it has resolution info and references the part folders, hasn't anyone created a bootscreen in this format before though?
Thanks.

[boot animation] Award BIOS boot for EVO4G

Ok so I think I finally have this working correctly, I really liked frysee's bios boot animation but I wanted one for the Evo, so I ripped off his work.
I edited most of the info to make it match the Evo specs, but some stuff I couldn't easily find on the web so if anything is inaccurate I would be more than happy to update the animation if you give me the correct info. Also I think the speed is pretty good, maybe pause a little longer at the end of the first screen but I wanted to hear some feedback on it before I did anything. (renaming 50 images just to try something out isnt much fun).
Ive attached the file below, If someone could sign it for me great, otherwise I just use pushboot to easily add it in. Also there is no sound, I thought about adding in a system beep noise but thats not really worth it.
Pushboot:
http://forum.xda-developers.com/showthread.php?t=701295

[BOOT ANIMATION] need help with custom boot animation

Ive tried a bunch of tutorials and multiple modifications and file types but im still not able to get my boot animation to work
Im trying to turn this Tsar Bomba (biggest Atom Bomb ever)video into a boot animation
Tsar Bomba
Nothing seems to work. Ive tried playing with the dpi and bit depth settings, reducing the number of png files, using different naming for the PNG files (some tutorials say different things) etc but still nothing
I have attached my bootanimation.zip file to this post
If you can let me know why it isn't working or correct what is wrong I would greatly appreciate it.
I know the resolution is not very good on the PNG files but im just trying to get it to work first and then ill worry about how good it looks
Here are the PNG files im working with
Problem appears to be with your desc.txt. It's not formatted properly. Be sure to use a good text editor (notepad doesn't cut it, try notepad+ if you are on a windows box).
Here is more info that should help you out with the desc.txt
http://www.droidforums.net/forum/droid-hacks/9163-desc-txt-boot-animations-works-like.html
Edit: all though there may be something else going on too. Perhaps problem with the format of the images. i just modified desc.txt to appear how it should and put it on my phone and just get a black screen.
gIMpSTa said:
Problem appears to be with your desc.txt. It's not formatted properly. Be sure to use a good text editor (notepad doesn't cut it, try notepad+ if you are on a windows box).
Here is more info that should help you out with the desc.txt
http://www.droidforums.net/forum/droid-hacks/9163-desc-txt-boot-animations-works-like.html
Edit: all though there may be something else going on too. Perhaps problem with the format of the images. i just modified desc.txt to appear how it should and put it on my phone and just get a black screen.
Click to expand...
Click to collapse
In terms of format I downloaded the clip from youtube and changed it into an AVI then I used virtualdub to get the png images from the clip
what type of format for the png is needed?
spotted your problem first they need to be labled as boot_00001 also there needs to be two folders part0 and part1.
I've edited your bootanimation.zip now it is working.
Cool animation but can you make it loop? For me it only plays once.
davados said:
I've edited your bootanimation.zip now it is working.
Click to expand...
Click to collapse
Thanks a million.
jimbobalu said:
Cool animation but can you make it loop? For me it only plays once.
Click to expand...
Click to collapse
here u go just needed to change a value in the txt file
Is there any limitations on the number of frames the animation can have?
Im curious in order to make it look better
Not to sure but the highest I've created a bootanimation is 162 images plus 27 for the end loop I think its just a matter of playing with it.

[BootAnimation] Harry Potter!

First off, this is my very first boot animation, so don't be too harsh. I would like to thank everyone here at XDA, because without you guys I wouldn't know absolutely anything. I also want to give a quick thanks to Lrod0175 because I used his animation as a reference to figure out how to make mine work.
I made this boot animation as a learning experience, but I do plan to make more. It is themed after the last Harry Potter movie because I saw a request for it earlier today.
I didn't make the video run in full 480*800 because it stretches the video and makes it look.. awkward. Instead, I ran it at it's default video size and animated some "HTC Evo 4G" text to move around a little bit at the beginning. Also, it is somewhat short, again, this was mainly a test for myself to see if I could figure out how to make one. It is designed for Sense based ROM's as well.
PREVIEW (You can watch in 1080, full screen, if you want.)
Download Link
You need to push this to /Data/Local if you are on Kinged Kingdom RLS 2.1. You may also have to change the permissions on it with Root Explorer or something similar.
Let me know what you think of it and please "Thank" me if you like it.
GeneralSky2004 said:
First off, this is my very first boot animation, so don't be too harsh. I would like to thank everyone here at XDA, because without you guys I wouldn't know absolutely anything. I also want to give a quick thanks to Lrod0175 because I used his animation as a reference to figure out how to make mine work.
I made this boot animation as a learning experience, but I do plan to make more. It is themed after the last Harry Potter movie because I saw a request for it earlier today.
I didn't make the video run in full 480*800 because it stretches the video and makes it look.. awkward. Instead, I ran it at it's default video size and animated some "HTC Evo 4G" text to move around a little bit at the beginning. Also, it is somewhat short, again, this was mainly a test for myself to see if I could figure out how to make one. It is designed for Sense based ROM's as well.
PREVIEW (You can watch in 1080, full screen, if you want.)
Download Link
You need to push this to /Data/Local if you are on Kinged Kingdom RLS 2.1. You may also have to change the permissions on it with Root Explorer or something similar.
Let me know what you think of it and please "Thank" me if you like it.
Click to expand...
Click to collapse
That's awesome and great work!!! Where's the sound though ?
I was only really focused on the actual animation in this one, so i didn't put any sound with it. I plan on making some more very soon and ill incorporate sound into those.
Sent from my PC36100 using Tapatalk
Nice man can't wait to see it!
Nice
Looks great!

Categories

Resources