public class VideoAttributes extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
VideoAttributes.X264_PROFILE |
| Modifier and Type | Field and Description |
|---|---|
static String |
DIRECT_STREAM_COPY
This value can be setted in the codec field to perform a direct stream
copy, without re-encoding of the audio stream.
|
| Constructor and Description |
|---|
VideoAttributes() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(VideoFilter videoFilter) |
Integer |
getQuality() |
ArrayList<VideoFilter> |
getVideoFilters() |
VideoAttributes.X264_PROFILE |
getX264Profile() |
boolean |
isFaststart() |
VideoAttributes |
setBitRate(Integer bitRate)
Sets the bitrate value for the encoding process.
|
VideoAttributes |
setCodec(String codec)
Sets the codec name for the encoding process.
|
VideoAttributes |
setFaststart(boolean faststart) |
VideoAttributes |
setFrameRate(Integer frameRate)
Sets the frame rate value for the encoding process.
|
VideoAttributes |
setQuality(Integer quality)
The video quality value for the encoding process.
|
VideoAttributes |
setSize(VideoSize size)
Sets the video size for the encoding process.
|
VideoAttributes |
setTag(String tag)
Sets the forced tag/fourcc value for the video stream.
|
VideoAttributes |
setX264Profile(VideoAttributes.X264_PROFILE x264Profile) |
String |
toString() |
public static final String DIRECT_STREAM_COPY
public VideoAttributes setCodec(String codec)
Encoder.getVideoEncoders().
A special value can be picked from
DIRECT_STREAM_COPY.codec - The codec name for the encoding process.public VideoAttributes setTag(String tag)
tag - The the forced tag/fourcc value for the video stream.public VideoAttributes setBitRate(Integer bitRate)
bitRate - The bitrate value for the encoding process.public VideoAttributes setFrameRate(Integer frameRate)
frameRate - The frame rate value for the encoding process.public VideoAttributes setSize(VideoSize size)
size - he video size for the encoding process.public boolean isFaststart()
public void addFilter(VideoFilter videoFilter)
public ArrayList<VideoFilter> getVideoFilters()
public VideoAttributes setFaststart(boolean faststart)
faststart - the faststart to setpublic Integer getQuality()
public VideoAttributes setQuality(Integer quality)
quality - the quality to setpublic VideoAttributes.X264_PROFILE getX264Profile()
public VideoAttributes setX264Profile(VideoAttributes.X264_PROFILE x264Profile)
x264Profile - the x264Profile to setCopyright © 2020. All rights reserved.