WMEncProfile2.BroadcastMode
The BroadcastMode property specifies and retrieves a value that indicates the video format of the current profile.
Syntax
WMEncProfile2.BroadcastMode = WMENC_PROFILE_BROADCAST_MODE
WMENC_PROFILE_BROADCAST_MODE = WMEncProfile2.BroadcastMode
Parameters
This property takes no parameters.
Property Value
A member of the WMENC_PROFILE_BROADCAST_MODE enumeration type indicating the video format.
Remarks
The BroadcastMode property detects which video format is used by the current profile, or you can specify which one you want to use. NTSC content uses a frame rate of 30 frames per second (fps). PAL uses a frame rate of 25 fps. Specify a custom video format if you use a different frame rate.
Example Code
' Create a WMEncProfile2 object.
Dim Pro As WMEncProfile2
Set Pro = New WMEncProfile2
' Load a custom profile. REPLACE THE FILE NAME.
Pro.LoadFromFile "C:\Profiles\CustomProfile.prx"
' Retrieve a string indicating the video format.
Dim sBroadcastType As String
Select Case Pro.BroadcastMode
Case 1: sBroadcastType = "Custom"
Case 2: sBroadcastType = "NTSC"
Case 3: sBroadcastType = "PAL"
End Select
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also