Share via


WMEncStreamEdit.OutputFile

Windows Media Encoder SDK banner art

The OutputFile property specifies and retrieves the name of the output file.

Syntax

WMEncStreamEdit.OutputFile = String
String = WMEncStreamEdit.OutputFile

Parameters

This property takes no parameters.

Property Value

A String that contains the path and file name.

Remarks

Use the OutputFile property to specify the destination file for the stream edit process.

Example Code

' Create a WMEncStreamEdit object.
  Dim Stream As WMEncStreamEdit
  Set Stream = New WMEncStreamEdit

' This example assumes that you have a source file with two audiences.
' Create a new file using the audio from the first audience and the
' video from the second audience, as follows:

' Add the audio stream from the first audience.
  Stream.AddStream "C:\Source.wmv", WMENC_AUDIO, 0, 0, 1033, 0, 0

' Add the video stream from the second audience.
  Stream.AddStream "C:\Source.wmv", WMENC_VIDEO, 1, 0, 1033, 0, 0

' Specify the output file.
  Stream.OutputFile = "C:\Output.wmv"

' Validate the current settings. 
  Stream.Validate

' Start the stream edit process.
  Stream.Start

' Retrieve the run state.
  Dim SERunState as WMENC_BASICEDIT_STATE
  SERunState = Stream.RunState

' You can use a timer to retrieve the percentage complete.
  Dim lPercentComplete As Long
  lPercentComplete = Stream.ProgressPercent

Requirements

Reference: Windows Media Encoder

Library: wmenc.exe

See Also