maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Poor man's live wallpaper (https://talk.maemo.org/showthread.php?t=71193)

nicolai 2011-03-18 17:40

Poor man's live wallpaper
 
Not that useful and a battery killer for sure.
You need the packages
x11-utils
gst-tools
and maybe
gstreamer0.10-plugins-good
gstreamer0.10-plugins-good-extra

- open the lenscover and close the camera app
- open a xterm and enter:
gst-launch-0.10 v4l2camsrc driver-name=omap3cam ! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! xvimagesink
- open another xterm and enter:
xprop -name "gst-launch-0.10" -f _HILDON_LIVE_DESKTOP_BACKGROUND 32i -set _HILDON_LIVE_DESKTOP_BACKGROUND -1

:-)


other gst-launch commands:
gst-launch-0.10 v4l2camsrc driver-name=omap3cam ! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! quarktv ! xvimagesink

Audio:
gst-launch-0.10 pulsesrc ! audioconvert ! monoscope ! ffmpegcolorspace ! xvimagesink

Nicolai

aligatro 2011-03-18 19:01

Re: Poor man's live wallpaper
 
1 Attachment(s)
it works!

apt-get couldn't find gst-tools, but I installed gstreamer-tools instead.

arora.rohan 2011-03-18 19:34

Re: Poor man's live wallpaper
 
whats the cpu usage with this ? nice little trick!

MohammadAG 2011-03-18 20:15

Re: Poor man's live wallpaper
 
Code:

wmctrl -i -r $(wmctrl -l | grep gst-launch-0.10 | awk '{print $1}') -b add,fullscreen
to make it fullscreen, nice trick, never knew about that X11 flag :D

Helmuth 2011-03-18 20:32

Re: Poor man's live wallpaper
 
Mmmh, 100% transparent wallpaper. :D

I like it. ;)

aligatro 2011-03-18 20:43

Re: Poor man's live wallpaper
 
Quote:

Originally Posted by arora.rohan (Post 970541)
whats the cpu usage with this ? nice little trick!

~20 percent

retsaw 2011-03-18 22:01

Re: Poor man's live wallpaper
 
What about using the front cam?
Code:

gst-launch-0.10 v4l2camsrc device=/dev/video1 driver-name=omap3cam ! video/x-raw-yuv,width=400,height=240 ! ffmpegcolorspace ! videobalance brightness=0.4 contrast=1.2 ! videoflip method=horizontal-flip ! xvimagesink force-aspect-ratio=true

bzbnd 2011-03-19 01:06

Re: Poor man's live wallpaper
 
i cant install gst-tools or gstreamer-tools . there are some errors in xterm . could u plz help me

shuraizo 2011-03-19 01:44

Re: Poor man's live wallpaper
 
Quote:

Originally Posted by bzbnd (Post 970690)
i cant install gst-tools or gstreamer-tools . there are some errors in xterm . could u plz help me

Code:

sudo gainroot
apt-get install gstreamer-tools

If it says can't fetch or something then try again, it works for me..


But this doesn't work for me Nicolai, after the second code it just stops there showing ">" And the wallpaper doesn't change...
It does show some white dots though...

I already open the camera lens and the gstreamer is running, but it doesn't change the wallpaper, do i need to do something first?

F2thaK 2011-03-19 02:31

Re: Poor man's live wallpaper
 
so whens the package going to be in devel repo as an application? :D


edit: I cant do step 3...it doesnt work for me, it comes up with xprop useage codes.

dammit. I was going to make a video of it..


All times are GMT. The time now is 20:11.

vBulletin® Version 3.8.8