Table of Contents

Class TSProgramEnumerator

Namespace
VisioForge.Core.MediaInfo
Assembly
VisioForge.Core.dll

Provides functionality to enumerate programs within MPEG Transport Stream (TS) files. MPEG-TS files can contain multiple programs (channels), each with its own set of video, audio, and subtitle streams. This class helps identify all unique programs within a TS file using the MediaInfo library for analysis.

public static class TSProgramEnumerator

Inheritance

Inherited Members

Methods

EnumeratePrograms(string)

Enumerates all unique program IDs found in an MPEG-TS file. Each program in a transport stream represents a separate channel or service, which may contain multiple elementary streams (video, audio, subtitles). This method scans all video streams and collects their associated program IDs.

public static int[] EnumeratePrograms(string filePath)

Parameters

filePath string

The full path to the MPEG-TS file to analyze.

Returns

int[]

An array of unique program IDs found in the transport stream. Returns an empty array if no programs are found or if the file is not a valid TS file.