public class EncodingAttributes extends Object implements Serializable
| Constructor and Description |
|---|
EncodingAttributes() |
| Modifier and Type | Method and Description |
|---|---|
AudioAttributes |
getAudioAttributes()
Returns the attributes for the encoding of the audio stream in the target
multimedia file.
|
int |
getDecodingThreads()
Number of threads to use for decoding (if supported by codec)
-1 means use default of ffmpeg
|
Float |
getDuration()
Returns the duration (seconds) of the re-encoded stream.
|
int |
getEncodingThreads()
Number of threads to use for encoding (if supported by codec)
-1 means use default of ffmpeg
|
int |
getFilterThreads() |
String |
getFormat()
Returns the format name for the encoded target multimedia file.
|
Float |
getOffset()
Returns the start offset time (seconds).
|
VideoAttributes |
getVideoAttributes()
Returns the attributes for the encoding of the video stream in the target
multimedia file.
|
boolean |
isMapMetaData() |
EncodingAttributes |
setAudioAttributes(AudioAttributes audioAttributes)
Sets the attributes for the encoding of the audio stream in the target
multimedia file.
|
EncodingAttributes |
setDecodingThreads(int decodingThreads)
Number of threads to use for decoding (if supported by codec)
-1 means use default of ffmpeg
|
EncodingAttributes |
setDuration(Float duration)
Sets the duration (seconds) of the re-encoded stream.
|
EncodingAttributes |
setEncodingThreads(int encodingThreads)
Number of threads to use for encoding (if supported by codec)
-1 means use default of ffmpeg
|
EncodingAttributes |
setFilterThreads(int filterThreads)
ffmpeg uses multiple cores for filtering
|
EncodingAttributes |
setFormat(String format)
Sets the format name for the encoded target multimedia file.
|
EncodingAttributes |
setMapMetaData(boolean mapMetaData)
Copy over meta data from original file to new output if possible
|
EncodingAttributes |
setOffset(Float offset)
Sets the start offset time (seconds).
|
EncodingAttributes |
setVideoAttributes(VideoAttributes videoAttributes)
Sets the attributes for the encoding of the video stream in the target
multimedia file.
|
String |
toString() |
public String getFormat()
public EncodingAttributes setFormat(String format)
Encoder.getSupportedEncodingFormats().format - The format name for the encoded target multimedia file.public Float getOffset()
public EncodingAttributes setOffset(Float offset)
offset - The start offset time (seconds).public Float getDuration()
public EncodingAttributes setDuration(Float duration)
duration - The duration (seconds) of the re-encoded stream.public AudioAttributes getAudioAttributes()
public EncodingAttributes setAudioAttributes(AudioAttributes audioAttributes)
audioAttributes - The attributes for the encoding of the audio
stream in the target multimedia file.public VideoAttributes getVideoAttributes()
public EncodingAttributes setVideoAttributes(VideoAttributes videoAttributes)
videoAttributes - The attributes for the encoding of the video
stream in the target multimedia file.public boolean isMapMetaData()
public EncodingAttributes setMapMetaData(boolean mapMetaData)
mapMetaData - the mapMetaData to setpublic int getFilterThreads()
public EncodingAttributes setFilterThreads(int filterThreads)
filterThreads - Maximum number of cores/cpus to use
-1 means use default of ffmpegpublic int getDecodingThreads()
public EncodingAttributes setDecodingThreads(int decodingThreads)
decodingThreads - the decodingThreads to setpublic int getEncodingThreads()
public EncodingAttributes setEncodingThreads(int encodingThreads)
encodingThreads - the encodingThreads to setCopyright © 2020. All rights reserved.