⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 video.doc

📁 reduced python source for embedded apps
💻 DOC
字号:
	CMIF video toolsThis document gives a quick introduction to some of the tools usefulfor recording, editing and playing back video data in CMIF videoformat. All the tools mentioned currently live in /ufs/guido/bin/sgi.A description of the CMIF video file format can be found in/ufs/jack/cmif-film.ms. 	Recording videoThere are two tools to record video, Vrec and and Vrecb. Vrec doescontinuous capture, but can capture at most 15 frames per second.Vrecb uses burst capture, enabling it to capture all frames. Itcaptures to main memory, however, so it cannot handle long videofragments. The following options are common to both programs: -r rate	Capture one out of 'rate' frames. Default (and		minimum) is 1 for Vrecb, 2 for Vrec. There are some		caveats for recording PAL, see below. -w width	Set initial window width (and height, implicitly). -g bits	Create greyscale film in stead of 8-bit dithered color		film. Allowable values for 'bits' are 2, 4 or 8. -m		Create monochrome dithered film. These look horrible. -M threshold	Create monochrome thresholded film with specified		threshold (in range 0..255). -G		Create 2-bit dithered greyscale film. -f		Capture fields in stead of frames. The film is created		in such a way that the picture will be suitably		enlarged on playback, so aspect ratio, etc. are		maintained. -d		Drop fields if they would cause data from two video		fields to be combined. See the section on PAL for more		details. Options for Vrec: -a		Record audio as well. You will have to twiddle audio		and video later if you want lipsync playback. -q queuesize	Set size of the video board circular buffer. A little		experimentation with this may lead to more video being		captured, but not always. -P frames	Preallocate diskspace for 'frames' images. This may		enable you to capture more frames.Options for Vrecb: -n number	Capture 'number' frames. Default is 60 (2 seconds).Both programs accept a filename to store the video on (defaultfilm.video) and Vrec also accepts an audio file name (defaultfilm.aiff). When you want to record you press the left mouse button.Vrec stops recording when you release the mouse button and Vrecb stopsafter the predetermined number of frames have been recorded. Duringrecording the picture may look funny, but do not let this worry you,the film will be ok.After recording and saving, Vrec will print the deltas of the fieldnumbers recorded. A list of '4 4 4 4'... means that all possibleframes (one out of two) have been recorded. Vrecb will tell you howmany duplicate fields have been skipped. See below on PAL useageagain.	PAL caveatsThe IndigoVideo board converts the incoming video signal to the 60Hz(59.something, actually) display rate. All further operations,including capture, are done with respect to display rate. This isespecially bothersome in the case of PAL video, since it means one outof 5 frames will be duplicated. Together with the fact that, incontinuous capture, you can only capture every second frame this leadsto strange and wondrous effects. The frame numbers returned by thevideo board (and displayed by Vrec) are display frame numbers, and sobear only a very complicated (and probably non-deterministic) relationto PAL frame numbers. For recording simple videos this is probably noproblem. You can use Vrec and try using -d to see which gives the bestresult. On the other hand, if you need every frame and no duplicateseither you have to use Vrecb and supply the -d and -f option. Thiswill give you exactly the fields as they appeared on the PAL tape.	Video playbackThe easiest way to play back a video is to use Vplay. Calling it withan argument of -? will make it list all its options. A few options mayneed a bit of explanation: -M magnify	Magnify the images by the given factor. This still		takes any magnification specified in the film (if it		is a field film, for instance) in account. -w width and -h height	Normally the window will be the correct size for the		film. You can set height and width, though, if you		want the window to be bigger. This is especially		useful if you want to record the film back to		videotape, since you can playback in a window that is		bigger than PAL size with a black background and you		will have no distracting window-manager thingies on		your videotape.	Video EditingVedit is a (very simple) video editor that allows you to select imagesfrom the input movie and copy them to an output movie. Both input andoutput films have a modest buffer that you can move around in.Vaddcache takes a movie and adds a frame location cache to it. Thiswill make some other programs run faster.rgb2video converts a set of SGI .rgb files to a movie.There are a few programs that can do image format conversion on movies(i.e. convert an 8-bit dithered RGB movie to a greyscale movie), butnothing very complete yet. Look at Vcopy.py for more information.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -