Saturday, February 9, 2008

HowTo: Convert JPG Image Files to MPG Video Files

That title is very catchy. Yes, this entry aims to convert a few JPG image files and merged them into one MPG video file using a small handy linux tool. Read on.

What is Kipi?

Kipi (KDE Image Plugin Interface) is an effort to develop a common plugin structure for Digikam, KimDaBa, Showimg and Gwenview. Its aim is to share image plugins among graphic applications. Kipi is based on the old digiKam plugins implementation and is maintened by digiKam team.

One binary that is part of installing kipi is responsible for merging JPG image input files and having a video MPG output files.

Here are the steps to merge and convert multiple JPG files into MPG file?

Kipi Plugin Installation

First, install Kipi Plugins via yum
# yum -y install kipi-plugins

Binary Usage

# images2mpg -f SVCD -d 15 -S 420mpeg2 -o vertito.mpg -i 1.jpg 2.jpg 3.jpg

The above converts 3 jpg files (1.jpg,2.jpg,3.jpg) into a video output file (vertito.mpg) with the default settings of PAL SVCD format. The duration of each JPG image files to each other is 15 seconds.

Looking for NTSC video format?
Convert PNG image files into MPG video?

# images2mpg -n NTSC -t 2 -o vertito.mpg -i *.png

This time around, the transition period between PNG images is 2 second.

How about inserting a WAV sound files while converting JPG/PNG file into MPG video format?
# images2mpg -n NTSC -t 2 -w sweetchildomine.wav -o vertito.mpg -i *.png

Cool. Infact, this tool also supports DVD/XVCD/SVCD/VCD video format convertion so you can watch the movie even from your home DVD player.

That is all, enjoy.

Related Articles
Mind-Mapping Linux Tool

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy