Package net.bramp.ffmpeg
Class FFprobe
java.lang.Object
net.bramp.ffmpeg.FFprobe
Wrapper around FFprobe
- Author:
- bramp
-
Constructor Summary
ConstructorDescriptionFFprobe()
FFprobe
(String path, ProcessFunction runFunction) FFprobe
(ProcessFunction runFunction) -
Method Summary
Modifier and TypeMethodDescriptiongetPath()
boolean
Returns true if the binary we are using is the true ffprobe.Returns the full path to the binary with arguments appended.void
Runs the binary (ffmpeg) with the supplied args.protected void
version()
Returns the version string for this binary.protected BufferedReader
-
Constructor Details
-
FFprobe
- Throws:
IOException
-
FFprobe
- Throws:
IOException
-
FFprobe
- Throws:
IOException
-
FFprobe
-
-
Method Details
-
probe
- Throws:
IOException
-
isFFprobe
Returns true if the binary we are using is the true ffprobe. This is to avoid conflict with avprobe (from the libav project), that some symlink to ffprobe.- Returns:
- true iff this is the official ffprobe binary.
- Throws:
IOException
- If a I/O error occurs while executing ffprobe.
-
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.
-
probe
- Throws:
IOException
-
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.
-
getPath
-
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
-