Class Packet
java.lang.Object
com.github.kokorin.jaffree.ffprobe.Packet
- All Implemented Interfaces:
FrameSubtitle,PacketFrameSubtitle,TagAware
Packet description.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns packet media type.Deprecated.description from ffmpeg source code: this was required for Matroska subtitles, whose duration values could overflow when the duration field was still an int.Deprecated.description from ffmpeg source code: this was required for Matroska subtitles, whose duration values could overflow when the duration field was still an int.getData()Returns packet data.Returns packet data hash.getDts()Returns Packet decompression timestamp inStreamtimebase units (the time at which the packet is decompressed).Returns Packet decompression timestamp in seconds (the time at which the packet is decompressed).Returns duration of this packet inStreamtimebase units, 0 if unknown.Returns duration of this packet in seconds, 0 if unknown.getFlags()Returns a combination of binary AV_PKT_FLAG values.getPos()Returns packet byte position in stream, -1 if unknown.Returns data section which holds all the data provided by ffprobe.getPts()Returns Packet presentation timestamp inStreamtimebase units (the time at which the decompressed packet will be presented to the user).Returns Packet presentation timestamp in seconds (time when frame should be shown to user).Returns additional packet data that can be provided by the container.getSize()Returns packet size.Returns packet stream index.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.kokorin.jaffree.ffprobe.TagAware
getTag, getTagDouble, getTagFloat, getTagInteger, getTagLong
-
Constructor Details
-
Packet
CreatesPacketdescription 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.
- Specified by:
getProbeDatain interfaceTagAware- Returns:
- probe data
-
getPts
Returns Packet presentation timestamp inStreamtimebase units (the time at which the decompressed packet will be presented to the user).- Returns:
- pts
- See Also:
-
getPtsTime
Returns Packet presentation timestamp in seconds (time when frame should be shown to user).- Returns:
- pts in seconds
-
getSideDataList
Returns additional packet data that can be provided by the container. Packet can contain several types of side information.- Returns:
- side data for the packet
-
getCodecType
Returns packet media type.- Returns:
- media type
-
getStreamIndex
Returns packet stream index.- Returns:
- stream index
-
getDts
Returns Packet decompression timestamp inStreamtimebase units (the time at which the packet is decompressed).- Returns:
- dts
- See Also:
-
getDtsTime
Returns Packet decompression timestamp in seconds (the time at which the packet is decompressed).- Returns:
- pts in seconds
-
getDuration
Returns duration of this packet inStreamtimebase units, 0 if unknown. Equalsnext_pts - this_ptsin presentation order.- Returns:
- packet duration
-
getDurationTime
Returns duration of this packet in seconds, 0 if unknown.- Returns:
- duration in seconds
-
getConvergenceDuration
Deprecated.description from ffmpeg source code: this was required for Matroska subtitles, whose duration values could overflow when the duration field was still an int.Same as the duration field, but as int64_t.- Returns:
- packet duration
- See Also:
-
getConvergenceDurationTime
Deprecated.description from ffmpeg source code: this was required for Matroska subtitles, whose duration values could overflow when the duration field was still an int.Same as the duration_time field, but as int64_t.- Returns:
- duration in seconds
- See Also:
-
getSize
Returns packet size.- Returns:
- size
-
getPos
Returns packet byte position in stream, -1 if unknown.- Returns:
- position
-
getFlags
Returns a combination of binary AV_PKT_FLAG values.- Returns:
- binary flag
- See Also:
-
getData
Returns packet data.- Returns:
- packet data
-
getDataHash
Returns packet data hash.- Returns:
- packet data hash
-