WMFP.GetVideoFrameRate
----------------------

Frame rate of a video media type, in frames per second.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WMFP](component_WMFP.md) | [13.2](newinversion132.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "WMFP.GetVideoFrameRate"; Player ) 

**MBS**( **"WMFP.GetVideoFrameRate";** /\* Frame rate of a video media type, in frames per second. \*/  
**$Player**) /\* The reference number for the Windows Media Foundation Player object.e.g. $$Player \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Player | The reference number for the Windows Media Foundation Player object. | $$Player |

### Result

Returns value or error.

### Description

Frame rate of a video media type, in frames per second.  
Requires a media item being loaded into the player.  
  
The frame rate is expressed as a ratio. The upper 32 bits of the attribute value contain the numerator and the lower 32 bits contain the denominator. For example, if the frame rate is 30 frames per second (fps), the ratio is 30/1. If the frame rate is 29.97 fps, the ratio is 30,000/1001.  
### Examples

Query it:

 Set Variable \[ $num ; Value: MBS ("WMFP.GetVideoFrameRate"; $$player ) \]  
Set Variable \[ $t ; Value: MBS ( "[Math.BitwiseShiftRight](MathBitwiseShiftRight.md)"; $num ; 32) \]  
Set Variable \[ $b ; Value: MBS ( "[Math.BitwiseAND](MathBitwiseAND.md)"; $num ; 4294967295)\]  
Set Variable \[ $value ; Value: $t / $b \]  
<small>  
Example result: 29.97</small>### See also

- [Math.BitwiseAND](MathBitwiseAND.md)
- [Math.BitwiseShiftRight](MathBitwiseShiftRight.md)

### Release notes

- **Version 13.2**
    - Added [WMFP.GetAudioBitsPerSample](https://www.mbsplugins.eu/WMFPGetAudioBitsPerSample.shtml), [WMFP.GetAudioChannels](https://www.mbsplugins.eu/WMFPGetAudioChannels.shtml), [WMFP.GetAudioSamplesPerSecond](https://www.mbsplugins.eu/WMFPGetAudioSamplesPerSecond.shtml) and [WMFP.GetVideoFrameRate](https://www.mbsplugins.eu/WMFPGetVideoFrameRate.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 13.2](https://www.mbsplugins.de/archive/2023-05-17/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.2pr1](https://www.mbsplugins.de/archive/2023-04-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

Created 15th March 2023 , last changed 15th March 2023

  
[WMFP.GetTag](WMFPGetTag.md) - [WMFP.GetVisible](WMFPGetVisible.md)

[HTML Version](WMFPGetVideoFrameRate.shtml)