---
title: "AviWriter..::.KeyFrameRate Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_AviWriter_KeyFrameRate.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.KeyFrameRate Property 
 
Gets/sets the key frame rate value used by some compressors.
 
**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 KeyFrameRate As Integer
```
 
```csharp
public int KeyFrameRate { get; set; }
```
 
### Property Value
An integer value which specifies the key frame value.
 
## Remarks
  
This value is ignored by most compressors. It is used by those compressors which are based on MPEG algorithm (e.g. [DivXPro5](https://www.graphicsmill.com/docs/gm5/F_Aurigma_GraphicsMill_Codecs_AviCompressor_DivXPro5.htm.md), [XvidMpeg4](https://www.graphicsmill.com/docs/gm5/F_Aurigma_GraphicsMill_Codecs_AviCompressor_XvidMpeg4.htm.md), 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)
