Class Subtitle
java.lang.Object
com.github.kokorin.jaffree.ffprobe.Subtitle
- All Implemented Interfaces:
FrameSubtitle,PacketFrameSubtitle
Subtitle description.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAlways returnsStreamType.SUBTITLE.Returns data section which holds all the data provided by ffprobe.getPts()Returns presentation timestamp.Returns presentation time in seconds.
-
Constructor Details
-
Subtitle
CreatesSubtitledescription based on provided ffprobe data.- Parameters:
probeData- ffprobe data
-
-
Method Details
-
getProbeData
Returns data section which holds all the data provided by ffprobe.Use this method if you have to access properties which are not accessible through other getters.
- Returns:
- probe data
-
getPts
Returns presentation timestamp.Timebase is hardcoded in ffmpeg code and is equal to 1_000_000.
- Returns:
- pts
-
getPtsTime
Returns presentation time in seconds.- Returns:
- pts
-
getMediaType
Always returnsStreamType.SUBTITLE.- Returns:
- subtitle StreamType
-
getFormat
- Returns:
- stream format
-
getStartDisplayTime
- Returns:
- start display time
-
getEndDisplayTime
- Returns:
- end display time
-
getNumRects
- Returns:
- number of rectangles
-