public class Fmp4Muxing extends Muxing
Constructor and Description |
---|
Fmp4Muxing() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getInitSegmentName()
Init segment name
|
String |
getInitSegmentNameTemplate()
Segment naming policy containing a placeholder of the format '{rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) on each (re)start of the encoding.
|
PTSAlignMode |
getPtsAlignMode()
Alignment mode for composition / presentation timestamps (CTS/PTS).
|
Double |
getSegmentLength()
Length of the fragments in seconds (required)
|
String |
getSegmentNaming()
Segment naming policy
|
String |
getSegmentNamingTemplate()
Segment naming policy containing a placeholder of the format '{rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) on each (re)start of the encoding.
|
Integer |
getSegmentsMuxed()
Number of segments which have been encoded
|
Boolean |
getWriteDurationPerSample()
Writes the duration per sample into the sample entry in the Track Fragment Run Box.
|
int |
hashCode() |
void |
setInitSegmentName(String initSegmentName)
Init segment name
|
void |
setInitSegmentNameTemplate(String initSegmentNameTemplate)
Segment naming policy containing a placeholder of the format '{rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) on each (re)start of the encoding.
|
void |
setPtsAlignMode(PTSAlignMode ptsAlignMode)
Alignment mode for composition / presentation timestamps (CTS/PTS).
|
void |
setSegmentLength(Double segmentLength)
Length of the fragments in seconds (required)
|
void |
setSegmentNaming(String segmentNaming)
Segment naming policy
|
void |
setSegmentNamingTemplate(String segmentNamingTemplate)
Segment naming policy containing a placeholder of the format '{rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) on each (re)start of the encoding.
|
void |
setWriteDurationPerSample(Boolean writeDurationPerSample)
Writes the duration per sample into the sample entry in the Track Fragment Run Box.
|
String |
toString() |
addOutputsItem, addStreamsItem, getAvgBitrate, getIgnoredBy, getMaxBitrate, getMinBitrate, getOutputs, getStreamConditionsMode, getStreams, setOutputs, setStreamConditionsMode, setStreams
getCreatedAt, getCustomData, getDescription, getModifiedAt, getName, putCustomDataItem, setCustomData, setDescription, setName
getId
public Double getSegmentLength()
public void setSegmentLength(Double segmentLength)
segmentLength
- Length of the fragments in seconds (required)public String getSegmentNaming()
public void setSegmentNaming(String segmentNaming)
segmentNaming
- Segment naming policypublic String getSegmentNamingTemplate()
public void setSegmentNamingTemplate(String segmentNamingTemplate)
segmentNamingTemplate
- Segment naming policy containing a placeholder of the format '{rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) on each (re)start of the encoding. The resulting string will be copied to the segmentNaming property. Intended to avoid re-use of segment names after restarting a live encoding. If segmentNamingTemplate is set, segmentNaming must not be set.public String getInitSegmentName()
public void setInitSegmentName(String initSegmentName)
initSegmentName
- Init segment namepublic String getInitSegmentNameTemplate()
public void setInitSegmentNameTemplate(String initSegmentNameTemplate)
initSegmentNameTemplate
- Segment naming policy containing a placeholder of the format '{rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) on each (re)start of the encoding. The resulting string will be copied to the initSegmentName property. Intended to avoid re-use of segment names after restarting a live encoding. If initSegmentNameTemplate is set, initSegmentName must not be set.public Boolean getWriteDurationPerSample()
public void setWriteDurationPerSample(Boolean writeDurationPerSample)
writeDurationPerSample
- Writes the duration per sample into the sample entry in the Track Fragment Run Box. This could help to fix playback issues on legacy players. Enabling this flag increases the muxing overhead by 4 bytes per sample/frame.public Integer getSegmentsMuxed()
public PTSAlignMode getPtsAlignMode()
public void setPtsAlignMode(PTSAlignMode ptsAlignMode)
ptsAlignMode
- Alignment mode for composition / presentation timestamps (CTS/PTS). Only applies to h.264 and h.265Copyright © 2022. All rights reserved.