Animated Video Wallpaper

Plasma Wallpaper Plugins

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

12
7.2
Description:

Play video as your wallpaper!

http://www.youtube.com/watch?v=eLVSaqvshRc (ty nowardev)

Thanks Lukas Krejza, but Gryffus for SUSE packages :) Thanks dglent for the Mandriva rpm!

It installs TWO files which can be easily deleted by:
# rm /usr/lib/kde4/wallpapervideo.so
# rm /usr/share/kde4/services/video.desktop

KDE4 is usually installed to /usr/, if not then "kde4-config --prefix" will tell u where instead.

Messy unstyled code BUT its optimised and FAST ;) To KDE devs: It just looks messy but the code is fine- I can clean it up to fit KDE guidelines if needed.

We live in 2009. Computers can easily handle this. We should be prettifying our desktops a lot more.

If a kind person makes me packages I'll upload ;) thx

AVI
MKV
OGG
MPG
MPEG
OGV
MP4
OGM
ASF
FLV
WMV

Note: Small filesize videos => More compressed => Take longer to decode => Eat the most CPU

Best is raw AVI

genjix at gmail doat com (mangled for spammers ;)

sandsmark

9 years ago

As for what you can do, I guess testing it would be neat. I can maybe try doing that myself.

As for blitting speed in plasma (or whatever :-P), I guess you'll have to ask aseigo (or some other plasma hacker). There's probably some neat tricks you can use.

Report

symphony

9 years ago

All HD movies (720p and 1080p) work slow and show up as being blocky instead of smooth.

Any idea if this can be fixed?

Report

foxcm2000

9 years ago

I'm not a huge KDE 4 coder, but I noticed that Phonon has a built-in video widget and appears to be able to play back video that way... could that be a better way to implement the video playback?

I have some videos you recommended, and on my system (Core 2 @ 3.6 Ghz) the CPU usage is through the roof when the videos are in the background, but when I play the exact same videos in mplayer or VLC I get only single-digit % CPU usage.

Report

foxcm2000

9 years ago

I've done some more experimenting with the Phonon VideoWidget and I've had some success.

1. The good news: If you can get the widget working, nearly all of your messy code can be replaced by a simple Phonon widget that everybody already has installed anyway. The performance for video playback of a hi-def WMV file is much much better on my machine.

Here's a quick and dirty first version that does not integrate with the video chooser and does not loop the video:

Quote:
Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this);
Phonon::VideoWidget *videoWidget = new Phonon::VideoWidget();
Phonon::createPath(mediaObject, videoWidget);
videoWidget->setFullScreen(true);
videoWidget->setVisible(true);
mediaObject->enqueue(Phonon::MediaSource ("/hard_coded_path/Sureal.wmv"));
mediaObject->play ();



2. The bad news: In the ugly first version I've made, the video plays but I haven't figured out how to make the video widget be placed into the background behind all the windows and the plasmoids. Right now it creates a full-screen window that does not have any decorations that goes in front of the other windows instead of in the background of the containment.
If you can figure out how to make the widget display in the background containment, then it should be easy to add the code to interface your video configuration screen and get the videos to loop. The Phonon::MediaObject class controls the start/stop, queue, and selection of what video to play, while the Phonon::VideoWidget actually plays the content.

I hope this helps, this could be a really cool feature that integrates with KDE without having to do any ugly hacks.

Report

C

genjix

9 years ago

thats real cool. the only way though I know to update the wallpaper is that in KDE under plasma you get a 'repaint' event on update.

hit me up on email and lets cooperate on this.

it HAS to be passed to a QPainter object somehow. the rest is all easy (its easy to make a plasma wallpaper and ill show u how)

Report

C

genjix

9 years ago

genjix [att] gmail ;. com

Report

foxcm2000

9 years ago

Hey,
I'll send an email once I know more. Right now I'm stuck at the point you just mentioned: The wallpaper object requires you to override the paint method, but I have no clue how to get this to interface with the widget's video playback.
I'm actually disappointed they didn't make the wallpaper just a form of widget... it would be really easy to show pictures, video, or have any crazy widget that you can make with Qt that way.


cfox[zerofour] at gmail dot com

Report

C

genjix

9 years ago

agreed. the bottleneck is actually KDE/Qt internal. I pass it the unscaled data arrays from libav* and then THEY do the blitting and I assume software scaling which sucks.

Report

C

genjix

9 years ago

hah yeah thats cool. i suppose plasma is trying to emulate the concept of a gui when all they need to do is allow wallpaper as a widget. thatd be more generalised.

Report

foxcm2000

9 years ago

Here a quick example of the VideoWidget I'm talking about: http://phonon.kde.org/cms/1022

Report

dglent

9 years ago

package for mandriva i586
http://www.mandrivalinux.gr/rpm/2010.0/i586/plasma-video-wallpaper-1.7-1mlgr2010.0.i586.rpm


(i suppose that is normal that i dont have the sound in video :) )

Report

augegr

9 years ago

Hello and gratz on this nice module..

I believe you could solve all the performance problems if you had the option to select the video output (for example, one who has nvidia card could choose VDPAU as output) .

From what I understand, you are using Qt's X11 output? If configuration is not possible, you could at least use Xv.

Report

gryffus

9 years ago

I'm not sure if phonon already supports VDPAU and if yes, many distributions compile their xine packages (and other) without VDPAU support because it is still very unstable...
And also i'm not sure if phonon supports changes of video output drivers... I.E. i can switch video output driver in kaffeine 0.8 but cannot change it in kaffeine 1.0...

Report

augegr

9 years ago

Yes both xine and mplayer packages are built without vdpau enabled because that would make them depend on nvidia drivers, which is bad.

However recently nvidia released a standalone vdpau library and from now on vdpau will ship as a standalone library and not bundled with the drivers. I tried using phonon-mplayer here because my mplayer supports vdpau and I edited the config (.mplayer/config) to this:
vo="vdpau"
vc="ffwmv3vdpau"

to no avail.

It seems phonon-mplayer doesn't read this file at all and I haven't found which is the right one to edit. Could you possibly look into this too? I'm sure this will be used by many people who love this but hate the cpu usage it comes with.

Report

DexterMagnific

9 years ago

Hi,

This plasmoid is incredibly slow for compressed formats and eats all the cpu. Uncompressed videos are too large (exceeds 1 gig for videos available at http://www.dreamscene.org/) and also slow with 100% cpu.

as a comparison mplayer plays them smoothly and does not eat much cpu

Report

C

genjix

9 years ago

try the new version i just uploaded. i improved the timing code so they should run at correct speeds now for all formats

Report

sk8glad

9 years ago

Unfortunately, it's still very slow, and still eats all the cpu in this new version.

Report

scsi

9 years ago

I have new idea for don't be animated voide. we can capture video as picture random for wallpaper, it will save much cpu...

thanks...^^y

Report

scsi

9 years ago

I use locale zh_TW.UTF8, when I use video file with trandition chinese filename. It will work fail.

First I choice voide file like below:
http://img38.imageshack.us/img38/1148/screen20bn.png

press button OK, and I open setting window and it become:
http://img44.imageshack.us/img44/1449/screen21b.png

pls help...

Report

C

genjix

9 years ago

ah thats my fault. can u give me a link or email: genjix a gmail .. com (my email) a video so i can test?

Report

C

genjix

9 years ago

can u email me? i might have a patch

Report

scsi

9 years ago

I have email to u. If u don't receive the email. u can email to me. My email is scsichen a gmail .. com

thx... ^^y

Report

C

genjix

9 years ago

ok unicode support added :)

Report

gryffus

9 years ago

Thank you much for your fast replies.

Can we expect some improvements on video looping? What i mean is the flicker after end of video before it starts again, so it is usable almost only with videos with black start and end...

Report

C

genjix

9 years ago

yeah i fixed this for next release ;)

Report

12345678910
5
product-maker bnvlpl Aug 09 2017 9 excellent
product-maker MirceaKitsune Mar 26 2016 9 excellent
product-maker TommyCZ Jul 07 2011 9 excellent
product-maker nicotine Jul 03 2011 9 excellent
product-maker mdantej Dec 26 2010 9 excellent
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
1.7
updated Oct 06 2009
added Sep 16 2009
downloads today
70
page views today 70