summaryrefslogtreecommitdiff
path: root/noncore/multimedia/camera/jpegtoavi/README
blob: 6a0057f7b724d665ab88f296f4912585f89d0b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
JPEGTOAVI
by Phillip Bruce


I. Introduction

In the tradition of the Unix computing philosophy, here is
yet another operator that does one simple task, namely the
creation of an AVI MJPEG file given a list of JPEG/JFIF files.

I had some difficulty in performing this extremely simple task
in Linux, mostly because it is so simple and all of the existing
code to do it lie at the bottom of complicated and more ambitious
projects--e.g. xawtv, avifile, etc.  I then had to waste
time reading M$ docs and xawtv source to find out how to do it.


II. Installation

The code is pretty basic, and so it should be pretty easy to
install:  "make all" compiles the program, "make install"
installs it.  If you want the files to reside in some directory
besides /usr/local/bin and /usr/local/man, edit "Makefile".

 
II. Usage

There are three basic modes of operation:

1. jpegtoavi per_usec width height img1 [img2 ... imgN]
2. jpegtoavi -f fps width height img1 [img2 ... imgN]
3. jpegtoavi -fsz img1 [img2 .. imgN]

The first two print an AVI to STDOUT using the width and height
parameters and the images named in chronological order.  (No
checks are made on the validity of the JPEG/JFIFs or their
dimensions.)  The first mode specifies the frame rate in
terms of the period in microseconds for each frame, whereas
the second specifies frames per second.

The third mode was added to give size hints during the transfer
of AVIs without the use of a temporary file.  Instead of
generating the AVI it outputs the size in bytes that of the AVI
that could have been generated.


III. Contact, Bug Reports, and Suggestions

Send them to me at dI77IHd@yahoo.com