Using your app, I just tried making a landscape bootani from a 720p clip, set the width and height to 1280x720 so it wouldn't mess with the resolution and it resized it anyway, squished the video, .gif and the preview to 500x600, what gives? Is it only able to make bootanis at that res? Are you planning on adding a crop function?
I think what it's doing is encoding at that resolution and then resizing it to the proper res when installed via the desc.txt. Not to slam your work, obviously it's work in progress, but IMO that's kind of a weird way of doing it and won't look as good as if the frames were the correct size to begin with. I made a test bootani using yours and my methods and yours resulted in a 143MB file with squished aspect ratio, while mine came out to 30MB with the correct aspect. I uploaded the two test files here so you can check out what I mean. It's not as obvious when it's upscaled from 720p like this but if I made one from a 1080p source the differences would be glaring.
For some portrait bootanis I end up having to get a 1080p source, extract the frames, upscale them to a 1280px frame height and cropping the sides down to 720px. It's a lot of steps especially if the section I want to crop to is off center or a moving target, then I have to crop each frame slightly different. I had to do this in my Ingress bootani. I started with a left aligned crop and had to move ca 12 px to the right almost every frame in order to end up centered at the end of the clip.
I don't think it would be feasible to cram all that functionality into the main window but if you could build in a tool like JPEGcrops that can batch crop (but doesn't crash when you load too many frames at once LOL) that would be sweet. Also JPEGcrops seems to be more suited for cropping to print sizes, so it doesn't have the exact resolutions for 1280x720 nor 720x1280.
Quote:
Originally Posted by fbauto1
...
TO DO:
...
bootanimation.zip to video
I use PhotoLapse to make an .avi of the actual .jpg files from the part0 folder, that way you get an exact preview of what it's going to look like on your phone. Just set the FPS to match the bootani, mark every 1 frame instead of the default 2 and use the default XVID profile to encode. Take a look at that program to get an idea of what's involved to include that functionality into your app.
Last but not least a rotation tool would be sweet. Often the source I use just won't look good or make sense in portrait, so I opt for a landscape one in those situations.
Let me know if that makes any sense, or if I can help with anything, I'd be glad to beta test anything
Using your app, I just tried making a landscape bootani from a 720p clip, set the width and height to 1280x720 so it wouldn't mess with the resolution and it resized it anyway, squished the video, .gif and the preview to 500x600, what gives? Is it only able to make bootanis at that res? Are you planning on adding a crop function?
I think what it's doing is encoding at that resolution and then resizing it to the proper res when installed via the desc.txt. Not to slam your work, obviously it's work in progress, but IMO that's kind of a weird way of doing it and won't look as good as if the frames were the correct size to begin with. I made a test bootani using yours and my methods and yours resulted in a 143MB file with squished aspect ratio, while mine came out to 30MB with the correct aspect. I uploaded the two test files here so you can check out what I mean. It's not as obvious when it's upscaled from 720p like this but if I made one from a 1080p source the differences would be glaring.
For some portrait bootanis I end up having to get a 1080p source, extract the frames, upscale them to a 1280px frame height and cropping the sides down to 720px. It's a lot of steps especially if the section I want to crop to is off center or a moving target, then I have to crop each frame slightly different. I had to do this in my Ingress bootani. I started with a left aligned crop and had to move ca 12 px to the right almost every frame in order to end up centered at the end of the clip.
I don't think it would be feasible to cram all that functionality into the main window but if you could build in a tool like JPEGcrops that can batch crop (but doesn't crash when you load too many frames at once LOL) that would be sweet. Also JPEGcrops seems to be more suited for cropping to print sizes, so it doesn't have the exact resolutions for 1280x720 nor 720x1280.
I use PhotoLapse to make an .avi of the actual .jpg files from the part0 folder, that way you get an exact preview of what it's going to look like on your phone. Just set the FPS to match the bootani, mark every 1 frame instead of the default 2 and use the default XVID profile to encode. Take a look at that program to get an idea of what's involved to include that functionality into your app.
Last but not least a rotation tool would be sweet. Often the source I use just won't look good or make sense in portrait, so I opt for a landscape one in those situations.
Let me know if that makes any sense, or if I can help with anything, I'd be glad to beta test anything
This was actually a mistake. I had it setup to create video res according to what you set. Apparently, I uploaded the debug release (which has a hardcoded value of 500x600). I updated my upload.
On my tool, you can check "Create Preview Video". It will create an .mp4 video based on the bootanimation.zip files, which you can then play.
The file size is a bit finicky. I am using ffmpeg to extract images. Playing with jpg/png, it looks like jpg has a smaller size, so I added a new option so users can select which format they want.
Can you upload your video?
Anyway, I just did a quick beta5 to add your suggestions.
As I said, it's a "quick" one but should do the job.
This was actually a mistake. I had it setup to create video res according to what you set. Apparently, I uploaded the debug release (which has a hardcoded value of 500x600). I updated my upload.
On my tool, you can check "Create Preview Video". It will create an .mp4 video based on the bootanimation.zip files, which you can then play.
The file size is a bit finicky. I am using ffmpeg to extract images. Playing with jpg/png, it looks like jpg has a smaller size, so I added a new option so users can select which format they want.
Can you upload your video?
Anyway, I just did a quick beta5 to add your suggestions.
As I said, it's a "quick" one but should do the job.
Cool, thanks. Gonna give it a whirl in a few minutes. Here is the video file I used to compare the two methods.
Yep, .jpg is definitely going to be smaller. There is no real need for .png. The quality difference for our usage is negligible and doesn't warrant the increased file size.
Edit:
Ok, the filesize is definitely better with .jpg; down to ca 10.6MB
I would still recommend a cropping feature, it loses way too much detail when changing the aspect ratio (Plus obviously it squishes the frames). Also it seems the .gif preview gets corrupted at some point with beta5.
This is the behavior I noted when trying to overwrite/recreate an existing project:
NOT restarting the program and NOT manually deleting the My Project folder it fails to create the .gif and the progress meter does not show.
Restarting the program without deleting the My Project folder still fails to create the preview .gif but the progress bar works.
Restarting the program AND deleting the My Project folder lets it generate the preview.gif, although still corrupted.
Cool, thanks. Gonna give it a whirl in a few minutes. Here is the video file I used to compare the two methods.
Yep, .jpg is definitely going to be smaller. There is no real need for .png. The quality difference for our usage is negligible and doesn't warrant the increased file size.
Edit:
Ok, the filesize is definitely better with .jpg; down to ca 10.6MB
I would still recommend a cropping feature, it loses way too much detail when changing the aspect ratio (Plus obviously it squishes the frames). Also it seems the .gif preview gets corrupted at some point with beta5.
This is the behavior I noted when trying to overwrite/recreate an existing project:
NOT restarting the program and NOT manually deleting the My Project folder it fails to create the .gif and the progress meter does not show.
Restarting the program without deleting the My Project folder still fails to create the preview .gif but the progress bar works.
Restarting the program AND deleting the My Project folder lets it generate the preview.gif, although still corrupted.
I'm looking at fixing the preview gif, I am using imagemagick right now. Even with using manual command line interface, the result is the same so this might me an imagemagick issue (on the convert) since I am also optimizing the gif. If I take the optimization away, the gif would be tons of MB in size, which is kind of useless since it'll be hard to embed that on sites/forums/etc. But I will take another look.
About cropping, not sure what you actually want on this one. If I include the cropping feature, it would be not be automated anymore since you're more likely to crop every frame? What you can do instead is use the actual resolution of the video in your settings. Or flip it if you want landscape/portrait. For example, flipping 728x1280 to 1280x720.
I'm doing all these on free time, which I rarely have (usually only when I'm on the toilet, lol) so it may take some time. For now, it works except for the cropping you mentioned, which is an extra/optional feature anyway.
This doesn't create bootanimation.zip, just a folder named part 0 and the desc file. I compressed them to .zip myself but all I get is a black screen :/
This doesn't create bootanimation.zip, just a folder named part 0 and the desc file. I compressed them to .zip myself but all I get is a black screen :/
Would you like to know one of the things that really annoys me on a daily basis? Tough, … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?