public abstract class FFMPEGLocator
extends java.lang.Object
Encoder
to locate the FFMPEG executable path.Encoder
Constructor and Description |
---|
FFMPEGLocator() |
Modifier and Type | Method and Description |
---|---|
void |
chmodPlusX(java.lang.String executablePath,
java.lang.String chmodPath)
Makes a file (on disk) executable by calling 'chmod 755 path'.
|
void |
copyFile(java.lang.String resource,
java.io.File dest)
Copies a file bundled in the package to the supplied destination.
|
abstract boolean |
pickMe()
Decides if this FFMPEG locator should be used.
|
public abstract boolean pickMe()
public void copyFile(java.lang.String resource, java.io.File dest)
resource
- The name of the bundled file.dest
- The destination.java.lang.RuntimeException
- If an unexpected error occurs.public void chmodPlusX(java.lang.String executablePath, java.lang.String chmodPath) throws java.io.IOException
executablePath
- The name of the file on disk.chmodPath
- The path for the chmod executable. E.g. "/bin/chmod"java.io.IOException
- If an unexpected error occurs.