IWMEncAudioSource.ContentEDL
The ContentEDL property specifies and retrieves the edit decision list (EDL) to use with speech content.
Syntax
IWMEncAudioSource.ContentEDL = String
String = IWMEncAudioSource.ContentEDL
Parameters
This property takes no parameters.
Property Value
A String indicating the full path and file name of the EDL.
If this property fails, it returns an error number.
Return code | Number | Description |
NS_E_INVALIDCALL_WHILE_ENCODER_RUNNING | 0xC00D1B66L | This property cannot be set while the encoder engine is running. |
NS_E_SPEECHEDL_ON_NON_MIXEDMODE | 0xC00D1B92L | The content mode must be set to mixed mode before calling this method. |
Remarks
The EDL is a Unicode text file that contains the version number (which must be 1), the number of non-speech segments, and a list of start and end times (in milliseconds) indicating the non-speech segments. The rest of the content is assumed to be speech. Delimiters can be commas, spaces, or carriage returns. For example, if music occurs between 0 and 10 seconds and between 50 and 80 seconds, the EDL might appear as follows:
1,
2,
0, 10000,
50000, 80000
The ContentEDL property is only available when the ContentMode property is set to mixed mode.
To use an EDL for speech optimization, the input cannot be a live source and the output cannot be a broadcast.
Example Code
' Create a WMEncoder object.
Dim Encoder As WMEncoder
Set Encoder = New WMEncoder
' Create a source group.
Dim SrcGrpColl As IWMEncSourceGroupCollection
Dim SrcGrp As IWMEncSourceGroup
Set SrcGrpColl = Encoder.SourceGroupCollection
Set SrcGrp = SrcGrpColl.Add("SG_1")
' Add an audio source to the source group and specify an input file.
Dim SrcAud As IWMEncAudioSource
Set SrcAud = SrcGrp.AddSource(WMENC_AUDIO)
SrcAud.SetInput "C:\InputFile.avi" ' REPLACE THIS.
' Specify mixed (audio and speech) mode.
SrcAud.ContentMode = WMENC_AUDIOCONTENT_MIXED_MODE
' Specify the full path and file name of the EDL.
SrcAud.ContentEDL = "C:\EDL.txt" ' REPLACE THIS.
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also