it.sauronsoftware.jave
Class VideoAttributes

java.lang.Object
  extended by it.sauronsoftware.jave.VideoAttributes
All Implemented Interfaces:
java.io.Serializable

public class VideoAttributes
extends java.lang.Object
implements java.io.Serializable

Attributes controlling the video encoding process.

Author:
Carlo Pelliccia
See Also:
Serialized Form

Field Summary
static java.lang.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 Summary
VideoAttributes()
           
 
Method Summary
 void setBitRate(java.lang.Integer bitRate)
          Sets the bitrate value for the encoding process.
 void setCodec(java.lang.String codec)
          Sets the codec name for the encoding process.
 void setFrameRate(java.lang.Integer frameRate)
          Sets the frame rate value for the encoding process.
 void setSize(VideoSize size)
          Sets the video size for the encoding process.
 void setTag(java.lang.String tag)
          Sets the forced tag/fourcc value for the video stream.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DIRECT_STREAM_COPY

public static final java.lang.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.

See Also:
Constant Field Values
Constructor Detail

VideoAttributes

public VideoAttributes()
Method Detail

setCodec

public void setCodec(java.lang.String codec)
Sets the codec name for the encoding process. If null or not specified the encoder will perform a direct stream copy. Be sure the supplied codec name is in the list returned by Encoder.getVideoEncoders(). A special value can be picked from DIRECT_STREAM_COPY.

Parameters:
codec - The codec name for the encoding process.

setTag

public void setTag(java.lang.String tag)
Sets the forced tag/fourcc value for the video stream.

Parameters:
tag - The the forced tag/fourcc value for the video stream.

setBitRate

public void setBitRate(java.lang.Integer bitRate)
Sets the bitrate value for the encoding process. If null or not specified a default value will be picked.

Parameters:
bitRate - The bitrate value for the encoding process.

setFrameRate

public void setFrameRate(java.lang.Integer frameRate)
Sets the frame rate value for the encoding process. If null or not specified a default value will be picked.

Parameters:
frameRate - The frame rate value for the encoding process.

setSize

public void setSize(VideoSize size)
Sets the video size for the encoding process. If null or not specified the source video size will not be modified.

Parameters:
size - he video size for the encoding process.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object