Guido van Rossum | 7268c93 | 1992-08-18 21:11:18 +0000 | [diff] [blame] | 1 | CMIF video tools |
| 2 | ================ |
Guido van Rossum | e4bddea | 1991-10-30 11:52:48 +0000 | [diff] [blame] | 3 | |
Guido van Rossum | 7268c93 | 1992-08-18 21:11:18 +0000 | [diff] [blame] | 4 | This directory contains Python and C programs to manipulate files |
| 5 | containing digitized video in the "CMIF video format". |
| 6 | |
Guido van Rossum | 85f7bd5 | 1993-02-25 16:10:16 +0000 | [diff] [blame] | 7 | An introduction to using the basic tools is in the file "video.doc". |
| 8 | |
| 9 | A description of the video file format is in the file "cmif-film.ms" |
| 10 | (troff/nroff -ms input). |
| 11 | |
Guido van Rossum | 7268c93 | 1992-08-18 21:11:18 +0000 | [diff] [blame] | 12 | |
| 13 | History |
| 14 | ------- |
Guido van Rossum | b2e8228 | 1992-08-18 16:01:19 +0000 | [diff] [blame] | 15 | |
| 16 | We started this in October 1991, when we had a large framegrabber |
Guido van Rossum | 7268c93 | 1992-08-18 21:11:18 +0000 | [diff] [blame] | 17 | board on loan from SGI for a few weeks: we developed a movie recording |
Guido van Rossum | 3ea6161 | 1993-02-16 16:49:44 +0000 | [diff] [blame] | 18 | program and added numerous features, including still frame capture and |
| 19 | synchronous sound recording using a second machine (the machine |
| 20 | holding the framegrabber board didn't have audio). |
Guido van Rossum | b2e8228 | 1992-08-18 16:01:19 +0000 | [diff] [blame] | 21 | |
Guido van Rossum | 7268c93 | 1992-08-18 21:11:18 +0000 | [diff] [blame] | 22 | During the following months, when we started using and processing the |
| 23 | recorded film fragments, the "CMIF video format" was revised several |
| 24 | times, and we eventually created an object-oriented interface for |
| 25 | reading and writing various incarnations of these files, called VFile. |
| 26 | (This module is also used by our flagship application, the CMIF |
| 27 | editor, not in this directory but in /ufs/guido/mm/.) |
Guido van Rossum | b2e8228 | 1992-08-18 16:01:19 +0000 | [diff] [blame] | 28 | |
Guido van Rossum | 7268c93 | 1992-08-18 21:11:18 +0000 | [diff] [blame] | 29 | When we got our own Indigo entry-level video board (in June 1992) and |
| 30 | a version of the Irix video library that supported capturing PAL |
| 31 | format (in August 1992), Sjoerd added an interface to the video |
Guido van Rossum | 9e3f335 | 1992-09-29 13:40:47 +0000 | [diff] [blame] | 32 | library to Python (sv) and Guido wrote Vrec.py (based upon a still |
| 33 | frame grabber by Sjoerd, in turn based upon SGI demo code in C) to |
| 34 | record a movie using it. Vrec was soon followed by modernized |
Guido van Rossum | e178332 | 1992-09-07 09:35:23 +0000 | [diff] [blame] | 35 | versions of the other programs (Vinfo, Vplay, Vtime) and an |
| 36 | interactive editor (Vedit). Finally, VFile was rewritten for more |
Guido van Rossum | 9e3f335 | 1992-09-29 13:40:47 +0000 | [diff] [blame] | 37 | modularity, functionality and robustness, and various other tools were |
Guido van Rossum | 3f3c099 | 1992-12-24 11:39:36 +0000 | [diff] [blame] | 38 | added as needed. Also, new options were added to existing tools, and |
| 39 | several new video file formats were added. |
Guido van Rossum | b2e8228 | 1992-08-18 16:01:19 +0000 | [diff] [blame] | 40 | |
Guido van Rossum | 7268c93 | 1992-08-18 21:11:18 +0000 | [diff] [blame] | 41 | Guido van Rossum |
| 42 | Jack Jansen |
| 43 | Sjoerd Mullender |
Guido van Rossum | e4bddea | 1991-10-30 11:52:48 +0000 | [diff] [blame] | 44 | |
Guido van Rossum | 96059b3 | 1991-11-04 14:31:31 +0000 | [diff] [blame] | 45 | |
Guido van Rossum | 7268c93 | 1992-08-18 21:11:18 +0000 | [diff] [blame] | 46 | Overview of files |
| 47 | ----------------- |
| 48 | |
Guido van Rossum | 3f3c099 | 1992-12-24 11:39:36 +0000 | [diff] [blame] | 49 | cmif-film.ms description of the CMIF video file format (more than a |
| 50 | little out of date -- read the source for VFile for |
| 51 | more info about new file formats) |
Guido van Rossum | e178332 | 1992-09-07 09:35:23 +0000 | [diff] [blame] | 52 | |
| 53 | |
| 54 | These are programs with a command line interface: |
| 55 | |
| 56 | Vrec.py record video movies using the Indigo video library and |
| 57 | board |
| 58 | |
| 59 | Vplay.py play video movies |
| 60 | |
| 61 | Vinfo.py show statistics on movies |
| 62 | |
Guido van Rossum | 3f3c099 | 1992-12-24 11:39:36 +0000 | [diff] [blame] | 63 | Vtime.py Copy a video file, manipulating the time codes (e.g. |
| 64 | faster/slower, or regenerate time codes, or drop |
| 65 | frames too close apart) |
| 66 | |
Guido van Rossum | 5e044b7 | 1993-02-25 14:20:13 +0000 | [diff] [blame] | 67 | Vcopy.py Universal video file copying tool. Can manipulate the |
| 68 | time codes, change the type, size, and packfactor. |
| 69 | Subsumes Vtime.py. |
Guido van Rossum | e178332 | 1992-09-07 09:35:23 +0000 | [diff] [blame] | 70 | |
Guido van Rossum | 9e3f335 | 1992-09-29 13:40:47 +0000 | [diff] [blame] | 71 | Vmkjpeg.py compress an rgb or grey video file to jpeg[grey] format |
| 72 | |
| 73 | Vunjpeg.py expand a jpeg[grey] video file to rgb or grey format |
| 74 | |
Guido van Rossum | ff3da05 | 1992-12-09 22:16:35 +0000 | [diff] [blame] | 75 | Vfix.py truncate the scan line width of a video file to |
| 76 | a multiple of 4 ('grey' images only) |
| 77 | |
Guido van Rossum | 3f3c099 | 1992-12-24 11:39:36 +0000 | [diff] [blame] | 78 | Vedit.py interactive video editing program (uses the FORMS library) |
Guido van Rossum | e178332 | 1992-09-07 09:35:23 +0000 | [diff] [blame] | 79 | |
Guido van Rossum | 67b4895 | 1992-09-24 12:54:35 +0000 | [diff] [blame] | 80 | Vsend.py unicast or multicast live video as UDP packets |
| 81 | |
| 82 | Vreceive.py receive transmissions from Vsend |
| 83 | |
Guido van Rossum | 3f3c099 | 1992-12-24 11:39:36 +0000 | [diff] [blame] | 84 | Vaddcache.py add a "cached index" to a video file, for faster playing |
Guido van Rossum | e178332 | 1992-09-07 09:35:23 +0000 | [diff] [blame] | 85 | |
Guido van Rossum | 3f3c099 | 1992-12-24 11:39:36 +0000 | [diff] [blame] | 86 | Vrecb.py like Vrec.py but uses "burst capture" -- somewhat specialized |
| 87 | |
Guido van Rossum | 245be3a | 1993-02-18 18:09:18 +0000 | [diff] [blame] | 88 | Dsend.py like Vsend.py but sends screen snapshots (to Vreceive.py) |
| 89 | |
| 90 | DisplayVideoIn.py Like LiveVideoIn.py but reads screen snapshots |
| 91 | |
| 92 | rgb2video.py combine a sequence of rgb image files into a CMIF video file |
| 93 | |
| 94 | video2rgb.py split a CMIF video file into a sequence of rgb image files |
Guido van Rossum | 3ea6161 | 1993-02-16 16:49:44 +0000 | [diff] [blame] | 95 | |
Guido van Rossum | 3f3c099 | 1992-12-24 11:39:36 +0000 | [diff] [blame] | 96 | |
| 97 | These modules and files are used by the above programs: |
Guido van Rossum | e178332 | 1992-09-07 09:35:23 +0000 | [diff] [blame] | 98 | |
| 99 | VFile.py classes that read and write CMIF video files |
| 100 | |
| 101 | Viewer.py two viewer classes used by Vedit |
| 102 | |
Guido van Rossum | 67b4895 | 1992-09-24 12:54:35 +0000 | [diff] [blame] | 103 | LiveVideoIn.py live video input class, used by Vsend |
| 104 | |
| 105 | LiveVideoOut.py live video output class, used by Vsend and Vreceive |
| 106 | |
Guido van Rossum | 3ea6161 | 1993-02-16 16:49:44 +0000 | [diff] [blame] | 107 | imgconv.py Image conversion subroutines for rgb2video.py |
| 108 | |
Guido van Rossum | 3f3c099 | 1992-12-24 11:39:36 +0000 | [diff] [blame] | 109 | senddefs.py Defaults shared by Vsend and Vreceice |
Guido van Rossum | e178332 | 1992-09-07 09:35:23 +0000 | [diff] [blame] | 110 | |
Guido van Rossum | 3ea6161 | 1993-02-16 16:49:44 +0000 | [diff] [blame] | 111 | watchcursor.py Generally useful module to define a watch cursor in GL |
| 112 | |
Guido van Rossum | 3f3c099 | 1992-12-24 11:39:36 +0000 | [diff] [blame] | 113 | VeditForm.fd FORMS' fdesign definition for Vedit's form |