public class MultimediaObject extends Object
| Constructor | Description |
|---|---|
MultimediaObject(File input) |
It builds an extractor using a
DefaultFFMPEGLocator instance to
locate the ffmpeg executable to use. |
MultimediaObject(File input,
FFMPEGLocator locator) |
It builds an extractor with a custom
FFMPEGLocator. |
| Modifier and Type | Method | Description |
|---|---|---|
File |
getFile() |
|
MultimediaInfo |
getInfo() |
Returns a set informations about a multimedia file, if its format is
supported for decoding.
|
void |
setFile(File file) |
public MultimediaObject(File input)
DefaultFFMPEGLocator instance to
locate the ffmpeg executable to use.input - Input file for creating MultimediaObjectpublic MultimediaObject(File input, FFMPEGLocator locator)
FFMPEGLocator.input - Input file for creating MultimediaObjectlocator - The locator picking up the ffmpeg executable used by the
extractor.public File getFile()
public void setFile(File file)
public MultimediaInfo getInfo() throws InputFormatException, EncoderException
InputFormatException - If the format of the source file cannot be
recognized and decoded.EncoderException - If a problem occurs calling the underlying
ffmpeg executable.Copyright © 2019. All rights reserved.