Class VideoMixer
Provides video mixing functionality to overlay images onto a video file, with support for animated waypoints, pauses, and transcoding.
public class VideoMixer
- Inheritance
-
VideoMixer
- Inherited Members
Constructors
VideoMixer()
public VideoMixer()
Properties
AllowFullVideoTranscoding
Gets or sets a value indicating whether full video transcoding is allowed when source files are incompatible.
public bool AllowFullVideoTranscoding { get; set; }
Property Value
CancellationToken
Gets or sets the cancellation token for operation cancellation.
public CancellationToken? CancellationToken { get; set; }
Property Value
ErrorDescription
Gets the last error description if the last method call returned false.
public string ErrorDescription { get; }
Property Value
FileCache
Gets or sets the file cache for optimized file access.
public FileCache FileCache { get; set; }
Property Value
Images
Gets or sets the list of image overlays to apply to the video.
public List<InputFileItem> Images { get; set; }
Property Value
InputFile
Gets or sets the input video file item.
public InputFileItem InputFile { get; set; }
Property Value
OutputFilePath
Gets or sets the output file path for the mixed video.
public string OutputFilePath { get; set; }
Property Value
OutputVideoType
Gets or sets the output video media type configuration.
public MediaType OutputVideoType { get; set; }
Property Value
Progress
Gets the current mixing progress as a percentage (0-100).
public float Progress { get; }
Property Value
VideoRenderer
Gets or sets the video renderer for preview during mixing.
public IVideoRenderer VideoRenderer { get; set; }
Property Value
Methods
Execute()
Executes video mixing using the properties configured on this instance.
public Task<bool> Execute()
Returns
Execute(string, List<InputFileItem>, string)
Executes video mixing with the specified parameters.
public Task<bool> Execute(string inputFilePath, List<InputFileItem> images, string outputFilePath)
Parameters
inputFilePathstringThe path to the input video file.
imagesList<InputFileItem>The list of image overlays to apply.
outputFilePathstringThe path for the output mixed video file.
Returns
Execute(string, List<InputFileItem>, string, CancellationToken?)
Executes video mixing with the specified parameters and cancellation support.
public Task<bool> Execute(string inputFilePath, List<InputFileItem> images, string outputFilePath, CancellationToken? cancellationToken)
Parameters
inputFilePathstringThe path to the input video file.
imagesList<InputFileItem>The list of image overlays to apply.
outputFilePathstringThe path for the output mixed video file.
cancellationTokenCancellationToken?Optional cancellation token to cancel the operation.