Archived from http://reality.sgi.com/bh_engr
Last update: March 3, 1998
Movie Tools
Here's the source code for some handy movie tools. Together they form a
rudimentary command-line cut's only non-linear editor. These were all
compiled and run under 6.3 and they generally work only with JPEG
Quicktime Movie Files (use mvqt to convert a "Cosmo-style"
file to Quicktime) and generally understand only standard definition
video size and rate (fields of square or non-square PAL or NTSC).
I use dmrecord to capture the clip(s), movieplayer (set
View -> Time Unit -> Frames) to find out what's where in a clip,
and dmplay to print the final result back to video.
In between I use these tools to rearrange the frames. No pixels will be
harmed using these tools -- they merely copy the compressed bits, no
encoding/decoding is ever done.
-
Makefile - make the stuff below
-
mvcut.c - extract a cut from a JPEG
Quicktime Movie File
-
mvcat.c - concatenate several JPEG
Quicktime Movie Files into one
-
mvi.c - print some info about any Movie File
-
mvqt.c - translate a Cosmo-style JPEG Movie
File to JPEG Quicktime Movie File
-
mvrgb.c - extract an image from any Movie
File into a .rgb file (this command does actually decode the data from
the Movie File frame into the .rgb file)
-
mvj.c - extract a frame/field of a JPEG
Quicktime Movie File
-
jmv.c - wrap a JPEG Quicktime Movie File
around a bunch of JPEG files
JPEG dmIC examples
JPEG and video (VL). These were used heavily in O2 ICE JPEG bringup:
-
Makefile
-
jrecvid.c - compress live video to JPEG
Quicktime Movie File
-
jplayvid.c - decompress JPEG Quicktime
Movie File to live video out
JPEG and graphics (OpenGL):
-
Makefile
-
jplaygfx.c - decompress JPEG Quicktime
Movie File to OpenGL graphics
-
jrecgfx.c - compress OpenGL pbuffer
(off-screen) to JPEG Quicktime Movie File (this one happens to use a
window size of 1024x480 and frame rate of 24 frames/sec)
More JPEG fun stuff:
-
Makefile
-
jio.c - JPEG compressed/decompressed video
in a window w/ video in a window
Any questions?
bh@sgi.com