Package net.bramp.ffmpeg
Class FFmpeg
java.lang.Object
net.bramp.ffmpeg.FFmpeg
Wrapper around FFmpeg
- Author:
- bramp
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
static final String
static final String
static final String
static final String
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String
static final String
static final Fraction
static final Fraction
static final Fraction
static final Fraction
-
Constructor Summary
ConstructorDescriptionFFmpeg()
FFmpeg
(String path, ProcessFunction runFunction) FFmpeg
(ProcessFunction runFunction) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
codecs()
protected ProgressParser
createProgressParser
(ProgressListener listener) formats()
getPath()
boolean
isFFmpeg()
Returns true if the binary we are using is the true ffmpeg.Returns the full path to the binary with arguments appended.void
Runs the binary (ffmpeg) with the supplied args.void
run
(FFmpegBuilder builder) void
run
(FFmpegBuilder builder, ProgressListener listener) protected void
version()
Returns the version string for this binary.protected BufferedReader
-
Field Details
-
FFMPEG
- See Also:
-
DEFAULT_PATH
-
FPS_30
-
FPS_29_97
-
FPS_24
-
FPS_23_976
-
AUDIO_MONO
- See Also:
-
AUDIO_STEREO
- See Also:
-
AUDIO_FORMAT_U8
- See Also:
-
AUDIO_FORMAT_S16
- See Also:
-
AUDIO_FORMAT_S32
- See Also:
-
AUDIO_FORMAT_FLT
- See Also:
-
AUDIO_FORMAT_DBL
- See Also:
-
AUDIO_DEPTH_U8
Deprecated.- See Also:
-
AUDIO_DEPTH_S16
Deprecated.- See Also:
-
AUDIO_DEPTH_S32
Deprecated.- See Also:
-
AUDIO_DEPTH_FLT
Deprecated.- See Also:
-
AUDIO_DEPTH_DBL
Deprecated.- See Also:
-
AUDIO_SAMPLE_8000
- See Also:
-
AUDIO_SAMPLE_11025
- See Also:
-
AUDIO_SAMPLE_12000
- See Also:
-
AUDIO_SAMPLE_16000
- See Also:
-
AUDIO_SAMPLE_22050
- See Also:
-
AUDIO_SAMPLE_32000
- See Also:
-
AUDIO_SAMPLE_44100
- See Also:
-
AUDIO_SAMPLE_48000
- See Also:
-
AUDIO_SAMPLE_96000
- See Also:
-
-
Constructor Details
-
FFmpeg
- Throws:
IOException
-
FFmpeg
- Throws:
IOException
-
FFmpeg
- Throws:
IOException
-
FFmpeg
- Throws:
IOException
-
-
Method Details
-
isFFmpeg
Returns true if the binary we are using is the true ffmpeg. This is to avoid conflict with avconv (from the libav project), that some symlink to ffmpeg.- Returns:
- true iff this is the official ffmpeg binary.
- Throws:
IOException
- If a I/O error occurs while executing ffmpeg.
-
codecs
- Throws:
IOException
-
formats
- Throws:
IOException
-
pixelFormats
- Throws:
IOException
-
createProgressParser
- Throws:
IOException
-
run
Runs the binary (ffmpeg) with the supplied args. Blocking until finished.- Parameters:
args
- The arguments to pass to the binary.- Throws:
IOException
- If there is a problem executing the binary.
-
run
- Throws:
IOException
-
run
- Throws:
IOException
-
builder
-
getPath
-
wrapInReader
-
throwOnError
- Throws:
IOException
-
version
Returns the version string for this binary.- Returns:
- the version string.
- Throws:
IOException
- If there is an error capturing output from the binary.
-
path
Returns the full path to the binary with arguments appended.- Parameters:
args
- The arguments to pass to the binary.- Returns:
- The full path and arguments to execute the binary.
- Throws:
IOException
- If there is an error capturing output from the binary
-