Home / OldFiles
Name Modified Size InfoDownloads / Week
Parent folder
mjpegtools_1.9.0rc3.zip 2008-01-06 4.6 MB
mjpegtools-1.9.0rc3.tar.gz 2007-12-04 2.5 MB
mjpegtools-1.9.0rc3-1.src.rpm 2007-12-04 2.7 MB
mjpegtools-devel-1.9.0rc3-1.i586.rpm 2007-12-04 1.4 MB
mjpegtools-1.9.0rc3-1.i586.rpm 2007-12-04 2.0 MB
mjpegtools-1.9.0rc2.tar.gz 2007-03-04 2.6 MB
mjpegtools-1.9.0rc2-1.src.rpm 2007-03-04 2.6 MB
mjpegtools-devel-1.9.0rc2-1.i586.rpm 2007-03-04 1.3 MB
mjpegtools-1.9.0rc2-1.i586.rpm 2007-03-04 2.0 MB
mjpegtools-1.9.0rc1.tar.gz 2007-02-04 2.3 MB
mjpegtools-devel-1.9.0rc1-1.i586.rpm 2007-02-04 1.3 MB
mjpegtools-1.9.0rc1-1.src.rpm 2007-02-04 2.3 MB
mjpegtools-1.9.0rc1-1.i586.rpm 2007-02-04 2.0 MB
mjpegtools-1.6.3-rc3.tar.gz 2005-08-27 1.5 MB
mjpegtools-1.6.3-rc2.tar.gz 2005-08-12 1.5 MB
mjpegtools-devel-1.6.2.90-1.i386.rpm 2005-05-25 2.0 MB
mjpegtools-1.6.2.90-1.src.rpm 2005-05-25 2.1 MB
mjpegtools-1.6.2.90-1.i386.rpm 2005-05-25 851.5 kB
mjpegtools-1.6.3-rc1.tar.gz 2005-05-23 1.5 MB
jpeg-mmx-0.1.6.tar.gz 2005-03-26 597.4 kB
jpeg-mmx-0.1.5.tar.gz 2004-02-03 578.4 kB
mjpegtools-i686_1.6.1.93-1woody0_i386.deb 2004-01-17 543.0 kB
libmjpegtools-i6860_1.6.1.93-1woody0_i386.deb 2004-01-17 291.6 kB
libmjpegtools-i686-dev_1.6.1.93-1woody0_i386.deb 2004-01-17 1.5 MB
mjpegtools-devel-1.6.1.93-1.i386.rpm 2004-01-16 2.0 MB
mjpegtools-1.6.1.93.tar.gz 2004-01-16 1.3 MB
mjpegtools-1.6.1.93-1.src.rpm 2004-01-16 1.8 MB
mjpegtools-1.6.1.93-1.i386.rpm 2004-01-16 752.3 kB
mjpegtools-devel-1.6.1.92-1.i386.rpm 2003-11-27 1.2 MB
mjpegtools-1.6.1.92.tar.gz 2003-11-27 1.2 MB
mjpegtools-1.6.1.92-1.src.rpm 2003-11-27 1.8 MB
mjpegtools-1.6.1.92-1.i386.rpm 2003-11-27 737.2 kB
mjpegtools-devel-1.6.1.91-1.i386.rpm 2003-11-25 1.2 MB
mjpegtools-1.6.1.91.tar.gz 2003-11-25 1.2 MB
mjpegtools-1.6.1.91-1.src.rpm 2003-11-25 1.8 MB
mjpegtools-1.6.1.91-1.i386.rpm 2003-11-25 737.0 kB
mjpegtools-devel-1.6.1.90-1.i386.rpm 2003-08-23 132.0 kB
mjpegtools-1.6.1.90-1.i386.rpm 2003-08-23 1.0 MB
mjpegtools-1.6.1.90-1.src.rpm 2003-08-23 1.9 MB
mjpegtools-1.6.1.90.tar.gz 2003-08-23 1.2 MB
driver-zoran-0.9.3.tar.gz 2003-03-16 112.9 kB
driver-zoran-0.9.2.tar.gz 2003-03-15 112.8 kB
mjpegtools_1.6.1-1_debsrc.tar.gz 2002-12-09 8.2 MB
mjpegtools-dev_1.6.1-1_i386.deb 2002-12-09 110.5 kB
mjpegtools_1.6.1-1_i386.deb 2002-12-09 1.1 MB
mjpegtools-devel-1.6.1-1.i386.rpm 2002-12-09 119.2 kB
mjpegtools-1.6.1-1.i386.rpm 2002-12-09 1.3 MB
mjpegtools-1.6.1-1.src.rpm 2002-12-09 2.3 MB
mjpegtools-1.6.1.tar.gz 2002-12-09 976.2 kB
mjpegtools-1.6.0-1.src.rpm 2002-05-06 2.3 MB
mjpegtools-1.6.0-1.i386.rpm 2002-05-06 1.2 MB
mjpegtools-devel-1.6.0-1.i386.rpm 2002-05-06 116.6 kB
quicktime4linux-1.4-patched-2.tar.gz 2002-05-06 575.4 kB
mjpegtools-1.6.0.tar.gz 2002-05-06 929.0 kB
mjpegtools_1.6.0-1_i386.deb 2002-05-06 921.9 kB
libmovtar-0.1.3.tar.gz 2002-05-06 185.8 kB
mjpegtools-dev_1.6.0-1_i386.deb 2002-05-06 157.8 kB
jpeg-mmx-0.1.4.tar.gz 2002-05-06 582.4 kB
mjpegtools_1.6.0-1_debsrc.tar.gz 2002-05-06 2.9 MB
mjpegtools_1.6.0-rc2_srcdeb.tar.gz 2002-04-26 2.8 MB
mjpegtools-dev_1.6.0-rc2_i386.deb 2002-04-26 157.7 kB
mjpegtools_1.6.0-rc2_i386.deb 2002-04-26 772.1 kB
mjpegtools-devel-1.6.0-rc2.i386.rpm 2002-04-25 116.6 kB
mjpegtools-1.6.0-rc2.i386.rpm 2002-04-25 1.1 MB
mjpegtools-1.6.0-rc2.src.rpm 2002-04-25 2.3 MB
mjpegtools-1.6.0-rc2.tar.gz 2002-04-25 923.5 kB
jpeg-mmx-0.1.4-rc1.tar.gz 2002-04-17 582.4 kB
libmovtar-0.1.3-rc1.tar.gz 2002-04-17 203.4 kB
mjpegtools-devel-1.6.0-rc1.i386.rpm 2002-04-17 116.6 kB
mjpegtools-1.6.0-rc1.i386.rpm 2002-04-17 1.1 MB
mjpegtools-1.6.0-rc1.src.rpm 2002-04-17 2.3 MB
mjpegtools-1.6.0-rc1.tar.gz 2002-04-17 922.5 kB
mjpegtools-dev_1.6.0-beta2_i386.deb 2002-02-12 153.1 kB
mjpegtools_1.6.0-beta2_i386.deb 2002-02-12 1.1 MB
mjpegtools-devel-1.6.0-beta2.i386.rpm 2002-02-12 112.4 kB
mjpegtools-1.6.0-beta2.i386.rpm 2002-02-12 941.7 kB
mjpegtools-1.6.0-beta2.src.rpm 2002-02-12 2.3 MB
mjpegtools-1.6.0-beta2.tar.gz 2002-02-12 916.0 kB
mjpegtools_1.6.0-beta1_i386.deb 2002-01-05 1.2 MB
mjpegtools-devel-1.6.0-beta1.i386.rpm 2002-01-05 348.4 kB
mjpegtools-1.6.0-beta1.i386.rpm 2002-01-05 947.1 kB
mjpegtools-1.6.0-beta1.src.rpm 2002-01-05 2.5 MB
mjpegtools-1.6.0-beta1.tar.gz 2002-01-05 1.1 MB
mpeg2dec-0.2.1-mjpegtools-0.7.tar.gz 2001-12-22 280.0 kB
mjpegtools_1.5-20011214_i386.deb 2001-12-14 936.5 kB
mjpegtools-devel-1.5-20011214.i386.rpm 2001-12-14 339.7 kB
mjpegtools-1.5-20011214.i386.rpm 2001-12-14 1.0 MB
mjpegtools-1.5-20011214.src.rpm 2001-12-14 2.2 MB
mjpegtools-1.5-20011214.tar.gz 2001-12-14 1.0 MB
mjpegtools-1.5-20011611.tar.gz 2001-11-16 1.0 MB
mjpegtools-1.5-20011611.src.rpm 2001-11-16 2.2 MB
mjpegtools-1.5-20011611.i386.rpm 2001-11-16 2.5 MB
mpeg2dec-0.2.1-mjpegtools-0.5.tar.gz 2001-11-04 259.7 kB
mjpegtools-1.4.1-1.i686.rpm 2001-09-30 2.6 MB
yuvscaler.tar.gz 2001-09-22 12.8 kB
pal-vid-vcd.mpg 2001-09-22 929.6 kB
quicktime4linux-1.4-patched.tar.gz 2001-09-22 560.5 kB
pal-vid-svcd.mpg 2001-09-22 1.9 MB
pal-tuned.mpg 2001-09-22 6.0 MB
ntsc-vid-svcd.mpg 2001-09-22 1.1 MB
ntsc-vid-vcd.mpg 2001-09-22 567.1 kB
mpeg2dec-patched.tar.gz 2001-09-22 223.8 kB
mpeg2dec-0.2.0.patch 2001-09-22 9.0 kB
mpeg2dec-0.2.1-mjpegtools.tar.gz 2001-09-22 200.1 kB
mpeg2dec-0.2.0-mjpegtools.tar.gz 2001-09-22 223.8 kB
mpeg2dec-0.1.8-mjpegtools.tar.gz 2001-09-22 183.1 kB
mpeg1-digital.mpg 2001-09-22 7.0 MB
mjpegtools-1.4pre1-1.suse7.1.i386.rpm 2001-09-22 2.1 MB
mjpegtools-1.4pre1-1.src.rpm 2001-09-22 1.3 MB
mjpegtools-1.4pre1-1.rh7.0.i386.rpm 2001-09-22 2.3 MB
mjpeg_howto.txt 2001-09-22 31.9 kB
jpeg-mmx-0.1.0.tar.gz 2001-09-22 567.3 kB
dc10+.patch 2001-09-22 1.6 kB
README.lavpipe 2001-09-22 10.1 kB
mjpegtools_1.4.1-2i686_i386.deb 2001-06-28 1.6 MB
mjpegtools_1.4.1-2_i386.deb 2001-06-28 1.6 MB
mjpegtools-1.4.1.tar.gz 2001-06-28 529.2 kB
mjpegtools-1.4.1-1.src.rpm 2001-06-28 1.4 MB
mjpegtools-1.4.1-1.i686.src.rpm 2001-06-28 1.4 MB
mjpegtools-1.4.1-1.i386.rpm 2001-06-28 2.6 MB
mjpegtools_1.4.1-1i686_i386.deb 2001-06-23 1.6 MB
mjpegtools_1.4.1-1_i386.deb 2001-06-23 1.6 MB
mjpegtools-1.4.0-2.src.rpm 2001-06-09 1.6 MB
mjpegtools-1.4.0-2.rh70.i686.rpm 2001-06-09 2.6 MB
mjpegtools-1.4.0-2.rh70.i386.rpm 2001-06-09 2.6 MB
mjpegtools-1.4.0-2.i686.src.rpm 2001-06-09 1.6 MB
mjpegtools_1.4.0-2i686_i386.deb 2001-06-06 811.9 kB
mjpegtools_1.4.0-2_i386.deb 2001-06-06 810.0 kB
mjpegtools-1.4.0-1.src.rpm 2001-06-06 1.6 MB
mjpegtools-1.4.0.tar.gz 2001-06-06 706.0 kB
mjpegtools-1.4.0-1.rh70.i686.rpm 2001-06-06 2.5 MB
mjpegtools-1.4.0-1.rh70.i386.rpm 2001-06-06 2.5 MB
mjpegtools-1.4.0-1.i686.src.rpm 2001-06-06 1.6 MB
mjpegtools-1.4.0-1.i386.src.rpm 2001-06-06 1.6 MB
mjpegtools-1.4pre3-2.src.rpm 2001-05-28 1.4 MB
mjpegtools-1.4pre3-2.i386.rpm 2001-05-28 2.3 MB
mjpegtools_1.4.0-1_i386.deb 2001-05-28 759.0 kB
mjpegtools-1.4pre3.tar.gz 2001-05-28 500.6 kB
mjpegtools-1.4pre2.tar.gz 2001-05-16 472.4 kB
mjpegtools-1.4pre1.tar.gz 2001-05-12 472.3 kB
quicktime4linux-1.3-patched.tar.gz 2001-04-22 206.4 kB
mjpegtools-1.3b4.tar.gz 2001-04-21 664.4 kB
mjpegtools-1.3b3a.tar.gz 2001-02-15 2.3 MB
mjpegtools-1.3b3.tar.gz 2001-02-08 398.2 kB
libmovtar-0.1.2.tar.gz 2001-02-07 79.9 kB
jpeg-mmx-0.1.3.tar.gz 2001-02-07 580.6 kB
mjpegtools-1.3b2a.tar.gz 2000-12-27 386.8 kB
mjpegtools-1.3b2.tar.gz 2000-12-19 381.0 kB
quicktime4linux-1.2njpg.tar.gz 2000-12-19 635.9 kB
jpeg-mmx-1.1.2.tar.gz 2000-12-07 568.9 kB
jpeg-mmx-0.1.2.tar.gz 2000-12-06 567.3 kB
jpeg-mmx-0.1.1.tar.gz 2000-12-03 567.9 kB
libmovtar-0.1.1.tar.gz 2000-12-03 79.4 kB
mjpeg_beta_1a.tar.gz 2000-08-08 1.0 MB
mjpeg_beta_1.tar.gz 2000-08-07 1.0 MB
Totals: 155 Items   199.6 MB 0
This README describes the lavpipe tools: how to use them,
and how they work (partially).
The current implementation still is not tested very well, so be
warned (and please report any errors you encounter).

At the moment, there are only two filters for lavpipe,
transist.flt and matteblend.flt, which means that you can
use it only to make simple blending transistions between two
movies or to blend one video over another using a predefined
matte (yuv image or lav movie). But it is very easy to code
new filters or extend existing ones. Read on.

Contents:
1. What are the tools?
2. What can we do with it?
3. What else can we do with it?
4. That's all?! How can we make them do more?
_____________________________________________________________________________
                                                                             \
1. What are the tools?                                                       /
____________________________________________________________________________/

The tools that are involved so far are:
 - lav2yuv, which decompresses the given input files (or any portions
            of them) and gives us raw yuv frame streams that can be
            piped through the several tools.
 - lavpipe, which reads out a "LAV Pipe List" (e.g. *.pli) file, a
            "recipe" which tells it how to combine several input
            movies using several yuv stream filters.
 - transist.flt and matteblend.flt, all the filters that already exist.
 - yuv2lav or mpeg2enc, which compress the resulting yuv stream
                        into an mjpeg or mpeg file.

_____________________________________________________________________________
                                                                             \
2. So hat can we do with it?                                                 /
____________________________________________________________________________/

Example one: Make a transistion from one movie to another one.

Let's assume that we have got two 352x288 PAL files:
intro.avi (1040 frames) and epilogue.mov (3920 frames). Now we want
to make a transistion between them that lasts for two seconds
(2 sec = 50 frames, as they are PAL movies).
We also have to take care that both share the same dimensions - if
they are of different sizes, we can use lavscale once it is finished.

Our task now is to write a "recipe" for lavpipe and thus tell it how
to do the work. If we store our work as trans.pli, the final call will
simply be: "lavpipe trans.pli | yuv2lav -o result.avi" (lavpipe
writes a yuv stream to stdout as lav2yuv does).

The first line of trans.pli must be "LAV Pipe List".

The second line contains one single number, the number of input
streams that we will use. (In our case: "2")

Now for each of the two input streams a line containing the
command that produces the stream is added. First for intro.avi:
"lav2yuv -o $o -f $n -n 1 intro.avi"
The -o $o and -f $n parameters are necessary as lavpipe somehow
has to inform lav2yuv which frames it should output. $o will
be replaced by the offset and $n will be replaced by the number
of frames that lavpipe wants lav2yuv to output. The -n 1
parameter is of course optional, and any other parameters to
lav2yuv could be added. The second line for epilogue.mov might
look like this: "lav2yuv -o $o -f $n epilogue.mov"

Now follow all the sequences of the Pipe List, each of which
consists of a listing of the input streams used and a command
line to the filter program.

The first sequence will simply reproduce all but the last 50
frames of intro.avi (that are 1040 - 50 = 990 frames). Its
first line only contains "990", the number of frames. The
second line is "1", the number of streams used.
The next line contains the index of the stream to use and the
offset (how many frames to skip in the beginning).
In our case both index and offset are 0, so the line would be:
"0 0"
Now we would add the command line of the filter program, but
as we don't want to invoke any filter here, this line only
contains "-", which causes lavpipe to simply output the contents
of the stream.

The second sequence is the actual transistion. So the first
line is "50" (two seconds), the second one "2" (we use both streams).
The following line will be "0 990" (intro.avi will be continued
at frame 990) and then "1 0" follows (epilogue.mov starts with
frame 0).
The next line is the filter command, in our case
"transist.flt -s $o -n $n -o 0 -O 255 -d 50"
The -s $o -n $n parameters equal to the -o $o -f $n parameters
of lav2yuv, -o 0 means that at the beginning of the transistion,
only intro.avi is visible (opacity of epilogue.mov = 0).
As you would have expected, -O 255 means that at the end of
the transistion, only epilogue.mov is visible (opacity of
epilogue.mov = 255 = 100%) - the opacity will be linearly
interpolated inbetween. And finally -d 50 is the duration
of the transistion in frames and should be equal to the
first line (duration in frames) of the sequence in most cases.

The last sequence continues with only epilogue.mov (the last
3870 frames), thus the first line is "3870". The second line
is "1" (only one stream), then "1 50" follows (epilogue.mov,
beginning with frame 50). The filter command line is "-" again.

Finally, our Pipe List file should look like this:

--------------------< trans.pli >--------------------------
LAV Pipe List
2
lav2yuv -o $o -f $n -n 1 intro.avi
lav2yuv -o $o -f $n epilogue.mov
990
1
0 0
-
50
2
0 990
1 0
transist.flt -s $o -n $n -o 0 -O 255 -d 25
3870
1
1 50
-
--------------------< end of file >------------------------

Remember the call? "lavpipe trans.pli | yuv2lav -o result.avi"
should now produce a nice avi file with a nice transistion.

_____________________________________________________________________________
                                                                             \
3. And what else can we do with it?                                          /
____________________________________________________________________________/

Example two: Blend one movie over another one, using a third one's luminance
             channel as a matte (alpha channel) for the second one.

matteblend.flt has no parameters until now, as its output is independent of
the actual position in the stream (only depends on the input frames it is fed).

If you read the first example and have understood the pipe list format, it
will be easy to write a pipe list for this task. As there still is no
bluescreen.flt filter, and it is very time consuming to build an animated
matte channel for a given input movie by hand, I will only describe how to
blend a static picture (a title or static logo) over a movie.

For this you need your input.avi, a picture with an alpha channel. Use for
example the GIMP to save the image as plain yuv (pic.yuv) and save its
alpha channel as a grayscale plain yuv (matte.yuv - its chrominance channels
will be ignored). Of course the must be of the right size.
Now create this simple shell script that will output an infinite yuv stream
that only contains the given plain yuv picture:

--------------------< foreveryuv >-------------------------
#!/bin/sh
echo "YUV4MPEG 352 288 3"
while true
do
       echo "FRAME"
       cat $1
done
--------------------< end of file >------------------------

And write the pipe list:

--------------------< title.pli >--------------------------
LAV Pipe List
3
lav2yuv -o $o -f $n input.avi
foreveryuv pic.yuv
foreveryuv matte.yuv
75
3
0 0
1 0
2 0
1000000
1
0 75
matteblend.flt
--------------------< end of file >------------------------

As long as your input.avi is shorter than 1000076 frames,
"lavpipe title.pli | yuv2lav -o result.avi" will output
the whole movie with the given picture blended over it
for the first three seconds.

_____________________________________________________________________________
                                                                             \
4. That's all?! How can we make them do more?                                /
____________________________________________________________________________/

The solution is of course to code new filter programs. And of course this
is very easy. I want to annote here, that the whole system is not very
fool proof at the moment. So if you feed matteblend.flt the wrong number
of input streams via lavpipe, you will get funny results, if you get
any results at all (without any hint from the programs). Perhaps this
could be improved by adding additional (optional) parameters to the
YUV4MPEG header line.

A filter program consists only of 4 parts:

1. Read input parameters (especially -o and -n, if the output is not only
   dependent on the input frames but also on some variable parameters that
   change over time) - optional.

2. Read in and write out the YUV headers, could look like this:

   int fd_in = 0, fd_out = 1; /* stdin, stdout */
   int res, width, height, frame_rate_code;

   if ((res = yuv_read_header (fd_in, &width, &height, &frame_rate_code)) != 0)
      exit (1);
   yuv_write_header (fd_out, width, heigth, frame_rate_code);
   
3. Allocate the YUV buffer(s) - one for each input stream and perhaps one
   for the output or an arbitrary number of temporary buffers (no bloated
   code, please ;-) )
   
   char *yuv_buffer[3]; /* this is one yuv buffer */
   yuv_buffer[0] = (char *) malloc (width   * height);   /* luminance */
   yuv_buffer[1] = (char *) malloc (width/2 * height/2); /* chrominance_b */
   yuv_buffer[2] = (char *) malloc (width/2 * height/2); /* chrominance_r */

4. The loop - while (number of frames processed) < (-n parameter)

4.1. Read the input frames, one of those for each input stream (e.g. yuv_buffer[123])

   if (res = yuv_read_frame (fd_in, yuv_buffer, width, height)) <= 0)
      exit (0);

4.2. Process the input buffers in any way you want.

5. Write out the result:

   yuv_write_frame (fd_out, yuv_buffer, width, height);

That's all. You should in any case have a look at the existing filters,
transist.flt.c and matteblend.flt.c.

- pHilipp Zabel <pzabel@gmx.de>
Source: README.lavpipe, updated 2001-09-22