Package net.bramp.ffmpeg
Class FFmpeg
java.lang.Object
net.bramp.ffmpeg.FFmpeg
Wrapper around FFmpeg
- Author:
- bramp
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Stringstatic final Stringstatic final Fractionstatic final Fractionstatic final Fractionstatic final Fraction -
Constructor Summary
ConstructorsConstructorDescriptionFFmpeg()FFmpeg(String path, ProcessFunction runFunction) FFmpeg(ProcessFunction runFunction) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()codecs()protected ProgressParsercreateProgressParser(ProgressListener listener) formats()getPath()booleanisFFmpeg()Returns true if the binary we are using is the true ffmpeg.Returns the full path to the binary with arguments appended.voidRuns the binary (ffmpeg) with the supplied args.voidrun(FFmpegBuilder builder) voidrun(FFmpegBuilder builder, ProgressListener listener) protected voidversion()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
-