[Live wallpaper] Video Live Wallpaper 0.84b

Search This thread

pikipirs

Senior Member
Jan 23, 2009
316
85
android.ccpcreations.com
Another creation of mine.

This is a blank live wallpaper that allows you to set your own video as a live wallpaper animation!
Lots of codecs and formats are supported.

You need to have your own video (preferably in MPEG-1 or MPEG-2 or divx) and set it in the Live Wallpaper's preferences. You can also set an entire folder (and optionally all its subfolders) and the Live Wallpaper will choose between all videos inside (randomly or not, your choice).

If you don't have any videos to play with, try this one or this one or this one. Download them with your computer and transfer them on your Android device, or downoad with the Android device directly (a common download destination is /sdcard/download). Then select one of them with the Video Live Wallpaper. (BTW, these videos are all reencoded electric sheeps designed by cqfd93 of the electric sheep project. Original links to the sheeps: 22906|22706|22551)

The preferences of the Video Live Wallpaper include Help which should help you get started with making your video(s) as live-wallpaper-friendly as possible. A copy of the same help document can also be accessed from here if you want.


Use the following link on your android device or scan this QR code:
chart


Alternatively, you can get the Video Live Wallpaper from this link:
VLW-084b.apk [via mediafire]
Or you can get it from the bottom of this post if you are registrered to xda-developers.

0.84b is the most current version.
 

Attachments

  • VLW-080b.apk
    2.2 MB · Views: 2,873
  • VLW-082b.apk
    2.2 MB · Views: 1,256
  • VLW-083b.apk
    2.2 MB · Views: 1,146
  • VLW-084b.apk
    2.2 MB · Views: 4,638
Last edited:

pikipirs

Senior Member
Jan 23, 2009
316
85
android.ccpcreations.com
Changelog:

  • 0.84b, published 2011-03-20 [from post 36]
    - fixed a bug which prevented this app from working on certain devices like Dell Streak (thanks to guyver3869 for testing)
    - fixed a minor memory usage bug, still working on the bigger one
  • 0.83b, published 2010-12-06 [from post 30]
    - fixed a bug where memory consumption would slowly raise and eventually crashed the app
    - a new feature/setting called Rendering mode is introduced
  • 0.82b, published 2010-10-13 [from post 13]
    - fixed a bug where changelog kept showing in settings. Sorry about this!
  • 0.81b, published 2010-10-13 [from post 13]
    - fixed a bug where selecting certain directories would cause force closes
    - fixed a bug where selecting a different video file would have no effect (thanks to rod for discovering the bug)
    - corrected grammatical errors in help
  • 0.8b, published 2010-10-09 [from post 3]
    - initial version



Frequently asked questions - FAQ



I've downloaded and installed it. How do I open it?
This is a live wallpaper, not an app, you can't open it in a traditional sense. That is why the market button is disabled and that is why there is no app icon.
Follow this procedure to set it as a live wallpaper:
  • go to your home screen
  • press the menu button on your device
  • select "Wallpaper"
  • select "Live Wallpapers" *
  • search and select for "Video Live Wallpaper"
  • select "Settings" to see the settings and select the video file to play back. Then select "Set wallpaper" to activate it
(* if you don't see "Live Wallpapers" option in the "Select wallpaper from" menu then your device probably doesn't support Live Wallpapers)




My video loads but it's very jerky/looses frames alot, and it makes the home screen app very slow. What to do?
Not every codec and format is the best choice for the Video Live Wallpaper. The maximum video resolution recommended is 854x480, the maximum FPS at that resolution is 20. You can go as high as 30, but then decrease the resolution. MPEG-1, MPEG-2, MJPEG and MPEG-4 are the best codecs to choose for, while x263 and x264 are two of the worst possible ones because they are complex. If you have your video in a .flv or .mp4 format, try converting them to .mpg or .avi. In any case, please read this page (also embedded in the live wallpaper's help) to learn which kinds of videos are good and which aren't.




Why is there no sound? Will sound ever be supported?
Sound will likely never be supported, because:
  • it's extremely hard (with some codecs even impossible) to sync live wallpaper video to its audio due to how live wallpapers are handled (they often have to pause, they are often killed or slowed down by android in order to make swiping look smoother, for example, etc.)
  • sound just doesn't belong in an app that would play it all the time (or at least all the time that you're on a home screen). Shorter non-spontanious sounds are fine in a live wallpaper, but a long-lasting sound that never stops just starts to annoy the user after a while. Imagine for example you're in a meeting/at your job/in class and you can't even check the time on your phone without interrupting the said event. Imagine someone calling you and you suddenly hear two sounds out of your phone. Imagine listening to mp3s and being in the home menu at the same time. Sound just shoudn't be a part of any live wallpaper.




Please enable Move to SD.
No. Live wallpapers shouln't be movable to the SD. To learn why, read the official developer guide by Google.




Why does this Live wallpaper require internet access?
It's to download and show ads. They appear in the Live wallpaper's settings.




I can't find this on the market. Where is it?
Try to access it on your device directly using this link. If your Market can't find it then you probably have a version of Android prior to 2.1 which doesn't support Live Wallpapers.




I've downloaded the APK but I don't know how to/can't install it. How do I do it?
Try this:
  • on the phone, go to Settings -> Applications -> check "Unknown sources" *
  • find yourself a file browser on the Market. ASTRO File Manager is a good choice
  • open your file browser app, search for the APK file on your SD card and launch it. The phone should offer you a dialog to install the live wallpaper (or to select the Package Installer)
  • later when installed, go to home screen, press the menu key, select Wallpaper -> Live Wallpapers, search for Video Live Wallpaper
(* if your phone doesn't show the "Unknown sources" option, your carrier has disabled it. You might want to try one of the APK sideloading applications instead, like this one (you need a PC))




I can't download the APK. My phone says "Cannot download. The content is not supported on this phone". What to do?
Try downloading the app from the market first. If you can't, then download the APK with your computer and transfer the APK to the phone's SD Card. Or download with your phone using a downloading app, like ByteTornado.




This LWP is very cool. Thanks! How can I contribute?
In a number of ways:
 
Last edited:
  • Like
Reactions: bleached45

frankinstine

Senior Member
Feb 27, 2010
1,805
2,384
gplus.to
Awesome job, it does work with some mp4 videos too, just a thought, you can try adding zoom out and timed

Sent from my Nexus One using XDA App
 

ermacwins

Senior Member
Aug 25, 2009
5,920
1,025
trying this now, has google added slovenia to to market list (so you can release paid apps on market?)
 

pikipirs

Senior Member
Jan 23, 2009
316
85
android.ccpcreations.com
i havent seen too much battery drain with this so so far so good.

@OP are there any ideal settings for the best quality or performance?

Depends on the codec of the video. Mpeg1, mpeg2, mjpeg and divx are amongst the best, x264 (mp4) is not great because it's complex to decode. See help for details for the best codecs and resolutions/frame rates. Or just do the similar to the sample videos: 560x420 (4:3), 20 fps (can go up to 23.976), divx codec, 2500-3500 kbps.

Awesome job, it does work with some mp4 videos too, just a thought, you can try adding zoom out and timed

Sent from my Nexus One using XDA App

A tough one, since the rendering is heavily optimized on the idea that the entire video doesn't have to be decoded.

What do you mean by timed?

trying this now, has google added slovenia to to market list (so you can release paid apps on market?)

No, not yet (what a shame since we're in EU, we can't even buy paid apps yet).
 
Last edited:

pikipirs

Senior Member
Jan 23, 2009
316
85
android.ccpcreations.com
New version published:
  • 0.82b, published 2010-10-13
    - fixed a bug where changelog kept showing in settings. Sorry about this!
  • 0.81b, published 2010-10-13
    - fixed a bug where selecting certain directories would cause force closes
    - fixed a bug where selecting a different video file would have no effect (thanks to rod for discovering the bug)
    - corrected grammatical errors in help
 

cr6

Senior Member
Sep 27, 2010
106
45
Great app and premise, but imo doesn't really seem worth it since the quality of the video and fps have to be lowered so much. I'll go ahead and download this to see just how much the quality is degraded as I've got some great hidef videos I wouldn't mind having as wallpaper. Has this been an issue with anyone else?
 

pikipirs

Senior Member
Jan 23, 2009
316
85
android.ccpcreations.com
Great app and premise, but imo doesn't really seem worth it since the quality of the video and fps have to be lowered so much. I'll go ahead and download this to see just how much the quality is degraded as I've got some great hidef videos I wouldn't mind having as wallpaper. Has this been an issue with anyone else?

No reason not to try and experiment. For example on my Nexus, a 1280x720 video in MPEG-1 format will play at about 15 FPS if I disable frame skipping.

If I wanted it faster, I could crop it down to 720x720, which would then be able to be played at 20 FPS.

If I cropped it down further to 432x720 (which is the same ratio as the phone's 480x800 display), it would easily play at 25 FPS which is enough for my eyes, but still in full display's resolution.

If you know how to use ffmpeg, then this command will crop and convert a 720p .mkv file down to 720x720 at 20 FPS .mpg:
Code:
ffmpeg -i "720-input.mkv" -an -vcodec mpeg1video -vb 8000k -vf "crop=280:0:720:720" -r 20 "720-output.mpg"
Or this command would crop it to 432x720 at 25 FPS:
Code:
ffmpeg -i "720-input.mkv" -an -vcodec mpeg1video -vb 8000k -vf "crop=424:0:432:720" -r 25 "720-output.mpg"


I haven't had a problem with the fps of any of the 720p youtube vids I've downloaded, though 720p ends up looking pixellated. 270x360 looks better. Using http://www.youtube.com/watch?v=92jyNSaNmT4 and it looks pretty good.

Wicket video! :)

Flv and Mp4, while they work, are not the best formats to use with VLW. Try to convert them to .avi (divx) or .mpg (MPEG-1) for even better results.

Find your own way to convert, or use the free ffmpeg tool in one of the following two ways:

Code:
ffmpeg -i "original.flv" -an -vcodec mpeg4 -vb 8000k "converted.avi"
ffmpeg -i "original.flv" -an -vcodec mpeg1video -vb 8000k "converted.mpg"

(bitrate is overrated at 8000k, but the quality will probably be very good)
 
Last edited:

Bryce2010

Senior Member
Feb 15, 2010
364
9
best video specs

Hello pikipirs et all! :)

I donatated $10 bucks because I really like the idea of true video wallpaper on my N1 and hope that you continue to develop and improve the app!

One can find lots of great video loops on the net that can be used. Some of them look great (i.e. Wallpaper attachment). Others look poor quality (i.e fs21 attachment). And others stop all together sometimes.

So I guess what I would like is simple, step by step instructions on how to convert or optimize a video so that it looks great and runs smoothly. I've tried using MediaCoder for example to convert the videos that look bad to MPEG1 (which you indicated in the help section was the best format) but they still look bad. What is the best format? Size? Resolution? Frame-rate? So that it looks perfect and how can one convert a video to these specifications? Can any video, formatted correctly, look good?

Oh and another suggestion would be, instead of the app randomly picking videos and switching them all the time, what about the option to only switch it when you 'wake-up' the device so that it doesn't cut into another video while you are viewing it but continues to loop.

Thanks again for the great app. Like I said some vids I've found look great but still, it would be nice to know how to make any video look as good.
 

Attachments

  • examples.zip
    1 MB · Views: 88

pikipirs

Senior Member
Jan 23, 2009
316
85
android.ccpcreations.com
Hello pikipirs et all! :)

Hey.

I donatated $10 bucks because I really like the idea of true video wallpaper on my N1 and hope that you continue to develop and improve the app!

Thanks.

One can find lots of great video loops on the net that can be used. Some of them look great (i.e. Wallpaper attachment). Others look poor quality (i.e fs21 attachment). And others stop all together sometimes.

Be prepared for a long answer. :p

This is subjective, I guess. The video will show in as good a quality as it actually is. The VLW (video live wallpaper) always zooms into a video in such a way that it covers the entire height of the display, while its ratio is not changed. The video's width is then used as scrolling surface so it shifts when you swipe between home screens.

The first video you posted has a vertical resolution of 480. This resolution fits very well in the height of a small mobile display (whatever resolution it might be) so you don't see alot of pixels. In fact, 480 is the maximum vertical resolution that I recommend for VLW, as higher ones might start causing the animation to play slower/skip video frames.

The second video you posted has a vertical resolution of 220. This gets close to the lower bound of acceptible pixel density for your eyes. While this is good on your phone's battery (VLW doesn't have to struggle as much to decode the video), it's not good on you eyes, that is, you can see video pixels which spoils the experience. One idea that I would have for the second video is maybe to reencode it rotated by 90 degrees. This way its vertical resolution will become 400 (current width) which would be easier on the eyes. (hold back on the rotating/reencoding part a little longer, as I plan on adding an option to rotate videos in the VLW).

Videos may play slower or even stop if they are too large for the underpowered phone's processor to handle. If you've been using computers for the last 10 years, then you should remember the ones that struggled to even play divx files properly. Some computers (like netbooks) have problems playing back HD content even today. The same is true for your phone. While a common divx should be handled by VLW just fine, any HD content (720p or 1080p) is way to much to handle. I guess what I'm trying to say is, don't go overboard with the resolution and don't expect miracles from your phone's processor.

So I guess what I would like is simple, step by step instructions on how to convert or optimize a video so that it looks great and runs smoothly. I've tried using MediaCoder for example to convert the videos that look bad to MPEG1 (which you indicated in the help section was the best format) but they still look bad. What is the best format? Size? Resolution? Frame-rate? So that it looks perfect and how can one convert a video to these specifications? Can any video, formatted correctly, look good?

There is no easy way to describe how to convert videos, as it almost always depends on the original video itself. As I said, a video is as good as it actually is. Reencoding, converting and/or enlarging it digitally won't make it any nicer.

Format changing is reasonable when you are dealing with resolutions and sizes that become hard to handle by the phone. Imagine a video with 854x480 at 30 FPS (your usual 480p video on youtube, for example). VLW has to process 854*480*30=12,297,600 pixels each second if it wants to play the video in real time. If this video is in h264 (which 480p youtube videos with .mp4 extension are) then it's even worse because h264 codec is very complex, which makes the processing part even harder. That's why I recommend reencoding to a less complex format, like mpeg-1 or mpeg-4 (divx).

Best format globally in my opinion is divx (mpeg-4 .avi). It represents a good compromise between complexity and size for a given quality. If you want less complexity (=more battery live), go with videoCD format (mpeg-1 .mpg) which will require larger files for the same quality, but is easier to decode for VLW.

Also one other thing to note, .mpg files need a bit of time to reload. This makes them useless for looping animations as the animation appears to freeze when looping. This is true for a lot of other formats/codecs as well. Divx doesn't have that pause (well it does, but it's amost unnoticable).

Resolution/frame rate is another tough one. The easiest way of going about it is to calculate the processed pixels per second, as I did above for the youtube video example. You can find all the help on how to do this in the help section. If you get your videos from standard 16:9 or 4:3 sources, then a couple of good resolution/framerate combinations are described in the help section. I recommend 360p (640x360 for 16:9, 480x360 for 4:3 videos, both at 30 FPS) or 480p (854x480 for 16:9, 640x480 for 4:3 videos, both at 25 FPS) in divx format. Remember once again - the biggest factor in the appearent quality of a perfectly reencoded video, is its vertical resolution. be between 360 and 480 and you'll be fine. The second biggest factor is frame rate, hold that one between 30FPS for 360p and 25FPS for 480p.

Oh and another suggestion would be, instead of the app randomly picking videos and switching them all the time, what about the option to only switch it when you 'wake-up' the device so that it doesn't cut into another video while you are viewing it but continues to loop.

Thanks again for the great app. Like I said some vids I've found look great but still, it would be nice to know how to make any video look as good.

So you suggest adding an option to keep looping the same (but randomly choosen) video, and switch to another video only when the live wallpaper unpauses? That's a good idea. To a todo list... :)

PS: Are you on a mac or on Windows? I might be able to make a couple of simple scripts that use FFmpeg to convert videos with common ratios to better sizes/formats.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    Another creation of mine.

    This is a blank live wallpaper that allows you to set your own video as a live wallpaper animation!
    Lots of codecs and formats are supported.

    You need to have your own video (preferably in MPEG-1 or MPEG-2 or divx) and set it in the Live Wallpaper's preferences. You can also set an entire folder (and optionally all its subfolders) and the Live Wallpaper will choose between all videos inside (randomly or not, your choice).

    If you don't have any videos to play with, try this one or this one or this one. Download them with your computer and transfer them on your Android device, or downoad with the Android device directly (a common download destination is /sdcard/download). Then select one of them with the Video Live Wallpaper. (BTW, these videos are all reencoded electric sheeps designed by cqfd93 of the electric sheep project. Original links to the sheeps: 22906|22706|22551)

    The preferences of the Video Live Wallpaper include Help which should help you get started with making your video(s) as live-wallpaper-friendly as possible. A copy of the same help document can also be accessed from here if you want.


    Use the following link on your android device or scan this QR code:
    chart


    Alternatively, you can get the Video Live Wallpaper from this link:
    VLW-084b.apk [via mediafire]
    Or you can get it from the bottom of this post if you are registrered to xda-developers.

    0.84b is the most current version.
    1
    Changelog:

    • 0.84b, published 2011-03-20 [from post 36]
      - fixed a bug which prevented this app from working on certain devices like Dell Streak (thanks to guyver3869 for testing)
      - fixed a minor memory usage bug, still working on the bigger one
    • 0.83b, published 2010-12-06 [from post 30]
      - fixed a bug where memory consumption would slowly raise and eventually crashed the app
      - a new feature/setting called Rendering mode is introduced
    • 0.82b, published 2010-10-13 [from post 13]
      - fixed a bug where changelog kept showing in settings. Sorry about this!
    • 0.81b, published 2010-10-13 [from post 13]
      - fixed a bug where selecting certain directories would cause force closes
      - fixed a bug where selecting a different video file would have no effect (thanks to rod for discovering the bug)
      - corrected grammatical errors in help
    • 0.8b, published 2010-10-09 [from post 3]
      - initial version



    Frequently asked questions - FAQ



    I've downloaded and installed it. How do I open it?
    This is a live wallpaper, not an app, you can't open it in a traditional sense. That is why the market button is disabled and that is why there is no app icon.
    Follow this procedure to set it as a live wallpaper:
    • go to your home screen
    • press the menu button on your device
    • select "Wallpaper"
    • select "Live Wallpapers" *
    • search and select for "Video Live Wallpaper"
    • select "Settings" to see the settings and select the video file to play back. Then select "Set wallpaper" to activate it
    (* if you don't see "Live Wallpapers" option in the "Select wallpaper from" menu then your device probably doesn't support Live Wallpapers)




    My video loads but it's very jerky/looses frames alot, and it makes the home screen app very slow. What to do?
    Not every codec and format is the best choice for the Video Live Wallpaper. The maximum video resolution recommended is 854x480, the maximum FPS at that resolution is 20. You can go as high as 30, but then decrease the resolution. MPEG-1, MPEG-2, MJPEG and MPEG-4 are the best codecs to choose for, while x263 and x264 are two of the worst possible ones because they are complex. If you have your video in a .flv or .mp4 format, try converting them to .mpg or .avi. In any case, please read this page (also embedded in the live wallpaper's help) to learn which kinds of videos are good and which aren't.




    Why is there no sound? Will sound ever be supported?
    Sound will likely never be supported, because:
    • it's extremely hard (with some codecs even impossible) to sync live wallpaper video to its audio due to how live wallpapers are handled (they often have to pause, they are often killed or slowed down by android in order to make swiping look smoother, for example, etc.)
    • sound just doesn't belong in an app that would play it all the time (or at least all the time that you're on a home screen). Shorter non-spontanious sounds are fine in a live wallpaper, but a long-lasting sound that never stops just starts to annoy the user after a while. Imagine for example you're in a meeting/at your job/in class and you can't even check the time on your phone without interrupting the said event. Imagine someone calling you and you suddenly hear two sounds out of your phone. Imagine listening to mp3s and being in the home menu at the same time. Sound just shoudn't be a part of any live wallpaper.




    Please enable Move to SD.
    No. Live wallpapers shouln't be movable to the SD. To learn why, read the official developer guide by Google.




    Why does this Live wallpaper require internet access?
    It's to download and show ads. They appear in the Live wallpaper's settings.




    I can't find this on the market. Where is it?
    Try to access it on your device directly using this link. If your Market can't find it then you probably have a version of Android prior to 2.1 which doesn't support Live Wallpapers.




    I've downloaded the APK but I don't know how to/can't install it. How do I do it?
    Try this:
    • on the phone, go to Settings -> Applications -> check "Unknown sources" *
    • find yourself a file browser on the Market. ASTRO File Manager is a good choice
    • open your file browser app, search for the APK file on your SD card and launch it. The phone should offer you a dialog to install the live wallpaper (or to select the Package Installer)
    • later when installed, go to home screen, press the menu key, select Wallpaper -> Live Wallpapers, search for Video Live Wallpaper
    (* if your phone doesn't show the "Unknown sources" option, your carrier has disabled it. You might want to try one of the APK sideloading applications instead, like this one (you need a PC))




    I can't download the APK. My phone says "Cannot download. The content is not supported on this phone". What to do?
    Try downloading the app from the market first. If you can't, then download the APK with your computer and transfer the APK to the phone's SD Card. Or download with your phone using a downloading app, like ByteTornado.




    This LWP is very cool. Thanks! How can I contribute?
    In a number of ways:
    1
    New version published:
    • 0.84b, published 2011-03-20
      - fixed a bug which prevented this app from working on certain devices like Dell Streak (thanks to guyver3869 for testing)
      - fixed a minor memory usage bug, still working on the bigger one