Package net.bramp.ffmpeg.builder
Class HlsVariant
java.lang.Object
net.bramp.ffmpeg.builder.HlsVariant
Represents an HLS variant stream mapping.
Used with -var_stream_map to group audio, video, and subtitle streams.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAudio(int index) Adds an audio stream to this variant.addSubtitle(int index) Adds a subtitle stream to this variant.addVideo(int index) Adds a video stream to this variant.Sets the name for this variant.toString()
-
Constructor Details
-
HlsVariant
public HlsVariant()Constructs an empty HLS variant.
-
-
Method Details
-
addVideo
Adds a video stream to this variant.- Parameters:
index- The zero-based index of the video stream in the output.- Returns:
- this
-
addAudio
Adds an audio stream to this variant.- Parameters:
index- The zero-based index of the audio stream in the output.- Returns:
- this
-
addSubtitle
Adds a subtitle stream to this variant.- Parameters:
index- The zero-based index of the subtitle stream in the output.- Returns:
- this
-
setName
Sets the name for this variant.- Parameters:
name- The variant name (e.g., "1080p").- Returns:
- this
-
toString
-