cpython/Demo/sgi/video/README

99 lines
3.2 KiB
Plaintext
Raw Normal View History

1992-08-18 16:01:19 +00:00
This directory contains Python and C code for video stuff.
1991-10-30 11:52:48 +00:00
1992-08-18 16:01:19 +00:00
History:
We started this in October 1991, when we had a large framegrabber
board on loan from SGI for a few weeks.
Later, when we started processing the recorded film fragments, the
"CMIF video format" was revised several times, and we finally created
an object-oriented interface for reading and writing various
incarnations of these files, called VFile.
When we finally got our own Indigo entry-level video board (in June
1992) and a version of the Irix video library that supported capturing
PAL format (August 1992) Sjoerd added an interface to the video
library to Python (sv) and Guido wrote makemovie.py (based upon a
still frame grabber by Sjoerd) to record a movie using it.
--Guido, Jack and Sjoerd
1991-10-30 11:52:48 +00:00
1991-11-04 14:31:31 +00:00
1991-10-30 11:52:48 +00:00
cam.py network real-time tv broadcast; see tv.py
usage: cam [packfactor [host]]
specifying 'all' for host broadcasts
camcorder.py record video movies or make snapshots (in movie format)
1991-11-04 14:31:31 +00:00
usage: camcorder [-c] [-a audiohost [-s]] [-p pf] [moviefile]
-c color (equivalent to -p 0)
1991-10-30 11:52:48 +00:00
-a audiohost syncaudio is running on audiohost
-s start syncaudio (on audiohost)
1991-11-04 14:31:31 +00:00
-p packfactor packfactor (default 2; 0 records color)
1991-10-30 11:52:48 +00:00
moviefile (default film.video)
keyboard commands:
s stop grabbing (single step if already stopped)
c continuous grabbing
r start recording
p pause recording (record single frame if paused)
ESC quit
1991-11-22 14:03:57 +00:00
colorsys.py color conversions, used by video
1992-08-18 16:01:19 +00:00
makemovie.py record video movies using the Indigo video library and
board
1991-10-30 11:52:48 +00:00
statit.py various statistics operations on movie files
syncaudio.py record audio synchronized with camcorder -a
usage: syncaudio videohost soundfile
1991-11-04 14:31:31 +00:00
soundfile format: 16 bits/sample, 16000 samples/sec, 1 channel
(actually, you'd better set the sampling rate to 16000
with the audio panel)
1991-10-30 11:52:48 +00:00
tv.py receiver for transmissions from cam.py
1991-11-04 15:55:01 +00:00
vcopy.py selectively write frames from one movie file to another
usage: vcopy infile outfile
commands: 'n' gets next frame; 'w' writes current frame
1991-10-30 11:52:48 +00:00
video.py player for movies recorded by camcorder.py
1991-11-22 14:03:57 +00:00
usage: video [-l] [-p pf] [-m mag] [-F]
[moviefile [soundfile [skipbytes]]]
1991-11-04 18:04:47 +00:00
-p pf override packfactor (to zoom)
-l looping -- restart movie when done
1991-11-22 14:03:57 +00:00
-m mag magnification
-F run at max speed
1991-11-04 18:04:47 +00:00
moviefile default is film.video
soundfile default is none (no sound)
skipbytes byte offset in soundfile where sound starts
1991-10-30 11:52:48 +00:00
1992-08-18 16:01:19 +00:00
Vplay.py same but using VFile.py
1991-11-06 16:13:25 +00:00
vinfo.py print summary of movie file(s)
usage: vinfo [-d] moviefile ...
-d print delta times (default: print abs times)
1991-10-30 11:52:48 +00:00
1992-08-18 16:01:19 +00:00
Vinfo.py same but using VFile.py
1991-11-04 14:31:31 +00:00
vpregs.py definition of VP registers
1991-10-30 11:52:48 +00:00
vtime.py virtual time module imported by syncaudio.py and camcorder.py
These are C programs, either for efficiency or because they need to
link with a C library.
squash.c make a movie smaller by averaging pixels
usage: squash factor [bits] <moviefile >newmoviefile
factor x and y compression factor
bits #bits left per sample in result (default 8)
squash2.c make a movie smaller by dropping pixels
usage: squash2 factor <moviefile >newmoviefile
factor x and y compression factor
tomono.c like squash2 but outputs a monochrome movie
1991-11-04 15:55:01 +00:00
v2i.c convert the first frame of a movie file to SGI .rgb format
1991-10-30 11:52:48 +00:00
link with -limage