The AVI2MPEG script is written in PERL and it uses the MJPEGTOOLS library.
This script can merge AVI files and convert them to MPEG-1. You can also add transition effects to your movie (see example movie 1 (4.6 MB), movie 2 (3.4 MB)).
Installation
Download and install the MJPEGTOOLS library. With this libary you can use one type of transition only - the "blend" transition. If you want to use the "random", "overlay" or "wipe"
transition you must install two files: overlay.flt and wipe.flt which are integral
part of the Linux Video Studio.
Download the AVI2MPEG script and copy it
to a directory where you keep binaries.
Use 'name' as the name for the file produced by this script
-t TRANS --transition=TRANS
When files are merged the TRANS transition will be used.
TRANS may be: 'blend', 'random', 'overlay1', 'overlay2',
'wipe1', 'wipe2', 'wipe3' or 'wipe4'. When TRANS is 'wipe1',
'wipe2', 'wipe3' or 'wipe4' you can use the following 2 options:
-n NUM --number=NUM
number of wipe columns/rows (default: 1)
-r NUM --reposition=NUM
disable/enable reposition. NUM may be: 0, 1, 2 or 3.
0: disable
1: only scene 1
2: only scene 2
3: both
Examples
Convert file.avi to file.mpg
avi2mpeg file.avi -o file.mpg
Merge file1.avi and file2.avi and convert merged file to file.mpg
avi2mpeg file1.avi file2.avi -o file.mpg
Merge file1.avi and file2.avi using the "random" transition and convert merged file to file.mpg
avi2mpeg file1.avi -t random file2.avi -o file.mpg