Package | Description |
---|---|
be.tarsos.transcoder | |
be.tarsos.transcoder.ffmpeg |
Modifier and Type | Method and Description |
---|---|
Attributes |
DefaultAttributes.getAttributes() |
static Attributes |
Transcoder.getInfo(java.lang.String file)
Returns information about an audio file: the sampling rate, the number of
channels, the decoder, ...
|
Modifier and Type | Method and Description |
---|---|
static javax.sound.sampled.AudioInputStream |
Streamer.stream(java.lang.String source,
Attributes targetEncoding) |
static javax.sound.sampled.AudioFormat |
Streamer.streamAudioFormat(Attributes targetEncoding) |
static void |
Transcoder.transcode(java.io.File source,
java.io.File target,
Attributes targetEncoding)
Transcodes audio.
|
static void |
Transcoder.transcode(java.lang.String source,
java.lang.String target,
Attributes targetEncoding)
Transcodes audio.
|
static boolean |
Transcoder.transcodingRequired(java.lang.String target,
Attributes targetEncoding)
Checks if transcoding is required: it fetches information about the file
'target' and checks if the file has the expected format, number of
channels and sampling rate.
|
Modifier and Type | Method and Description |
---|---|
Attributes |
Encoder.getInfo(java.io.File source)
Returns a set informations about a multimedia file, if its format is
supported for decoding.
|
Modifier and Type | Method and Description |
---|---|
void |
Encoder.encode(java.io.File source,
java.io.File target,
Attributes attributes)
Re-encode a multimedia file.
|
static javax.sound.sampled.AudioFormat |
Encoder.getTargetAudioFormat(Attributes attributes)
Constructs the target audio format.
|
javax.sound.sampled.AudioInputStream |
Encoder.stream(java.lang.String source,
Attributes attributes) |