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
Related
Hi, I have this animation (gif) file that I want to have booting up when I turn on my atrix. Basically, three questions.
1. I have the animation in gif but also in a series of PNG's, which one works?
2. How do you add sound to an animation?
3. Does this phone use an xml or txt for instructions (probably linked to question 2 answer).
Thanks guys in advance
A boot animation consists of a zip file that contains a series of png or jpg images, along with a desc.txt file. Here's a snippet from the factory desc.txt for AT&T's Atrix:
# 540 wide, 960 high, 15 frames per second
540 960 15
# p means we're defining a part
# first number is repeat count, 0 means infinite
# second number is delay in frames before performing the next part
# so if you are playing 15 frames a second 15 would be... one second
# string defines the directory to load files from
# files will be loaded in order but names don't matter
# s defines a sound for a part
# sounds will be loaded from /system/media
# oggs with loop points will loop automatically
# only one sound will play at a time
# timing is driven by the part, not the sounds
# if you want no sound, leave blank
(I'm not sure if the sound has to be an OGG; an MP3 or a WAV might work. If not, google around for OGG converters.)
So, say you had a folder of pngs called MainAnimation, and a startup sound called StartupSound.ogg, your desc.txt would look like this:
540 960 15
p 1 0 MainAnimation
s StartupSound.ogg
Or, if you want the animation to loop (instead of just sitting on the last frame), your desc.txt would look like this:
540 960 15
p 0 0 MainAnimation
s StartupSound.ogg
After you make your desc.txt file, zip that up with your MainAnimation folder. The structure should look like this:
bootanimation.zip
|
|- MainAnimation
| |- 001.png
| |- 002.png
| |- 003.png
| |- 004.png
|
|- desc.txt
When you create your zip, use "storage" or "no compression" mode. The zip needs to act simply as a container, instead of trying to save on file size.
Now, all that's left to do is copy bootanimation.zip and StartupSound.ogg to your phone. I use Root Explorer, but any method that'll get the files on there is just fine. Both files go in the /system/media/ folder.
That was great, I will let you know if that works. BUT...two more questions, if I get it wrong, ie no boot animation, will my phone still boot up, other is, will my phone boot whenever it wants or say the png's are set to last 30 seconds playing at 15 frames a second, it will wait for the sequence to stop?
Thanks
The phone will boot just fine if bootanimation.zip is missing or messed up, it'll just keep showing the Dual-Core Technology splash screen until the phone boots. (btw, that Dual-Core splash screen always shows at the beginning; your custom animation will start after it)
Boot time isn't affected by the boot animation, from what I can tell. If you have a short animation, it'll either loop or pause on the last frame (depending on the option set in desc.txt) until the phone finishes booting. If you have an animation longer than the phone's boot sequence, the phone will interrupt the animation and load the home screen.
anyway way to remove splash screen just so we get more animation time?
Thanks
Not that I know of. There might be something you can do with a custom rom (completely guessing), but that's a bit beyond me.
Best of luck!
Sound DOES NOT have to be .ogg it can be any format that the phone is able to play.
Sent from my MB860 using XDA App
Tried every possible variation of this and I cannot get it to play sound
:sigh:
Animation plays, but no sound.
Also should be noted that for windows users, you CANNOT use notepad/wordpad to edit desc.txt. You should get Notepad++ and use that instead or it will screw up the linux formatting of the file.
Do u put soundfile.ogg in zip or in system/media? Thanks for the bootani 101 ^_^ looks to b in system/media but double checking JIC
Sent from my MB860 using XDA App
Got the files over to my phone, and the animation and sound plays, but the sound plays after the animation is finished. Anyway to get sound to play while animation is happening?
A good app to unzip, edit the desc.txt and anything else, and rezip is found on the market and is called "Boot Animatiom Installer".
On a side note, I am having a problem with the audio files during the boot.animation. They only play at ~30% volume level with any audio file. How do I configure/change this so that I can get the audio file to play at max volume level??
Ririal said:
Also should be noted that for windows users, you CANNOT use notepad/wordpad to edit desc.txt. You should get Notepad++ and use that instead or it will screw up the linux formatting of the file.
Click to expand...
Click to collapse
Hah! That explains alot, thank you. What about editing it within something like Root Explorer?
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?
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
Hello,
Im creating custom boot animation. As a reference im using stock Android 6.0 bootanimation that has 3 parts played as below:
Code:
720 720 30
c 1 0 part0
c 0 0 part1
c 1 0 part2
meaning 30fps, part0 plays just 1 time, part1 is looped till device ready and part2 is played once at the end.
I have all my PNG files prepared in a way that allows Android to read and display them (RGB mode, no interlacing, no transparent pixels etc) and i create my bootanimation.zip file using Boot Animation Factory
I replace original bootanimation why my custom animation and its not working as intended.
Phone plays only part0 of animation and it does it 1 time, then it plays part1 of animation and its looped but phone never plays part2 of animation.
Code:
700 700 30
p 1 0 part0
p 0 0 part1
p 1 0 part2
I know that first thing to check is to see if part2 PNG files are ok and i did it. I created bootanimations using only part2 and it worked, i created boot animation using only part 1 and part2 and it worked (i didnt even have to rename part1 to part0 and part2 to part1, the files were starting from 00094 something instead of 00000 and yet animation worked)
Code:
700 700 30
p 0 0 part1
p 1 0 part2
but as soon as i try to do a 3 part bootanimation it simply skips last folder.
The thing i noticed was that original bootanimation used "c" parameter while Boot Animation Factory uses "p" parameter so i opened zip file on my phone and edited desc.txt replacing p with c but after that boot animation stopped showing at all.
What am I doing wrong? Everything says it should work. The PNG files are right (tested part2 separately or combined with part1 and part0 combined with part1). 2 part animation works with part2 included.
I do my desc.txt file exactly same as stock android animation. I even tried to modify stock android animation and just replace graphics there with mine and its not working.
Im attaching bootanimation.zip that im working on, any help will be appreciated.
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