Class Concatenator
Provides file concatenation functionality to join multiple media files into a single output file, with optional video transcoding support.
public class Concatenator
- Inheritance
-
Concatenator
- Inherited Members
Constructors
Concatenator()
public Concatenator()
Properties
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
Parameters
Gets the parsing parameters used for the output file.
public ParsingParameters Parameters { get; }
Property Value
Progress
Gets the current concatenation progress as a percentage (0-100).
public float Progress { get; }
Property Value
VideoTranscoding
Gets or sets whether video track should be transcoded. If set to true then H.264 with maximum compatible settings will be used, eg baseline profile, no B-frames etc. Default value is false, i.e. no transcoding.
public bool VideoTranscoding { get; set; }
Property Value
Methods
Execute(List<InputFileItem>, string)
Executes concatenation of input files into a single output file.
public Task<bool> Execute(List<InputFileItem> inputFiles, string outputFilePath)
Parameters
inputFilesList<InputFileItem>The list of input files to concatenate.
outputFilePathstringThe path for the output concatenated file.
Returns
Execute(List<InputFileItem>, string, CancellationToken?)
Executes concatenation of input files into a single output file with cancellation support.
public Task<bool> Execute(List<InputFileItem> inputFiles, string outputFilePath, CancellationToken? cancellationToken)
Parameters
inputFilesList<InputFileItem>The list of input files to concatenate.
outputFilePathstringThe path for the output concatenated file.
cancellationTokenCancellationToken?Optional cancellation token to cancel the operation.
Returns
Execute(string, string)
Executes concatenation of files specified in a playlist into a single output file.
public Task<bool> Execute(string inputPlaylist, string outputFilePath)
Parameters
inputPlayliststringThe playlist content specifying files to concatenate.
outputFilePathstringThe path for the output concatenated file.
Returns
Execute(string, string, CancellationToken?)
Executes concatenation of files specified in a playlist into a single output file with cancellation support.
public Task<bool> Execute(string inputPlaylist, string outputFilePath, CancellationToken? cancellationToken)
Parameters
inputPlayliststringThe playlist content specifying files to concatenate.
outputFilePathstringThe path for the output concatenated file.
cancellationTokenCancellationToken?Optional cancellation token to cancel the operation.
Returns
Execute(string[], string)
Executes concatenation of input files into a single output file.
public Task<bool> Execute(string[] inputFilePaths, string outputFilePath)
Parameters
inputFilePathsstring[]The array of input file paths to concatenate.
outputFilePathstringThe path for the output concatenated file.
Returns
Execute(string[], string, CancellationToken?)
Executes concatenation of input files into a single output file with cancellation support.
public Task<bool> Execute(string[] inputFilePaths, string outputFilePath, CancellationToken? cancellationToken)
Parameters
inputFilePathsstring[]The array of input file paths to concatenate.
outputFilePathstringThe path for the output concatenated file.
cancellationTokenCancellationToken?Optional cancellation token to cancel the operation.