Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Friday, May 27, 2011

i7's Turbo-Boost in Action

The following steps in Ubuntu Natty show turbo-boost in action on my new laptop, which is quadcore 2.0GHz, boost-able to 2.8/2.9GHz:-

sudo apt-get install acpidump
sudo modprobe msr
sudo turbostat

Turbostat shows the following stat while my laptop is not doing heavy thing:-

CPU GHz TSC
avg 0.80 2.00
0 0.80 2.00
1 0.80 2.00
2 0.80 2.00
3 0.80 2.00
4 0.81 2.00
5 0.80 2.00
6 0.80 2.00
7 0.80 2.00

Let's make the processor's cores busy, open another terminal and enter:-

while :; do :; done

Now the stat shows:-

CPU GHz TSC
avg 2.86 2.00
0 2.77 2.00
1 2.87 2.00
2 2.70 2.00
3 2.74 2.00
4 2.77 2.00
5 2.81 2.00
6 2.76 2.00
7 2.77 2.00

Cores are working hard, enjoy!

Monday, March 28, 2011

Rip Movie from DVD iso to mpg

Using mencoder:-

mencoder input.iso -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac mp3lame -aid 0 -o output.mpg

Monday, August 16, 2010

Converting .ogv to .flv

I used GTK-recordMyDesktop to record step by step guide. The new recordMyDesktop produce .ogv as the output of the recording session. I tried to convert it to .flv using ffmpeg to the outcome is unusable. Finally, I use combination of mencoder and ffmpeg:-

mencoder -oac mp3lame -ovc lavc input.ogv -o middle.avi
ffmpeg -i middle.avi output.flv

This does what I want.

Tuesday, August 10, 2010

Enabling Logitech C250 Webcam in Skype 2.1 Beta (Ubuntu 10.04)

My Logitech C250 Webcam works with guvcviewer, but does not working directly with my Skype 2.1 Beta. When tested on the Video Device it just gave me a blank screen.

To make it work, I perform the following steps:-


cd /usr/bin
sudo mv skype skype.real
sudo touch skype
sudo gedit skype


And in the new skype file, type in the followings and saved:-


#!/bin/bash
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so XLIB_SKIP_ARGB_VISUALS=1 skype.real


close gedit and change the new skype file access:-


sudo chmod 755 skype


Restart your Skype and test again with Video Device.