com.googlecode.fascinator.transformer.ffmpeg
Interface Ffmpeg

All Known Implementing Classes:
FfmpegImpl

public interface Ffmpeg

Wrapper for the FFMPEG program

Author:
Oliver Lucido

Field Summary
static String DEFAULT_BIN_METADATA
          Default extractor binary name
static String DEFAULT_BIN_TRANSCODE
          Default transcoder binary name
 
Method Summary
 String extract(File file)
          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()
          Test what level of functionality is available for ffmpeg on the current system.
 String transform(List<String> params, File location)
          Transform a file using given parameters
 

Field Detail

DEFAULT_BIN_TRANSCODE

static final String DEFAULT_BIN_TRANSCODE
Default transcoder binary name

See Also:
Constant Field Values

DEFAULT_BIN_METADATA

static final String DEFAULT_BIN_METADATA
Default extractor binary name

See Also:
Constant Field Values
Method Detail

testAvailability

String testAvailability()
Test what level of functionality is available for ffmpeg on the current system.

Returns:
String showing binary name or null

extract

String extract(File file)
               throws IOException
Extract metadata from the given file

Parameters:
file - to extract metadata from
Returns:
String containing the raw output
Throws:
IOException - if execution failed

transform

String transform(List<String> params,
                 File location)
                 throws IOException
Transform a file using given parameters

Parameters:
params - List of parameters to pass to the command line executable
location - A File object of the working directory to use during transcoding
Returns:
String containing the raw output
Throws:
IOException - if execution failed

getInfo

FfmpegInfo getInfo(File inputFile)
                   throws IOException
Extract and process metadata from the given file

Parameters:
file - to extract metadata from
Returns:
FfmpegInfo containing the processed output
Throws:
IOException - if execution failed

setEnvironmentVariable

void setEnvironmentVariable(String key,
                            String value)
Set an environment variable to be made available to the executing FFmpeg

Parameters:
key - : The name of environment variable
value - : The value to assign


Copyright © 2009-2014. All Rights Reserved.