public class MultimediaObject extends Object
| Constructor and Description |
|---|
MultimediaObject(File input)
It builds an extractor using a
DefaultFFMPEGLocator instance to locate the ffmpeg
executable to use. |
MultimediaObject(File input,
ProcessLocator locator)
It builds an extractor with a custom
FFMPEGProcess. |
MultimediaObject(URL input)
It builds an extractor using a
DefaultFFMPEGLocator instance to locate the ffmpeg
executable to use. |
MultimediaObject(URL input,
boolean readURLOnce)
It builds an extractor using a
DefaultFFMPEGLocator instance to locate the ffmpeg
executable to use. |
| Modifier and Type | Method and Description |
|---|---|
File |
getFile() |
MultimediaInfo |
getInfo()
Returns a set informations about a multimedia file, if its format is supported for decoding.
|
URL |
getURL() |
boolean |
isReadURLOnce() |
boolean |
isURL()
Check if we have a file or an URL
|
void |
setFile(File file) |
void |
setReadURLOnce(boolean readURLOnce) |
void |
setUR(URL input) |
String |
toString() |
public MultimediaObject(File input)
DefaultFFMPEGLocator instance to locate the ffmpeg
executable to use.input - Input file for creating MultimediaObjectpublic MultimediaObject(URL input)
DefaultFFMPEGLocator instance to locate the ffmpeg
executable to use.input - Input URL for creating MultimediaObjectpublic MultimediaObject(URL input, boolean readURLOnce)
DefaultFFMPEGLocator instance to locate the ffmpeg
executable to use.input - Input URL for creating MultimediaObjectreadURLOnce - When true, we try to not read the source more than once One of the side
effects is, that no progressbar is available.public MultimediaObject(File input, ProcessLocator locator)
FFMPEGProcess.input - Input file for creating MultimediaObjectlocator - The locator picking up the ffmpeg executable used by the extractor.public void setReadURLOnce(boolean readURLOnce)
readURLOnce - the readURLOnce to setpublic File getFile()
public URL getURL()
public void setFile(File file)
public void setUR(URL input)
public boolean isURL()
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.public boolean isReadURLOnce()
Copyright © 2020. All rights reserved.