Table of Contents

Class Concatenator

Namespace
VAST.File.Utility
Assembly
VAST.File.dll

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

string

FileCache

Gets or sets the file cache for optimized file access.

public FileCache FileCache { get; set; }

Property Value

FileCache

Parameters

Gets the parsing parameters used for the output file.

public ParsingParameters Parameters { get; }

Property Value

ParsingParameters

Progress

Gets the current concatenation progress as a percentage (0-100).

public float Progress { get; }

Property Value

float

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

bool

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

inputFiles List<InputFileItem>

The list of input files to concatenate.

outputFilePath string

The path for the output concatenated file.

Returns

Task<bool>

A task that returns true if concatenation succeeded, false otherwise.

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

inputFiles List<InputFileItem>

The list of input files to concatenate.

outputFilePath string

The path for the output concatenated file.

cancellationToken CancellationToken?

Optional cancellation token to cancel the operation.

Returns

Task<bool>

A task that returns true if concatenation succeeded, false otherwise.

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

inputPlaylist string

The playlist content specifying files to concatenate.

outputFilePath string

The path for the output concatenated file.

Returns

Task<bool>

A task that returns true if concatenation succeeded, false otherwise.

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

inputPlaylist string

The playlist content specifying files to concatenate.

outputFilePath string

The path for the output concatenated file.

cancellationToken CancellationToken?

Optional cancellation token to cancel the operation.

Returns

Task<bool>

A task that returns true if concatenation succeeded, false otherwise.

Execute(string[], string)

Executes concatenation of input files into a single output file.

public Task<bool> Execute(string[] inputFilePaths, string outputFilePath)

Parameters

inputFilePaths string[]

The array of input file paths to concatenate.

outputFilePath string

The path for the output concatenated file.

Returns

Task<bool>

A task that returns true if concatenation succeeded, false otherwise.

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

inputFilePaths string[]

The array of input file paths to concatenate.

outputFilePath string

The path for the output concatenated file.

cancellationToken CancellationToken?

Optional cancellation token to cancel the operation.

Returns

Task<bool>

A task that returns true if concatenation succeeded, false otherwise.