Archive

Posts Tagged ‘quick tips’

Create an image preview from a movie on Ubuntu

December 1, 2009 Leave a comment

I’ve been stuck for a while by how to create a preview of a movie on Ubuntu, until i found this great link on ubuntu forum. Tristan_F made a simple bash script to allow to extract frames from a movie and combine them into a single picture to make a preview of the movie. It’s called Framegrabber.

Framegrabber depends on Mplayer and Imagemagick, so you might want to install it first if you don’t have one.

$ sudo apt-get install mplayer imagemagick

Next, get the Framegrabber script here.

Change file permission:
$ chmod +x framegrabber

Options :
-h : print help message
-n : number of stills to extract
-s : size of each stills

.
For example, i want to create an image preview of big buck bunny movie from Blender.
$ framegrabber bigbuckbunny.ogg

framegrabber will extract 20 stills of 100 pixels, this is default value of n and s option, you can change it to suit your need.

And this is the preview.

Big Buck Bunny Screenshot

Big Buck Bunny Screenshot

Note: There’s also GUI for framegrabber called framegrabgtk, you can give it a try.

Extract audio from video file using FFmpeg

October 5, 2009 2 comments

This quick tips show you how to get/extract audio from video file (eg: Youtube video) using FFmpeg on Ubuntu.

Install it from repository :
$ sudo apt-get install ffmpeg

Now, you’re ready :
$ ffmpeg -i video.ext audio.ext

Note : ext = file extension, depends on yours.
You might want to see ffmpeg man/help to see option(bitrate, sample rate, etc).

Categories: Tips 'n trick Tags: ,

Remove system beep on Ubuntu

September 7, 2009 Leave a comment

This quick tips show you how to remove system beep on ubuntu which sometimes annoying especially for laptop user.
Open up /etc/modprobe.d/blacklist, add this line :

blacklist pcspkr

Then, restart your computer to see the changes.

Or, if you just want to disable it temporarily, just run :

$ sudo modprobe -r pcspkr

That’s it.
Source here.

Follow

Get every new post delivered to your Inbox.