*Recompress()

Converts AMF files using JPEG-based frame compression to a faster playing internal video format.

Syntax

*Recompress (0/1/2)

Application

MotionView, HyperView, and HyperGraph.

Inputs

0/1/2
Switch indicating whether recompression should occur and what level of compression should be used.
0
Do not recompress
1
Recompress using Lempel_Ziv 1X (faster)
2
Recompress using Lempel_Ziv 999X (smaller)

Context

*BeginVideoDefaults()

Example

*BeginVideoDefaults()
• • •
    *Recompress(1)
    *CachePalette(1) 
• • •
*EndVideoDefaults()

Comments

JPEG decompression is CPU intensive and therefore very slow. *Recompress() converts JPEG AMF videos into LZ videos using an 8-bit palette. This format plays back four to five times faster than JPEG and occupies only about twice as much memory as a JPEG file (depending on the JPEG compression level). Generally, the *Recompress(1) setting is preferred, since the *Recompress(2) setting delivers only a 0% to 15% saving in memory usage and takes several times longer to convert videos. *Recompress(2) should only be used if maximum memory saving is demanded.