Serialized Form
-
Package ws.schild.jave
-
Exception ws.schild.jave.EncoderException
class EncoderException extends Exception implements Serializable- serialVersionUID:
- 1L
-
Exception ws.schild.jave.InputFormatException
class InputFormatException extends EncoderException implements Serializable- serialVersionUID:
- 1L
-
-
Package ws.schild.jave.encode
-
Class ws.schild.jave.encode.AudioAttributes
class AudioAttributes extends Object implements Serializable- serialVersionUID:
- 2L
-
Serialized Fields
-
bitRate
Integer bitRate
The bitrate value for the encoding process. If null or not specified a default value will be picked. -
channels
Integer channels
The channels value (1=mono, 2=stereo) for the encoding process. If null or not specified a default value will be picked. -
codec
String codec
The codec name for the encoding process. If null or not specified the encoder will perform a direct stream copy. -
quality
Integer quality
The audio quality value for the encoding process. If null or not specified the ffmpeg default will be used -
samplingRate
Integer samplingRate
The samplingRate value for the encoding process. If null or not specified a default value will be picked. -
volume
Integer volume
The volume value for the encoding process. If null or not specified a default value will be picked. If 256 no volume change will be performed.
-
-
Class ws.schild.jave.encode.EncodingAttributes
class EncodingAttributes extends Object implements Serializable- serialVersionUID:
- 2473587816471032706L
-
Serialized Fields
-
audioAttributes
AudioAttributes audioAttributes
The attributes for the encoding of the audio stream in the target multimedia file. If null of not specified no audio stream will be encoded. It cannot be null if also the video field is null. -
decodingThreads
Integer decodingThreads
Number of threads to use for decoding (if supported by codec) -
duration
Float duration
The duration (seconds) of the re-encoded stream. If null or not specified the source stream, starting from the offset, will be completely re-encoded in the target stream. -
encodingThreads
Integer encodingThreads
Number of threads to use for encoding (if supported by codec) -
extraContext
HashMap<String,
String> extraContext Additional context for custom encoder options. Add context here and retrieve/use it by adding an EncodingArgument to your Encoder class viaEncoder.addOptionAtIndex(EncodingArgument, Integer) -
filterThreads
Integer filterThreads
Maximum number of cores/cpus to use for conversion.
Not set means we use ffmpeg's default. -
inputFormat
String inputFormat
The format name for the incoming multimedia file. -
loop
boolean loop
Should the input be treated as a loop -
mapMetaData
boolean mapMetaData
Should we try to copy over the meta data? -
offset
Float offset
The start offset time (seconds). If null or not specified no start offset will be applied. -
outputFormat
String outputFormat
The format name for the encoded target multimedia file. Be sure this format is supported (seeEncoder.getSupportedEncodingFormats(). -
safe
Integer safe
Are the file paths considered "safe"- See Also:
-
videoAttributes
VideoAttributes videoAttributes
The attributes for the encoding of the video stream in the target multimedia file. If null of not specified no video stream will be encoded. It cannot be null if also the audio field is null.
-
-
Class ws.schild.jave.encode.VideoAttributes
class VideoAttributes extends Object implements Serializable- serialVersionUID:
- 2L
-
Serialized Fields
-
bitRate
Integer bitRate
The bitrate value for the encoding process. If null or not specified a default value will be picked. -
codec
String codec
The codec name for the encoding process. If null or not specified the encoder will perform a direct stream copy. -
complexFiltergraph
FilterGraph complexFiltergraph
-
crf
Integer crf
Set the quality for constant quality mode. The lower the value, the better the quality and the larger the file size. Reference Range:[0, 51] -
faststart
boolean faststart
Encode the video with faststart mode, default OFFThe mov/mp4/ismv muxer supports fragmentation. Normally, a MOV/MP4 file has all the metadata about all packets stored in one location (written at the end of the file, it can be moved to the start for better playback by adding faststart to the movflags, or using the qt-faststart tool). A fragmented file consists of a number of fragments, where packets and metadata about these packets are stored together. Writing a fragmented file has the advantage that the file is decodable even if the writing is interrupted (while a normal MOV/MP4 is undecodable if it is not properly finished), and it requires less memory when writing very long files (since writing normal MOV/MP4 files stores info about every single packet in memory until the file is closed). The downside is that it is less compatible with other applications.
-
frameRate
Integer frameRate
The frame rate value for the encoding process. If null or not specified a default value will be picked. -
pixelFormat
String pixelFormat
-
preset
String preset
This option itemizes a range of choices from ultrafast (best speed) to placebo (best quality).PresetEnum -
quality
Integer quality
The audio quality value for the encoding process. If null or not specified the ffmpeg default will be used -
size
VideoSize size
The video size for the encoding process. If null or not specified the source video size will not be modified. -
tag
String tag
The the forced tag/fourcc value for the video stream. -
videoFilters
ArrayList<VideoFilter> videoFilters
-
vsync
VsyncMethod vsync
-
x264Profile
X264_PROFILE x264Profile
-
-
-
Package ws.schild.jave.info
-
Class ws.schild.jave.info.VideoSize
class VideoSize extends Object implements Serializable- serialVersionUID:
- 1L
-
-
Package ws.schild.jave.utils
-
Class ws.schild.jave.utils.AutoRemoveableFile
class AutoRemoveableFile extends File implements Serializable- serialVersionUID:
- 1270202558229293283L
-