Home > GNU/Linux, Tips 'n trick > Create an image preview from a movie on Ubuntu

Create an image preview from a movie on Ubuntu

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.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: