Hardware Acceleration for Bootlogo on LineageOS? - General Questions and Answers

So I searched everywhere but wasn't able to find anything helpful on this matter.
I created a custom bootlogo for my G920F on LineageOS 14.1 official. It's a full size animation with 120 pngs, every one roughly the size of 1.5 MB.
Here's the desc file header I am using:
Code:
1440 2560 30
The animation works, but only at about 3 fps. I eliminated the FPS (30) as the reason for this, neither 60, 22 or 90 have an effect on the speed of the animation. The ZIP is not compressed.
So my best guess is that the CPU handles the boot animation and isn't able to process these big pictures at the stated framerate.
Can anybody confirm this and/or provide a solution?

Related

[REQ] Tips & tricks for "designing" and optimizing a boot animation

This is not about "how do I make a boot animation." I've got the packaging and installing down.
This is about how to fix, tweak, and optimize the animation images to get a smooth consistent animation.
I have a boot animation that I'm working on. It's based on the stock animation. I just want to tweak it to my likings. Also, I've made a splash screen that is a composite of animation frames, plus HTC and unrevoked logos (see attached preview).
I have 3 parts to my animation:
Fade from splash to stock frame 10 (replacing the Droid) (avg size ~120kb)
Bulk of the stock animation (begins around 90kb and drops to 21kb)
Loop of the eye with the red dots moving (all ~21kb)
My problems:
My fade section is yielding some black screens (maybe I'm pushing the CPU too hard and it just skips frames).
The loop is WAY too fast. (small frame size = FAST playback?)
Doubling the frames for the eye loop results in a choppy, not much slower animation. It looks like a caching thing to me.
So... Any tips or suggestions for working around the animation "bugs"?
My gut is telling me it's a file size (speed is controlled by data bandwidth) and/or compression issue (speed is controlled by CPU rendering time).
Compiled tips
List of tips and tricks
???

[Q] how do i make boot animation from avi?

i found the coolest thing ever, its avi and almost a minute long. i really want it to become my boot animation, i really dont have any idea how to do it. does anyone have any suggestions for how to get this done? ps - the avi has audio too, and that would be even more awesome to include.
You can create a boot animation from any type of video format even if the format is in flash (swf) what you need is a programs that convert videos to either. Jpg or. PNG file (boot animation can be done using only those two formats) ..... about adding sound to your animation yo need to know if the ROM you are running right now is capable to do audio @ boot if not you wont be able to make it work with sound.
Send from My Draken X
Okay thanks, I'm on it.
only .png picture files
Not sure this is right, I have saved the sequence as jpg images - 1418 of them - to a folder size of 58.4 mb with each image sized 704 X 400. Do they need to match droid x screen size to fill screen? And does my desc.txt really have to be 1418 plus lines? is there an easier way?
Thanks for any help with this, if I can do it I will post it so others might decide to use it.
mattmartin77 said:
only .png picture files
Click to expand...
Click to collapse
Wait, what?
the desc.txt file will have max prob 5 lines
my custom boot animation txt looks like this exactly, but yours would prob be a little different
480 480 15
p 1 0 part0
p 0 0 part1
(480 is the width/height; 15 is the fps; 1= #of times that part loops, 0= not freeze on last image of fps unlike the liberty boot animation which would have a 10)
part0 is a folder that contains the images that would be the non looping part, and part1 is the looping pictures folder
the .png is the file extension of the pictures
mattmartin77 said:
the desc.txt file will have max prob 5 lines
my custom boot animation txt looks like this exactly
480 480 15
p 1 0 part0
p 0 0 part1
(480 is the width/height; 15 is the fps; 1= #of times that part loops, 0= not freeze on last image of fps unlike the liberty boot animation which would have a 10)
Click to expand...
Click to collapse
OH okay I get it. Can the fps be higher? Like 25? And can it not loop? It's like a minute long.
Does the phone start after the boot or when its ready? Like if the boot animation was too long would the phone start without showing it all? And do jpg files not work?
mattmartin77 said:
only .png picture files
Click to expand...
Click to collapse
.jpg format works as well, that what i use to make mine animations
marculous said:
Not sure this is right, I have saved the sequence as jpg images - 1418 of them - to a folder size of 58.4 mb with each image sized 704 X 400. Do they need to match droid x screen size to fill screen? And does my desc.txt really have to be 1418 plus lines? is there an easier way?
Thanks for any help with this, if I can do it I will post it so others might decide to use it.
Click to expand...
Click to collapse
no you dont have to add 1418 of lines create , download one of mine bootanimation and decompress the zip file you see how they work... plus DO NOT USE the NOTEPAD from windows (dont know way but android doesnt like .txt created by this notepad) and download notepad++ from here [url="http://notepad-plus-plus.org/release/5.8.7]Notepad++ (Free)[/url] use that notepad to modified the desc.txt
Okay I think I can do that, going to tackle it after a break.
Okay can't get it to work right. Only plays 2 of the 20 folders, and its choppy. Changed the frame rate to 50 because it played slow. Desc.txt looks like
480 854 50
p 1 0 part0
p 1 0 part1
etc on up to part20
And when it played the aspect ratio was jacked up.
Tried four times.
marculous said:
Okay can't get it to work right. Only plays 2 of the 20 folders, and its choppy. Changed the frame rate to 50 because it played slow. Desc.txt looks like
480 854 50
p 1 0 part0
p 1 0 part1
etc on up to part20
And when it played the aspect ratio was jacked up.
Tried four times.
Click to expand...
Click to collapse
1450 frames is way to much for a Boot Animation (sorry if i didn't mention that before) max i have run is 390 frames @ 120 an still running very tide to the end, i dont know what app are you using to create you frames but if that app give you the options to make for sample 500 frames out of the clip you have that will be better....from there you can start your testing stage and deleted as many necessary frames to make your animation run smooth
P.S. you don't need to create 20 folders for your animation 1 folder is enought for it, 2 folders is more likely when the 2nd folder contains a loop of the animation in question
draken78 said:
1450 frames is way to much for a Boot Animation (sorry if i didn't mention that before) max i have run is 390 frames @ 120 an still running very tide to the end, i dont know what app are you using to create you frames but if that app give you the options to make for sample 500 frames out of the clip you have that will be better....from there you can start your testing stage and deleted as many necessary frames to make your animation run smooth
P.S. you don't need to create 20 folders for your animation 1 folder is enought for it, 2 folders is more likely when the 2nd folder contains a loop of the animation in question
Click to expand...
Click to collapse
Oh. Crap. I read a thread said no more than 3mb per folder. The thing is, I didn't want to loop it.
Let me try this,
Can I make a boot animation that's close to a minute long with an avi as the source, have it play full screen with audio and look good? And if not, how close to what I want can I get?
I'm on apex 1.4.1 and I used avidemux 2.5 to make jpegs from the avi selection.
marculous said:
Oh. Crap. I read a thread said no more than 3mb per folder. The thing is, I didn't want to loop it.
Let me try this,
Can I make a boot animation that's close to a minute long with an avi as the source, have it play full screen with audio and look good? And if not, how close to what I want can I get?
I'm on apex 1.4.1 and I used avidemux 2.5 to make jpegs from the avi selection.
Click to expand...
Click to collapse
actually that really doesnt matter cuz i have some animation over 10 MB in a single folder and still working like a charm.....well like i said 2 folders is more like doing a loop out of one of them, having an AVI as boot animation that will be sweet is Google implement that feature in near future on Android using avi, mpg2 or mp4 as boot animation.
i heard (not sure) that Apex CAN run Boot animation with, i have no way to test it cuz im Running Liberty 1.5 (1.75 very soon) ....
P.S. if you want i can help you out with your animation just send me the Link of the video and ill create one and you can have that one as a reference for future animation of yours
well you can have it be a minute long if you want, but i think that is a long time personally, my custom one is pushing 15 seconds and i think it is long. i was told audio doesnt work on liberty rom. the audio must be named "Android_Audio.mp3" without quotes. it is going to be in the same folder on your phone where the bootanimation.zip is kept, /data/local make sure that the audio file is not in the .zip. the desc must contain a line that says "part 0 1 android" also without quotes. btw 1400 frames is not at all recommendable
draken78 said:
actually that really doesnt matter cuz i have some animation over 10 MB in a single folder and still working like a charm.....well like i said 2 folders is more like doing a loop out of one of them, having an AVI as boot animation that will be sweet is Google implement that feature in near future on Android using avi, mpg2 or mp4 as boot animation.
i heard (not sure) that Apex CAN run Boot animation with, i have no way to test it cuz im Running Liberty 1.5 (1.75 very soon) ....
P.S. if you want i can help you out with your animation just send me the Link of the video and ill create one and you can have that one as a reference for future animation of yours
Click to expand...
Click to collapse
I know apex can run audio at boot, 1.4.1 boots with the thx sound playing. I will send you a link later this evening with the avi. And thanks.
mattmartin77 said:
well you can have it be a minute long if you want, but i think that is a long time personally, my custom one is pushing 15 seconds and i think it is long. i was told audio doesnt work on liberty rom. the audio must be named "Android_Audio.mp3" without quotes. it is going to be in the same folder on your phone where the bootanimation.zip is kept, /data/local make sure that the audio file is not in the .zip. the desc must contain a line that says "part 0 1 android" also without quotes. btw 1400 frames is not at all recommendable
Click to expand...
Click to collapse
I could go with it being shorter, and it doesn't have to include audio, but I know it can.

Custom bootanimation

Hi, i try to create my own boot animation, but if i reboot my TF i can see only black screen. I look to almost all threads in this forum, but it still not works. I tried jpg and Png files. I will upload the files and you will be very nice ,if you say me whats wrong. I have tried make jpg from avi. First i convert every frame(it was something over 3000 jpg - 150 mb) so i set speed 30 frames per second, amd then i tried make image from every 1 sec, which means 104 pictures so i se speed 1 frame per second. I will not uplod the 150 MB files, because of my internet connection.
Thanks

Quick question about creating a boot animation

Hey everyone
I just got Cinema 4d and thought id create a boot animation for the TF101 as my first project. My question is how many frames, and what resolution would be the best. Im rendering at the moment 500-600 frames at 1280x800 each and i assume that will end up far to big also what's some good software to convert avi's to .png or .jpeg? (I think cinema 4d does it just havnt got that far)
Cheers
I've been searching for some boot animations, and downloaded a few, and I saw that most have the resolution set to:
Code:
1282x802
although some have it to:
Code:
1280x720
so I don't think the resolution you selected was the ideal xD. About the fps, they ranged between 10 to 40. So your fps I think is too much, but, I'm not really sure of the fps of a boot animation. Sorry .
In terms of the software you want, I've found this:
Click here
Hope that helped. Bye.
I have done quite a bit in terms of boot animations and i can say 30fps looks the best anything above that might have skipped frames or trouble loading quickly any lower and it will look jittery. As for res the going 2px above isnt necessarily anymore it was just a honeycomb issue afaik. And a big boot animation will maybe have 200~ frames
mrevankyle said:
I have done quite a bit in terms of boot animations and i can say 30fps looks the best anything above that might have skipped frames or trouble loading quickly any lower and it will look jittery. As for res the going 2px above isnt necessarily anymore it was just a honeycomb issue afaik. And a big boot animation will maybe have 200~ frames
Click to expand...
Click to collapse
Im currently rendering it at 640x400 id like it to be 300 frames because its not really a loopable animation but the file size ends up at like 60mb lol (at 500 frames). I packaged that with the desc file into a bootanimation.zip just to see it working (even if it was slow) but it always ended up playing the default android boot animation would this be because of the size? (Ive never changed the boot animation before)
JoinTheRealms said:
Im currently rendering it at 640x400 id like it to be 300 frames because its not really a loopable animation but the file size ends up at like 60mb lol (at 500 frames). I packaged that with the desc file into a bootanimation.zip just to see it working (even if it was slow) but it always ended up playing the default android boot animation would this be because of the size? (Ive never changed the boot animation before)
Click to expand...
Click to collapse
Where are you putting it? and whats the compression on your zip?
mrevankyle said:
Where are you putting it? and whats the compression on your zip?
Click to expand...
Click to collapse
Im on team eos jelly bean I put it in both data/local and system/media because i wasn't sure which one to use, the compression is set to store, im following the instructions from here: (http://forum.xda-developers.com/showthread.php?t=1122535) also im a bit unsure on the naming format I tring to find a batch file renamer to rename the files to android xxx is this right?
JoinTheRealms said:
Im on team eos jelly bean I put it in both data/local and system/media because i wasn't sure which one to use, the compression is set to store, im following the instructions from here: (http://forum.xda-developers.com/showthread.php?t=1122535) also im a bit unsure on the naming format I tring to find a batch file renamer to rename the files to android xxx is this right?
Click to expand...
Click to collapse
The naming convention does not matter at all it just does them in order eg a-z 1-99 ect
So it just does not play at all then? Not even a black screen just the old boot animation?
mrevankyle said:
The naming convention does not matter at all it just does them in order eg a-z 1-99 ect
So it just does not play at all then? Not even a black screen just the old boot animation?
Click to expand...
Click to collapse
Yeah it wiped the eos boot animation that was in system/media and now plays the animation with the gray "android" which some reflections on it
my new bootanimation.zip is 25.9 mb at 222 frames the images are all .pngs named android 001 to android 222
cheers
Sorry to waste your time dude, I got it to work just needed to add file permissions:silly:
Cheers
JoinTheRealms said:
Sorry to waste your time dude, I got it to work just needed to add file permissions:silly:
Cheers
Click to expand...
Click to collapse
That wasn't an issue with ICS so its weird that it would be in JB. but its good to know for future reference.
Looking forward to seeing what you have come up with
mrevankyle said:
That wasn't an issue with ICS so its weird that it would be in JB. but its good to know for future reference.
Looking forward to seeing what you have come up with
Click to expand...
Click to collapse
Ah that is strange, Im uploading it now (I made it for RaymanFX's rom) but its still 69 mb, how can i get it smaller it had been rendered at 640x400 at 42 dpi at 500 frames (It still plays fine though)
here's a link to it if anyone's interested (https://dl.dropbox.com/u/39805348/Boot Animation/bootanimation.zip) (still 69mb) it would be good to get some opinions on how to make it better
cheers

[GUIDE] All Related to Boot Animations !!!

A Guide To Support My Other Thread On How To Create Boot animations So It Is Easier For People To Understand And Grasp The Concept.
so they will ask less questions XD
CONTENTS
The Basics
Inside the bootanimation.zip file
Featured Boot Animations
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Basics :
The Android boot animation is contained within a an uncompressed zip file called bootanimation.zip that can be found in the media folder of the system partition i.e. /system/media on the internal memory of the device. This single file contains all the information required to play the boot animation, and is loaded automatically when the device boots. Thus, customizing or changing the boot animation is simply the process of editing or replacing this file.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Inside The Bootanimation.Zip File
This section is for those interested in finding out how the Android boot animation works. If you just want to install one without bothering yourself about what’s in the file, feel free to move on to the next section, as this one will get a little technical. Though it should be easy and simple enough for anyone to grasp.
While the Android boot animation might appear to be in a video format during playback, it is in fact a little different. If you extract the contents of the bootanimation.zip file to your computer, you will see:
A desc.txt file
A part0 folder (Contains PNG images named in incremental numbers)
More part1, part2 etc. folders (May or may not be present)
As you can see, bootanimation.zip merely contains one text file and one or more folders with PNG images. The animation is played simply by displaying the images in a sequence, and the text file defines how they are to be played. In essence, first the PNG files in the part0 folder are displayed one after the other and afterwards, those in the part1 file – if it exists – are displayed, again one after the other, and so on. All of this is defined in the desc.txt file.
Let’s see how it works in a little detail by taking a closer look at the contents of the file.
The folders
These contain PNG images named in numbers, starting from something like 0000.jpg or 00001.jpg and proceeding with increments of 1. There has to be at least one folder, and there is no known upper limit to the number of folders.
The desc.txt file
This file defines how the images in the folder(s) are displayed during the boot animation, in the following format:
Width Height Frame-rate
p Loop Pause Folder1
p Loop Pause Folder2
An example of a desc.txt file is:
320 480 30
p 1 0 part0
p 0 0 part1
As you can see, in the first line, 320 and 480 define the width and height of the boot animation in pixels for this example. This must be the same as the screen resolution of your device for the boot animation to properly play in full screen. 30 is the frame rate in fps (frames per second) i.e. number of images to display per second.
The second and third lines have a same format, start with p, which stands for a part of the animation and end in part0 or part1, which denotes the folder in which the images for that part are present.
The number after ‘p’ defines how many times this part will loop (repeat playback) before switching to the next part (if present). Specifying 0 would make the part loop indefinitely till the phone has fully booted.
The next number is for the pause, and is expressed in the number of frames, which can be translated into time by dividing it by the frame rate. A pause of 15 for example, would mean pausing for the time it takes 15 frames to play and since the frame rate is 30 frames per second, 15 frames would take half a second.
Translating all of this in case of the above example, the boot animation will play at a resolution of 320 by 480 pixels, at a frame rate of 30 fps, starting with the contents of part0 folder and after playing them in one loop, switching to contents of part1 folder and playing them continuously till the device fully boots.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
NOTE :
A note on resolution: Most high-end Android devices with large screens have a resolution of 480 x 800 pixels, and are referred to as HDPI. Some mid-range devices have a resolution of 320 x 480 pixels and are called MDPI. Lastly, the screen resolution of some low-end devices is 340 x 320 pixels and these are called LDPI, though these are either the really old Android phones or the cheapest Chinese models.
As a rule, a boot animation made for a lower resolution device will run fine on a high resolution one but it will be centered on the screen, with the extra screen space around it not being used. Using a high resolution boot animation on a low resolution device will result in the boot animation not fully displaying on the screen, with its outer parts being cut off due to being outside the screen’s bounds.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Featured Boot Animations
Link for some boot animations for ace plus : http://forum.xda-developers.com/showthread.php?t=2197483
reserved
reserved
May u make guide how to make boot splash? Like gaple rom and mb-14 kernel does?
Sent from my GT-S7500 using my finger
mohdradzi84 said:
May u make guide how to make boot splash? Like gaple rom and mb-14 kernel does?
Sent from my GT-S7500 using my finger
Click to expand...
Click to collapse
Thnxxx for d suggestion dude !
IM4U
Sent from my GT-S7500 using my finger.
OX Mobile Spy
Very useful tutorial, it is worth I came to learn
Harshraj said:
A Guide To Support My Other Thread On How To Create Boot animations So It Is Easier For People To Understand And Grasp The Concept.
so they will ask less questions XD
CONTENTS
The Basics
Inside the bootanimation.zip file
Featured Boot Animations
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Basics :
The Android boot animation is contained within a an uncompressed zip file called bootanimation.zip that can be found in the media folder of the system partition i.e. /system/media on the internal memory of the device. This single file contains all the information required to play the boot animation, and is loaded automatically when the device boots. Thus, customizing or changing the boot animation is simply the process of editing or replacing this file.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Inside The Bootanimation.Zip File
This section is for those interested in finding out how the Android boot animation works. If you just want to install one without bothering yourself about what’s in the file, feel free to move on to the next section, as this one will get a little technical. Though it should be easy and simple enough for anyone to grasp.
While the Android boot animation might appear to be in a video format during playback, it is in fact a little different. If you extract the contents of the bootanimation.zip file to your computer, you will see:
A desc.txt file
A part0 folder (Contains PNG images named in incremental numbers)
More part1, part2 etc. folders (May or may not be present)
As you can see, bootanimation.zip merely contains one text file and one or more folders with PNG images. The animation is played simply by displaying the images in a sequence, and the text file defines how they are to be played. In essence, first the PNG files in the part0 folder are displayed one after the other and afterwards, those in the part1 file – if it exists – are displayed, again one after the other, and so on. All of this is defined in the desc.txt file.
Let’s see how it works in a little detail by taking a closer look at the contents of the file.
The folders
These contain PNG images named in numbers, starting from something like 0000.jpg or 00001.jpg and proceeding with increments of 1. There has to be at least one folder, and there is no known upper limit to the number of folders.
The desc.txt file
This file defines how the images in the folder(s) are displayed during the boot animation, in the following format:
Width Height Frame-rate
p Loop Pause Folder1
p Loop Pause Folder2
An example of a desc.txt file is:
320 480 30
p 1 0 part0
p 0 0 part1
As you can see, in the first line, 320 and 480 define the width and height of the boot animation in pixels for this example. This must be the same as the screen resolution of your device for the boot animation to properly play in full screen. 30 is the frame rate in fps (frames per second) i.e. number of images to display per second.
The second and third lines have a same format, start with p, which stands for a part of the animation and end in part0 or part1, which denotes the folder in which the images for that part are present.
The number after ‘p’ defines how many times this part will loop (repeat playback) before switching to the next part (if present). Specifying 0 would make the part loop indefinitely till the phone has fully booted.
The next number is for the pause, and is expressed in the number of frames, which can be translated into time by dividing it by the frame rate. A pause of 15 for example, would mean pausing for the time it takes 15 frames to play and since the frame rate is 30 frames per second, 15 frames would take half a second.
Translating all of this in case of the above example, the boot animation will play at a resolution of 320 by 480 pixels, at a frame rate of 30 fps, starting with the contents of part0 folder and after playing them in one loop, switching to contents of part1 folder and playing them continuously till the device fully boots.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
NOTE :
A note on resolution: Most high-end Android devices with large screens have a resolution of 480 x 800 pixels, and are referred to as HDPI. Some mid-range devices have a resolution of 320 x 480 pixels and are called MDPI. Lastly, the screen resolution of some low-end devices is 340 x 320 pixels and these are called LDPI, though these are either the really old Android phones or the cheapest Chinese models.
As a rule, a boot animation made for a lower resolution device will run fine on a high resolution one but it will be centered on the screen, with the extra screen space around it not being used. Using a high resolution boot animation on a low resolution device will result in the boot animation not fully displaying on the screen, with its outer parts being cut off due to being outside the screen’s bounds.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Featured Boot Animations
Link for some boot animations for ace plus : http://forum.xda-developers.com/showthread.php?t=2197483
Click to expand...
Click to collapse
what about these codes :
320 480 36
p 1 0 part0
s 1 /system/media/poweron.ogg
p 0 0 part1
s none
could you explain those ???????

Categories

Resources