Thursday, January 26, 2012

How to Create a Wallpaper Slideshow in Ubuntu 11.10

sudo add-apt-repository ppa:crebs/ppa
sudo apt-get update
sudo apt-get install crebs

Select your photos and name your slideshow.


After creating it. Crebs store it as xml file in $HOME/.crebs
Then rename & replace crebs xml file to background-1.xml in the path /usr/share/backgrounds/contest
Right mouse click on Desktop and select: Change Desktop background
Select your slideshow in the appearance window.


If for some reason the crebs repo doesn't work, you can always edit your /usr/share/backgrounds/contest/background-1.xml and change the images path for those which you want to use.

Don't forget to assign proper rights to the xml file. I use to set 666 with chmod command. (chmod 666 background-1.xml)

Enjoy it

Thursday, January 19, 2012

FFmpeg


Have you ever needed to increment audio volume level from any of your videos? ok, it is not too common but anyway, there is a powerful tool to help us whit that task. FFmpeg, so I'm going to set the steps here.

1. Remove sound from a video file.

 ffmpeg -i source_video.ogv -an -vcodec mpeg4 -b 1200k just_video.mp4

2. Extract audio from video.

ffmpeg -i source_video.ogv -ab 128k just_audio.mp3

3. Increment volume from an mp3 audio

ffmpeg -i just_audio.mp3 -vol 2000 -ab 128k overninethousand_audio.mp3

4. Encode to the final video.

ffmpeg -i overninethousand_audio.mp3 -i just_video.mp4 -vcodec mpeg4 -b 1200k final_video.mp4

That's it, you have a new video with over nine thousand level.

FFmpeg site