Class Frame
java.lang.Object
com.github.kokorin.jaffree.ffprobe.Frame
- All Implemented Interfaces:
FrameSubtitle,PacketFrameSubtitle,TagAware
Frame description.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFrame timestamp in stream time_base units, estimated using various heuristics.Frame timestamp in seconds, estimated using various heuristics.The content of the picture is interlaced.getLogs()Returns logging information from the decoder about each frame according to the value set in loglevel.Possible return values: I -> Intra P -> Predicted B -> Bi-dir predicted S -> S(GMC)-VOP MPEG-4 i -> Switching Intra p -> Switching Predicted b -> BI type ? -> unknown/undefinedDTS in time_base units copied from the AVPacket.DTS in seconds copied from the AVPacket.Duration of the corresponding packet in stream time_base units, 0 if unknown.Duration of the corresponding packet in seconds, 0 if unknown.Reordered pos from the last AVPacket that has been input into the decoder.PTS in time_base units copied from the AVPacket that was decoded to produce this frame.PTS in seconds copied from the AVPacket that was decoded to produce this frame.Size of the corresponding packet containing the compressed frame.Returns data section which holds all the data provided by ffprobe.getPts()Presentation timestamp in timebase units (time when frame should be shown to user).Presentation timestamp in seconds (time when frame should be shown to user).When decoding, this signals how much the picture must be delayed.Return sample aspect ratio for the video frame, 0/1 if unknown/unspecified.Returns additional frame data that can be provided by the container.If the content is interlaced, is top field displayed first.getWidth()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
-
Frame
CreatesFramedescription based on provided data sections.- Parameters:
probeData- data section
-
-
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
-
getLogs
Returns logging information from the decoder about each frame according to the value set in loglevel.- Returns:
- logs
- See Also:
-
getSideDataList
Returns additional frame data that can be provided by the container. Frame can contain several types of side information.- Returns:
- side data for the frame
-
getPts
Presentation timestamp in timebase units (time when frame should be shown to user).Note: despite declared in ffprobe.xsd for ffprobe:frameType, this property has never been reported by ffprobe.
- Returns:
- pts
- See Also:
-
getPtsTime
Presentation timestamp in seconds (time when frame should be shown to user).Note: despite declared in ffprobe.xsd for ffprobe:frameType, this property has never been reported by ffprobe.
- Returns:
- pts in seconds
- See Also:
-
getMediaType
- Returns:
- media type
-
getStreamIndex
- Returns:
- corresponding stream id
-
getKeyFrame
- Returns:
- true if key frame
-
getPktPts
PTS in time_base units copied from the AVPacket that was decoded to produce this frame.- Returns:
- packet pts
-
getPktPtsTime
PTS in seconds copied from the AVPacket that was decoded to produce this frame.- Returns:
- packet pts
-
getPktDts
DTS in time_base units copied from the AVPacket. (if frame threading isn't used) This is also the Presentation time of this AVFrame calculated from only AVPacket.dts values without pts values.- Returns:
- packet DTS
-
getPktDtsTime
DTS in seconds copied from the AVPacket. (if frame threading isn't used) This is also the Presentation time of this AVFrame calculated from only AVPacket.dts values without pts values.- Returns:
- packet DTS time
-
getBestEffortTimestamp
Frame timestamp in stream time_base units, estimated using various heuristics.- encoding: unused
- decoding: set by libavcodec, read by user
- Returns:
- best effort PTS
-
getBestEffortTimestampTime
Frame timestamp in seconds, estimated using various heuristics.- encoding: unused
- decoding: set by libavcodec, read by user
- Returns:
- best effort time
-
getPktDuration
Duration of the corresponding packet in stream time_base units, 0 if unknown.- Returns:
- packet duration
-
getPktDurationTime
Duration of the corresponding packet in seconds, 0 if unknown.- Returns:
- packet duration
-
getPktPos
Reordered pos from the last AVPacket that has been input into the decoder.- Returns:
- packet position
-
getPktSize
Size of the corresponding packet containing the compressed frame.It is set to a negative value if unknown.
- Returns:
- packet size
-
getSampleFmt
- Returns:
- audio samples format
-
getNbSamples
- Returns:
- number of audio sample in a single channel
-
getChannels
- Returns:
- number of channels
-
getChannelLayout
- Returns:
- channels layout
-
getWidth
- Returns:
- video frame width
-
getHeight
- Returns:
- video frame height
-
getPixFmt
- Returns:
- video frame pixel format
-
getSampleAspectRatio
Return sample aspect ratio for the video frame, 0/1 if unknown/unspecified.- Returns:
- aspect ration
-
getPictType
Possible return values:- I -> Intra
- P -> Predicted
- B -> Bi-dir predicted
- S -> S(GMC)-VOP MPEG-4
- i -> Switching Intra
- p -> Switching Predicted
- b -> BI type
- ? -> unknown/undefined
- Returns:
- picture type of the frame
- See Also:
-
getCodedPictureNumber
- Returns:
- picture number in bitstream order
-
getDisplayPictureNumber
- Returns:
- picture number in display order
-
getInterlacedFrame
The content of the picture is interlaced.- Returns:
- true if interlaced
-
getTopFieldFirst
If the content is interlaced, is top field displayed first.- Returns:
- true if top field is displayed first
-
getRepeatPict
When decoding, this signals how much the picture must be delayed.extra_delay = repeat_pict / (2*fps)
- Returns:
- picture extra delay
-