public class MatroskaSegment extends MatroskaBasePackage
Represents a SEGMENTINFO element containing general information about the SEGMENT in a Matroska video.
Learn more
Modifier and Type | Method and Description |
---|---|
Date |
getDateUtc()
Gets the date and time that the Segment was created by the muxing application or library.
|
Double |
getDuration()
Gets the duration of the SEGMENT.
|
String |
getMuxingApp()
Gets the full name of the application or library followed by the version number.
|
Double |
getScaledDuration()
Gets the scaled duration of the SEGMENT in milliseconds.
|
String |
getSegmentFilename()
Gets the filename corresponding to this Segment.
|
byte[] |
getSegmentUid()
Gets the unique 128 bit number identifying a SEGMENT.
|
long |
getTimecodeScale()
Gets the timecode scale value.
|
String |
getTitle()
Gets the general name of the Segment.
|
String |
getWritingApp()
Gets the full name of the application followed by the version number.
|
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, sanitize, setProperties, updateProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final byte[] getSegmentUid()
Gets the unique 128 bit number identifying a SEGMENT. Obviously, a file can only be referred to by another file if a SEGMENTUID is present, however, playback is possible without that UID.
public final String getSegmentFilename()
Gets the filename corresponding to this Segment.
public final long getTimecodeScale()
Gets the timecode scale value. Each scaled timecode in a MATROSKA file is multiplied by TIMECODESCALE to obtain the timecode in nanoseconds. Note that not all timecodes are scaled!
public final Double getDuration()
Gets the duration of the SEGMENT.
Please see TimecodeScale
for more information.
public final Date getDateUtc()
Gets the date and time that the Segment was created by the muxing application or library.
public final String getTitle()
Gets the general name of the Segment.
public final String getMuxingApp()
Gets the full name of the application or library followed by the version number.
public final String getWritingApp()
Gets the full name of the application followed by the version number.
public final Double getScaledDuration()
Gets the scaled duration of the SEGMENT in milliseconds.