Header

AviRootPackage.Header property

Gets the AVI header package.

public AviHeader Header { get; }

Property Value

The AVI header package.

Remarks

Learn more

Examples

This code snippet shows how to read AVI header properties.

using (Metadata metadata = new Metadata(Constants.InputAvi))
{
    var root = metadata.GetRootPackage<AviRootPackage>();

    Console.WriteLine(root.Header.AviHeaderFlags);
    Console.WriteLine(root.Header.Height);
    Console.WriteLine(root.Header.Width);
    Console.WriteLine(root.Header.TotalFrames);
    Console.WriteLine(root.Header.InitialFrames);
    Console.WriteLine(root.Header.MaxBytesPerSec);
    Console.WriteLine(root.Header.PaddingGranularity);
    Console.WriteLine(root.Header.Streams);

    // ...
}

See Also