blob: 39f63b500d3bf3c250499ab1b040b74e0f47cd1d [file] [log] [blame]
Guido van Rossumb2e82281992-08-18 16:01:19 +00001This directory contains Python and C code for video stuff.
Guido van Rossume4bddea1991-10-30 11:52:48 +00002
Guido van Rossumb2e82281992-08-18 16:01:19 +00003History:
4
5We started this in October 1991, when we had a large framegrabber
6board on loan from SGI for a few weeks.
7
8Later, when we started processing the recorded film fragments, the
9"CMIF video format" was revised several times, and we finally created
10an object-oriented interface for reading and writing various
11incarnations of these files, called VFile.
12
13When we finally got our own Indigo entry-level video board (in June
141992) and a version of the Irix video library that supported capturing
15PAL format (August 1992) Sjoerd added an interface to the video
16library to Python (sv) and Guido wrote makemovie.py (based upon a
17still frame grabber by Sjoerd) to record a movie using it.
18
19 --Guido, Jack and Sjoerd
Guido van Rossume4bddea1991-10-30 11:52:48 +000020
Guido van Rossum96059b31991-11-04 14:31:31 +000021
Guido van Rossume4bddea1991-10-30 11:52:48 +000022cam.py network real-time tv broadcast; see tv.py
23 usage: cam [packfactor [host]]
24 specifying 'all' for host broadcasts
25
26camcorder.py record video movies or make snapshots (in movie format)
Guido van Rossum96059b31991-11-04 14:31:31 +000027 usage: camcorder [-c] [-a audiohost [-s]] [-p pf] [moviefile]
28 -c color (equivalent to -p 0)
Guido van Rossume4bddea1991-10-30 11:52:48 +000029 -a audiohost syncaudio is running on audiohost
30 -s start syncaudio (on audiohost)
Guido van Rossum96059b31991-11-04 14:31:31 +000031 -p packfactor packfactor (default 2; 0 records color)
Guido van Rossume4bddea1991-10-30 11:52:48 +000032 moviefile (default film.video)
33 keyboard commands:
34 s stop grabbing (single step if already stopped)
35 c continuous grabbing
36 r start recording
37 p pause recording (record single frame if paused)
38 ESC quit
39
Guido van Rossum7385d581991-11-22 14:03:57 +000040colorsys.py color conversions, used by video
41
Guido van Rossumb2e82281992-08-18 16:01:19 +000042makemovie.py record video movies using the Indigo video library and
43 board
44
Guido van Rossume4bddea1991-10-30 11:52:48 +000045statit.py various statistics operations on movie files
46
47syncaudio.py record audio synchronized with camcorder -a
48 usage: syncaudio videohost soundfile
Guido van Rossum96059b31991-11-04 14:31:31 +000049 soundfile format: 16 bits/sample, 16000 samples/sec, 1 channel
50 (actually, you'd better set the sampling rate to 16000
51 with the audio panel)
Guido van Rossume4bddea1991-10-30 11:52:48 +000052
53tv.py receiver for transmissions from cam.py
54
Guido van Rossum7caf6111991-11-04 15:55:01 +000055vcopy.py selectively write frames from one movie file to another
56 usage: vcopy infile outfile
57 commands: 'n' gets next frame; 'w' writes current frame
58
Guido van Rossume4bddea1991-10-30 11:52:48 +000059video.py player for movies recorded by camcorder.py
Guido van Rossum7385d581991-11-22 14:03:57 +000060 usage: video [-l] [-p pf] [-m mag] [-F]
61 [moviefile [soundfile [skipbytes]]]
Guido van Rossum228381e1991-11-04 18:04:47 +000062 -p pf override packfactor (to zoom)
63 -l looping -- restart movie when done
Guido van Rossum7385d581991-11-22 14:03:57 +000064 -m mag magnification
65 -F run at max speed
Guido van Rossum228381e1991-11-04 18:04:47 +000066 moviefile default is film.video
67 soundfile default is none (no sound)
68 skipbytes byte offset in soundfile where sound starts
Guido van Rossume4bddea1991-10-30 11:52:48 +000069
Guido van Rossumb2e82281992-08-18 16:01:19 +000070Vplay.py same but using VFile.py
71
Guido van Rossumeda5dfd1991-11-06 16:13:25 +000072vinfo.py print summary of movie file(s)
73 usage: vinfo [-d] moviefile ...
74 -d print delta times (default: print abs times)
Guido van Rossume4bddea1991-10-30 11:52:48 +000075
Guido van Rossumb2e82281992-08-18 16:01:19 +000076Vinfo.py same but using VFile.py
77
Guido van Rossum96059b31991-11-04 14:31:31 +000078vpregs.py definition of VP registers
79
Guido van Rossume4bddea1991-10-30 11:52:48 +000080vtime.py virtual time module imported by syncaudio.py and camcorder.py
81
82
83These are C programs, either for efficiency or because they need to
84link with a C library.
85
86squash.c make a movie smaller by averaging pixels
87 usage: squash factor [bits] <moviefile >newmoviefile
88 factor x and y compression factor
89 bits #bits left per sample in result (default 8)
90
91squash2.c make a movie smaller by dropping pixels
92 usage: squash2 factor <moviefile >newmoviefile
93 factor x and y compression factor
94
95tomono.c like squash2 but outputs a monochrome movie
96
Guido van Rossum7caf6111991-11-04 15:55:01 +000097v2i.c convert the first frame of a movie file to SGI .rgb format
Guido van Rossume4bddea1991-10-30 11:52:48 +000098 link with -limage