Class Stream
java.lang.Object
com.github.kokorin.jaffree.ffmpeg.Stream
Represents audio/video stream.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns stream number of channels for audio stream or null for other stream types.Return stream height for video stream or null for other stream types.intgetId()Returns stream sample rate for audio stream or null for other stream types.getType()getWidth()Return stream width for video stream or null for other stream types.setChannels(int channels) setHeight(int height) setId(int id) setResolution(int width, int height) Sets both width and height.setSampleRate(long sampleRate) setTimebase(Long timebase) setType(Stream.Type type) setWidth(int width) toString()
-
Constructor Details
-
Stream
public Stream()
-
-
Method Details
-
getId
public int getId()- Returns:
- stream id
-
setId
- Parameters:
id- stream id- Returns:
- this
-
getType
- Returns:
- stream type
-
setType
- Parameters:
type- stream type- Returns:
- this
-
getTimebase
- Returns:
- stream timebase
-
setTimebase
- Parameters:
timebase- stream timebase- Returns:
- this
-
getWidth
Return stream width for video stream or null for other stream types.- Returns:
- stream width
-
setWidth
- Parameters:
width- stream width- Returns:
- this
-
getHeight
Return stream height for video stream or null for other stream types.- Returns:
- stream height
-
setHeight
- Parameters:
height- stream width- Returns:
- this
-
setResolution
Sets both width and height.- Parameters:
width- stream widthheight- stream height- Returns:
- this
-
getSampleRate
Returns stream sample rate for audio stream or null for other stream types.- Returns:
- sample rate
-
setSampleRate
- Parameters:
sampleRate- sample rate- Returns:
- this
-
getChannels
Returns stream number of channels for audio stream or null for other stream types.- Returns:
- number of channels
-
setChannels
- Parameters:
channels- number of audio channels.- Returns:
- this
-
toString
-