|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.googlecode.fascinator.transformer.ffmpeg.FfmpegImpl
public class FfmpegImpl
Wrapper for the FFMPEG program
| Field Summary |
|---|
| Fields inherited from interface com.googlecode.fascinator.transformer.ffmpeg.Ffmpeg |
|---|
DEFAULT_BIN_METADATA, DEFAULT_BIN_TRANSCODE |
| Constructor Summary | |
|---|---|
FfmpegImpl()
Instantiate using default binaries |
|
FfmpegImpl(String executable,
String metadata)
Instantiate using provided binaries (if found) |
|
| Method Summary | |
|---|---|
String |
extract(File inputFile)
Extract metadata from the given file |
FfmpegInfo |
getInfo(File inputFile)
Extract and process metadata from the given file |
void |
setEnvironmentVariable(String key,
String value)
Set an environment variable to be made available to the executing FFmpeg |
String |
testAvailability()
What level of functionality is available from FFmpeg on this system |
String |
transform(List<String> params,
File location)
Transform a file using the provided parameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FfmpegImpl()
public FfmpegImpl(String executable,
String metadata)
executable - Binary for transcodingmetadata - Binary for metadata extraction| Method Detail |
|---|
public String testAvailability()
testAvailability in interface Ffmpeg
public String extract(File inputFile)
throws IOException
extract in interface Ffmpegfile - to extract metadata from
IOException - if execution failed
public String transform(List<String> params,
File location)
throws IOException
transform in interface Ffmpegparams - List of parameters to provide the binarylocation - A File object of the working directory to use during transcoding
IOException - if execution failed
public FfmpegInfo getInfo(File inputFile)
throws IOException
getInfo in interface Ffmpegfile - to extract metadata from
IOException - if execution failed
public void setEnvironmentVariable(String key,
String value)
setEnvironmentVariable in interface Ffmpegkey - : The name of environment variablevalue - : The value to assign
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||