Package ws.schild.jave
Class MultimediaObject
- java.lang.Object
-
- ws.schild.jave.MultimediaObject
-
public class MultimediaObject extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MultimediaObject(java.io.File input)It builds an extractor using aDefaultFFMPEGLocatorinstance to locate the ffmpeg executable to use.MultimediaObject(java.io.File input, FFMPEGLocator locator)It builds an extractor with a customFFMPEGLocator.MultimediaObject(java.net.URL input)It builds an extractor using aDefaultFFMPEGLocatorinstance to locate the ffmpeg executable to use.
-
Method Summary
Modifier and Type Method Description java.io.FilegetFile()MultimediaInfogetInfo()Returns a set informations about a multimedia file, if its format is supported for decoding.java.net.URLgetURL()booleanisURL()Check if we have a file or an URLvoidsetFile(java.io.File file)voidsetUR(java.net.URL input)
-
-
-
Constructor Detail
-
MultimediaObject
public MultimediaObject(java.io.File input)
It builds an extractor using aDefaultFFMPEGLocatorinstance to locate the ffmpeg executable to use.- Parameters:
input- Input file for creating MultimediaObject
-
MultimediaObject
public MultimediaObject(java.net.URL input)
It builds an extractor using aDefaultFFMPEGLocatorinstance to locate the ffmpeg executable to use.- Parameters:
input- Input URL for creating MultimediaObject
-
MultimediaObject
public MultimediaObject(java.io.File input, FFMPEGLocator locator)It builds an extractor with a customFFMPEGLocator.- Parameters:
input- Input file for creating MultimediaObjectlocator- The locator picking up the ffmpeg executable used by the extractor.
-
-
Method Detail
-
getFile
public java.io.File getFile()
- Returns:
- file
-
getURL
public java.net.URL getURL()
-
setFile
public void setFile(java.io.File file)
-
setUR
public void setUR(java.net.URL input)
-
isURL
public boolean isURL()
Check if we have a file or an URL- Returns:
- true if this object references an URL
-
getInfo
public MultimediaInfo getInfo() throws InputFormatException, EncoderException
Returns a set informations about a multimedia file, if its format is supported for decoding.- Returns:
- A set of informations about the file and its contents.
- Throws:
InputFormatException- If the format of the source file cannot be recognized and decoded.EncoderException- If a problem occurs calling the underlying ffmpeg executable.
-
-