---
title: "AviWriter..::.CompressorHandler Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_AviWriter_CompressorHandler.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# AviWriter.CompressorHandler Property 
 
Gets/sets the handler (ID) of the compressor used to generate the AVI file.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill.Codecs.AviProcessor (in Aurigma.GraphicsMill.Codecs.AviProcessor.dll)
 
## Syntax
  
```
Public Property CompressorHandler As Integer
```
 
```csharp
public int CompressorHandler { get; set; }
```
 
### Property Value
An integer number containing the compressor handler.
 
## Remarks
  
The compressor handler is tightly bounded with the FOURCC code. If you interpret the FOURCC value as a 4-byte value rather than a 4-character string, you will get the compressor handler.
 
Most wide used compressor handler constants are presented as static members of the [AviCompressor](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_AviCompressor.htm.md) class. Also, this class enables you to enumerate all installed compressors, get information about the compressor, etc.
 
**Note** 
You should set this value **before** you open the writer object. You cannot change it when the writer is already opened!
   
## See Also

### Reference

- [AviWriter Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_AviWriter.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
