public class VideoAttributes extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
DIRECT_STREAM_COPY
This value can be set 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) |
Optional<Integer> |
getBitRate()
Returns the bitrate value for the encoding process.
|
Optional<String> |
getCodec()
Returns the codec name for the encoding process.
|
Optional<FilterGraph> |
getComplexFiltergraph() |
Optional<Integer> |
getFrameRate()
Returns the frame rate value for the encoding process.
|
Optional<String> |
getPixelFormat() |
Optional<Integer> |
getQuality() |
Optional<VideoSize> |
getSize()
Returns the video size for the encoding process.
|
Optional<String> |
getTag()
Returns the the forced tag/fourcc value for the video stream.
|
ArrayList<VideoFilter> |
getVideoFilters() |
Optional<VsyncMethod> |
getVsync() |
Optional<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 |
setComplexFiltergraph(FilterGraph complexFiltergraph) |
VideoAttributes |
setFaststart(boolean faststart) |
VideoAttributes |
setFrameRate(Integer frameRate)
Sets the frame rate value for the encoding process.
|
VideoAttributes |
setPixelFormat(String pixelFormat) |
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 |
setVsync(VsyncMethod vsync) |
VideoAttributes |
setX264Profile(X264_PROFILE x264Profile) |
String |
toString() |
public static final String DIRECT_STREAM_COPY
public Optional<String> getCodec()
public VideoAttributes setCodec(String codec)
Be sure the supplied codec name is in the list returned by Encoder.getVideoEncoders().
A special value can be picked from DIRECT_STREAM_COPY.
codec - The codec name for the encoding process.public Optional<String> getTag()
public VideoAttributes setTag(String tag)
tag - The the forced tag/fourcc value for the video stream.public Optional<Integer> getBitRate()
public VideoAttributes setBitRate(Integer bitRate)
bitRate - The bitrate value for the encoding process.public Optional<Integer> getFrameRate()
public VideoAttributes setFrameRate(Integer frameRate)
frameRate - The frame rate value for the encoding process.public Optional<VideoSize> getSize()
public VideoAttributes setSize(VideoSize size)
size - he video size for the encoding process.public boolean isFaststart()
public Optional<FilterGraph> getComplexFiltergraph()
public VideoAttributes setComplexFiltergraph(FilterGraph complexFiltergraph)
public void addFilter(VideoFilter videoFilter)
public ArrayList<VideoFilter> getVideoFilters()
public VideoAttributes setFaststart(boolean faststart)
faststart - the faststart to setpublic VideoAttributes setQuality(Integer quality)
quality - the quality to setpublic VideoAttributes setPixelFormat(String pixelFormat)
public Optional<VsyncMethod> getVsync()
public VideoAttributes setVsync(VsyncMethod vsync)
public Optional<X264_PROFILE> getX264Profile()
public VideoAttributes setX264Profile(X264_PROFILE x264Profile)
x264Profile - the x264Profile to setCopyright © 2020. All rights reserved.