Skip to content

AVI & ASF header attributes

Overwiew The header attributes are text strings that appear mainly e.g. when displaying the clip properties in the Windows Media Player, e.g. like the Author, Copyright, Description, etc... It is possible to set header the attributes strings that will be included in AVI and ASF files, before invoking StartRecording.

Specifying header attributes Each header attribute can be set invididually by invoking SetHeaderAttribute (THeaderAttribute , Value). This must be done BEFORE invoking StartRecording .

E.g.: ... VideoGrabber1.SetHeaderAttribute (ha_Title, 'my mytitle'); VideoGrabber1.SetHeaderAttribute (ha_Description, 'my description'); VideoGrabber1.SetHeaderAttribute (ha_Author, 'my author name'); VideoGrabber1.SetHeaderAttribute (ha_Copyright, 'my copyright'); VideoGrabber.StartRecording; ... The values will be applied to the next recorded files, unless they are cleared by invoking ClearHeaderAttributes , or overwritten by invoking SetHeaderAttribute .

Invoking ClearHeaderAttributes clears ALL the attributes. To clear only one attribute invoke SetHeaderAttribute and pass an empty string.

AVI vs. ASF attributes Some attributes may be used with both AVI and ASF recordings (RecordingMethod = rm_AVI or rm_ASF), other may be used only with ASF or AVI recordings.

See SetHeaderAttribute for a complete list of the attributes compatibles with the AVI and/or ASF formats.

Retrieving the header attributes of an existing video clip Invoke AVIHeaderInfo to retrieve the current attributes of an existing video clip.