| Package | Description |
|---|---|
| ws.schild.jave | |
| ws.schild.jave.encode |
| Modifier and Type | Method and Description |
|---|---|
void |
Encoder.encode(List<MultimediaObject> multimediaObjects,
File target,
EncodingAttributes attributes) |
void |
Encoder.encode(List<MultimediaObject> multimediaObjects,
File target,
EncodingAttributes attributes,
EncoderProgressListener listener)
Re-encode a multimedia file(s).
|
void |
Encoder.encode(MultimediaObject multimediaObject,
File target,
EncodingAttributes attributes)
Re-encode a multimedia file(s).
|
void |
Encoder.encode(MultimediaObject multimediaObject,
File target,
EncodingAttributes attributes,
EncoderProgressListener listener)
Re-encode a multimedia file.
|
| Modifier and Type | Method and Description |
|---|---|
EncodingAttributes |
EncodingAttributes.setAudioAttributes(AudioAttributes audioAttributes)
Sets the attributes for the encoding of the audio stream in the target multimedia file.
|
EncodingAttributes |
EncodingAttributes.setDecodingThreads(int decodingThreads)
Number of threads to use for decoding (if supported by codec) -1 means use default of ffmpeg
|
EncodingAttributes |
EncodingAttributes.setDuration(Float duration)
Sets the duration (seconds) of the re-encoded stream.
|
EncodingAttributes |
EncodingAttributes.setEncodingThreads(Integer encodingThreads)
Number of threads to use for encoding (if supported by codec) null means use default of ffmpeg
|
EncodingAttributes |
EncodingAttributes.setExtraContext(Map<String,String> context)
Adds all key/value pairs from context to the extraContext private variable.Meant to be used in
conjunction with
Encoder.addOptionAtIndex(EncodingArgument, Integer).Add
context here and retrieve the context via an EncodingArgument. |
EncodingAttributes |
EncodingAttributes.setFilterThreads(int filterThreads)
ffmpeg uses multiple cores for filtering
|
EncodingAttributes |
EncodingAttributes.setInputFormat(String inputFormat)
Sets the format name for the source multimedia file.
|
EncodingAttributes |
EncodingAttributes.setLoop(boolean loop)
Sets if the inputs will be looped or not.
|
EncodingAttributes |
EncodingAttributes.setMapMetaData(boolean mapMetaData)
Copy over meta data from original file to new output if possible
|
EncodingAttributes |
EncodingAttributes.setOffset(Float offset)
Sets the start offset time (seconds).
|
EncodingAttributes |
EncodingAttributes.setOutputFormat(String format)
Sets the format name for the encoded target multimedia file.
|
EncodingAttributes |
EncodingAttributes.setSafe(Integer safe)
Are the file paths considered "safe": A file path is considered safe if it does not contain a
protocol specification and is relative and all components only contain characters from the
portable character set (letters, digits, period, underscore and hyphen) and have no period at
the beginning of a component.
|
EncodingAttributes |
EncodingAttributes.setVideoAttributes(VideoAttributes videoAttributes)
Sets the attributes for the encoding of the video stream in the target multimedia file.
|
| Modifier and Type | Method and Description |
|---|---|
Stream<String> |
EncodingArgument.getArguments(EncodingAttributes context)
Gets the Stream of arguments given the EncodingAttributes as context.
|
Stream<String> |
PredicateArgument.getArguments(EncodingAttributes context) |
Stream<String> |
SimpleArgument.getArguments(EncodingAttributes context) |
Stream<String> |
ValueArgument.getArguments(EncodingAttributes context) |
protected Boolean |
ValueArgument.isPresent(EncodingAttributes context) |
| Constructor and Description |
|---|
PredicateArgument(ArgType argType,
String argument,
Predicate<EncodingAttributes> predicate) |
PredicateArgument(ArgType argType,
String argument1,
String argument2,
Predicate<EncodingAttributes> predicate) |
SimpleArgument(ArgType argumentType,
Function<EncodingAttributes,Stream<String>> getArguments) |
ValueArgument(ArgType argType,
String argumentName,
Function<EncodingAttributes,Optional<String>> valueGetter) |
Copyright © 2020. All rights reserved.