Guido van Rossum | e4bddea | 1991-10-30 11:52:48 +0000 | [diff] [blame] | 1 | This directory contains Python and C code we wrote while we had a |
| 2 | framegrabber board on loan from SGI. |
| 3 | |
| 4 | --Guido and Jack |
| 5 | |
Guido van Rossum | 96059b3 | 1991-11-04 14:31:31 +0000 | [diff] [blame] | 6 | |
Guido van Rossum | e4bddea | 1991-10-30 11:52:48 +0000 | [diff] [blame] | 7 | cam.py network real-time tv broadcast; see tv.py |
| 8 | usage: cam [packfactor [host]] |
| 9 | specifying 'all' for host broadcasts |
| 10 | |
| 11 | camcorder.py record video movies or make snapshots (in movie format) |
Guido van Rossum | 96059b3 | 1991-11-04 14:31:31 +0000 | [diff] [blame] | 12 | usage: camcorder [-c] [-a audiohost [-s]] [-p pf] [moviefile] |
| 13 | -c color (equivalent to -p 0) |
Guido van Rossum | e4bddea | 1991-10-30 11:52:48 +0000 | [diff] [blame] | 14 | -a audiohost syncaudio is running on audiohost |
| 15 | -s start syncaudio (on audiohost) |
Guido van Rossum | 96059b3 | 1991-11-04 14:31:31 +0000 | [diff] [blame] | 16 | -p packfactor packfactor (default 2; 0 records color) |
Guido van Rossum | e4bddea | 1991-10-30 11:52:48 +0000 | [diff] [blame] | 17 | moviefile (default film.video) |
| 18 | keyboard commands: |
| 19 | s stop grabbing (single step if already stopped) |
| 20 | c continuous grabbing |
| 21 | r start recording |
| 22 | p pause recording (record single frame if paused) |
| 23 | ESC quit |
| 24 | |
| 25 | statit.py various statistics operations on movie files |
| 26 | |
| 27 | syncaudio.py record audio synchronized with camcorder -a |
| 28 | usage: syncaudio videohost soundfile |
Guido van Rossum | 96059b3 | 1991-11-04 14:31:31 +0000 | [diff] [blame] | 29 | soundfile format: 16 bits/sample, 16000 samples/sec, 1 channel |
| 30 | (actually, you'd better set the sampling rate to 16000 |
| 31 | with the audio panel) |
Guido van Rossum | e4bddea | 1991-10-30 11:52:48 +0000 | [diff] [blame] | 32 | |
| 33 | tv.py receiver for transmissions from cam.py |
| 34 | |
Guido van Rossum | 7caf611 | 1991-11-04 15:55:01 +0000 | [diff] [blame^] | 35 | vcopy.py selectively write frames from one movie file to another |
| 36 | usage: vcopy infile outfile |
| 37 | commands: 'n' gets next frame; 'w' writes current frame |
| 38 | |
Guido van Rossum | e4bddea | 1991-10-30 11:52:48 +0000 | [diff] [blame] | 39 | video.py player for movies recorded by camcorder.py |
Guido van Rossum | 96059b3 | 1991-11-04 14:31:31 +0000 | [diff] [blame] | 40 | usage: video [moviefile [soundfile [skipbytes]]] |
| 41 | - default moviefile is film.video |
| 42 | - default soundfile is none (no sound) |
| 43 | - if skipbytes is given, that many bytes are skipped from |
| 44 | soundfile before playing |
Guido van Rossum | e4bddea | 1991-10-30 11:52:48 +0000 | [diff] [blame] | 45 | |
| 46 | vinfo.py print a summary of a movie file |
| 47 | |
Guido van Rossum | 96059b3 | 1991-11-04 14:31:31 +0000 | [diff] [blame] | 48 | vpregs.py definition of VP registers |
| 49 | |
Guido van Rossum | e4bddea | 1991-10-30 11:52:48 +0000 | [diff] [blame] | 50 | vtime.py virtual time module imported by syncaudio.py and camcorder.py |
| 51 | |
| 52 | |
| 53 | These are C programs, either for efficiency or because they need to |
| 54 | link with a C library. |
| 55 | |
| 56 | squash.c make a movie smaller by averaging pixels |
| 57 | usage: squash factor [bits] <moviefile >newmoviefile |
| 58 | factor x and y compression factor |
| 59 | bits #bits left per sample in result (default 8) |
| 60 | |
| 61 | squash2.c make a movie smaller by dropping pixels |
| 62 | usage: squash2 factor <moviefile >newmoviefile |
| 63 | factor x and y compression factor |
| 64 | |
| 65 | tomono.c like squash2 but outputs a monochrome movie |
| 66 | |
Guido van Rossum | 7caf611 | 1991-11-04 15:55:01 +0000 | [diff] [blame^] | 67 | v2i.c convert the first frame of a movie file to SGI .rgb format |
Guido van Rossum | e4bddea | 1991-10-30 11:52:48 +0000 | [diff] [blame] | 68 | link with -limage |