Class Stream
java.lang.Object
com.github.kokorin.jaffree.ffprobe.Stream
- All Implemented Interfaces:
TagAware
Program description.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns number of bits per sample of audio stream, or null.Returns channels layout of audio stream, or null.Returns number of channels in audio stream, or null.Returns chroma location of video stream, or null.Returns hexadecimal representation of fourcc codec tag, e.g.Returns string representation of fourcc codec tag, e.g.Deprecated.removed in ffmpeg source codeReturns coded height of video stream, or null.Returns coded width of video stream, or null.Returns chromaticity coordinates of the source primaries of video stream, or null.Returns visual content value range of video stream, or null.Returns YUV color space type of video stream, or null.Returns color transfer characteristic of video stream, or null.Returns display aspect ratio (DAR) of video stream, or null.Stream duration in stream timebase units.Returns extra binary data needed for initializing the decoder, codec-dependent.Returns extra binary data hash.Returns field order of video stream, or null.Returns height of video or subtitle stream, or null.getId()Returns format-specific stream ID.getIndex()getLevel()Returns codec level.Returns pixel format of video stream, or null.Returns data section which holds all the data provided by ffprobe.getRefs()Returns real base framerate of the stream.Returns sample aspect ratio (SAR) of video stream, or null.Returns sample format of audio stream, or null.Returns sample rate of audio stream, or null.Returns additional stream data that can be provided by the container.Returns presentation timestamp of the first frame of the stream in presentation order.Returns time (in seconds) of the first frame of the stream in presentation order.Timebase is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented.Deprecated.removed in ffmpeg source codegetWidth()Returns width of video or subtitle stream, or null.Returns number of delayed frames of video stream, or null.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
-
Stream
CreatesStreamdescription 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
-
getId
Returns format-specific stream ID.- Returns:
- stream ID
-
getIndex
- Returns:
- stream index
-
getDisposition
- Returns:
- stream disposition
-
getSideDataList
Returns additional stream data that can be provided by the container.- Returns:
- side data
-
getCodecName
- Returns:
- codec name
-
getCodecLongName
- Returns:
- codec long name
-
getProfile
- Returns:
- codec profile
-
getLevel
Returns codec level. Video only.- Returns:
- codec level
-
getCodecType
- Returns:
- codec type
-
getCodecTimeBase
Deprecated.removed in ffmpeg source code- Returns:
- codec time base
-
getCodecTag
Returns hexadecimal representation of fourcc codec tag, e.g.0x31637661.- Returns:
- codec tag
- See Also:
-
getCodecTagString
Returns string representation of fourcc codec tag, e.g.avc1.- Returns:
- codec tag
- See Also:
-
getExtradata
Returns extra binary data needed for initializing the decoder, codec-dependent.- Returns:
- extradata
-
getExtradataHash
Returns extra binary data hash. Extradata is needed for initializing the decoder, codec-dependent.- Returns:
- extradata hash
-
getWidth
Returns width of video or subtitle stream, or null.- Returns:
- width
- See Also:
-
getHeight
Returns height of video or subtitle stream, or null.- Returns:
- height
- See Also:
-
getCodedWidth
Returns coded width of video stream, or null.- Returns:
- coded width
-
getCodedHeight
Returns coded height of video stream, or null.- Returns:
- coded height
-
hasBFrames
Returns number of delayed frames of video stream, or null.- Returns:
- number of delayed frames
-
getSampleAspectRatio
Returns sample aspect ratio (SAR) of video stream, or null.- Returns:
- sar
-
getDisplayAspectRatio
Returns display aspect ratio (DAR) of video stream, or null.- Returns:
- dar
-
getPixFmt
Returns pixel format of video stream, or null.- Returns:
- pixel format
-
getColorRange
Returns visual content value range of video stream, or null.- Returns:
- color range
- See Also:
-
getColorSpace
Returns YUV color space type of video stream, or null.- Returns:
- color space
- See Also:
-
getColorTransfer
Returns color transfer characteristic of video stream, or null.- Returns:
- color transfer
- See Also:
-
getColorPrimaries
Returns chromaticity coordinates of the source primaries of video stream, or null.- Returns:
- color primaries
- See Also:
-
getChromaLocation
Returns chroma location of video stream, or null.- Returns:
- chroma location
- See Also:
-
getFieldOrder
Returns field order of video stream, or null.- Returns:
- field order
- See Also:
-
getTimecode
Deprecated.removed in ffmpeg source codeReturns mpeg timecode string of video stream, or null.- Returns:
- timecode
-
getRefs
- Returns:
- number of reference frames
-
getSampleFmt
Returns sample format of audio stream, or null.- Returns:
- sample format
-
getSampleRate
Returns sample rate of audio stream, or null.- Returns:
- sample rate
-
getChannels
Returns number of channels in audio stream, or null.- Returns:
- number of channels
-
getChannelLayout
Returns channels layout of audio stream, or null.- Returns:
- channels layout
-
getBitsPerSample
Returns number of bits per sample of audio stream, or null.- Returns:
- bits per sample
-
getRFrameRate
Returns real base framerate of the stream.This is the lowest framerate with which all timestamps can be represented accurately (it is the least common multiple of all framerates in the stream).
Note, this value is just a guess! For example, if the time base is 1/90000 and all frames have either approximately 3600 or 1800 timer ticks, then r_frame_rate will be 50/1.
- Returns:
- base framerate
-
getAvgFrameRate
- Returns:
- average framerate
-
getTimeBase
Timebase is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented.- Returns:
- stream timebase
-
getStartPts
Returns presentation timestamp of the first frame of the stream in presentation order.- Returns:
- start PTS
-
getStartTime
Returns time (in seconds) of the first frame of the stream in presentation order.- Returns:
- start time
-
getDurationTs
Stream duration in stream timebase units.- Returns:
- duration in timebase units
-
getDuration
- Returns:
- duration in seconds
-
getBitRate
- Returns:
- bit rate
-
getMaxBitRate
- Returns:
- max bit rate
-
getBitsPerRawSample
- Returns:
- bits per raw sample
-
getNbFrames
- Returns:
- number of frames
-
getNbReadFrames
- Returns:
- number of read frames
-
getNbReadPackets
- Returns:
- number of read packets
-