---
title: "CustomEncoderOptions..::.SetMediaFormat Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_CustomEncoderOptions_SetMediaFormat_1_5f4f955f.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/)

# CustomEncoderOptions.SetMediaFormat Method 
 
Sets the unique media format identifier for the codec.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Protected Friend Sub SetMediaFormat ( _mediaFormat As Long _
)
```
 
```csharp
protected internal void SetMediaFormat(long mediaFormat
)
```
 
### Parameters
 
 - mediaFormat
     - Type: [System.Int64](http://msdn2.microsoft.com/en-us/6yy583ek)
Unique value corresponding to the format supported by the codec.
 
## Remarks
  
This method should be used in a constructor to set codec parameters.
   
## See Also

### Reference

- [CustomEncoderOptions Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CustomEncoderOptions.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
