ILIAS
release_4-3 Revision
|
FFmpeg wrapper. More...
Public Member Functions | |
getPossibleTargetMimeTypes ($a_source_mime_type) | |
Get possible target formats. | |
exec ($args) | |
Execute ffmpeg. | |
getFileInfo () | |
Get file info. | |
getLastReturnValues () | |
Get last return values. |
Static Public Member Functions | |
static | enabled () |
Checks, whether FFmpeg support is enabled (path is set in the setup) | |
static | getTargetMimeTypes () |
Get target mime types. | |
static | getSourceMimeTypes () |
Get source mime types. | |
static | supportsImageExtraction ($a_mime) |
Check if mime type supports image extraction. | |
static | getSupportedCodecsInfo () |
Get all supported codecs. | |
static | getSupportedFormatsInfo () |
Get all supported formats. | |
static | convert ($a_file, $a_target_mime, $a_target_dir="", $a_target_filename="") |
Convert file to target mime type. | |
static | extractImage ($a_file, $a_target_filename, $a_target_dir="", $a_sec=1) |
Extract image from video file. |
Static Public Attributes | |
static | $formats |
Formats handled by ILIAS. | |
static | $last_return = array() |
Static Private Member Functions | |
static | getCmd () |
Get ffmpeg command. |
|
static |
Convert file to target mime type.
string | $a_file | source file (full path included) |
string | $a_target_mime | target mime type |
string | $a_target_dir | target directory (no trailing "/") |
string | $a_target_filename | target file name (no path!) |
Definition at line 203 of file class.ilFFmpeg.php.
References $cmd, $ret, ilUtil\escapeShellArg(), and exec().
|
static |
Checks, whether FFmpeg support is enabled (path is set in the setup)
@return |
Definition at line 51 of file class.ilFFmpeg.php.
Referenced by ilObjMediaCastGUI\editCastItemObject().
ilFFmpeg::exec | ( | $args | ) |
Execute ffmpeg.
@return |
Definition at line 152 of file class.ilFFmpeg.php.
References ilUtil\execQuoted().
Referenced by convert(), extractImage(), getSupportedCodecsInfo(), and getSupportedFormatsInfo().
|
static |
Extract image from video file.
string | $a_file | source file (full path included) |
string | $a_target_dir | target directory (no trailing "/") |
string | $a_target_filename | target file name (no path!) |
Definition at line 264 of file class.ilFFmpeg.php.
References $cmd, $ret, ilUtil\escapeShellArg(), and exec().
Referenced by ilObjMediaCastGUI\extractPreviewImageObject().
|
staticprivate |
ilFFmpeg::getFileInfo | ( | ) |
Get file info.
@return |
Definition at line 187 of file class.ilFFmpeg.php.
ilFFmpeg::getLastReturnValues | ( | ) |
Get last return values.
@return |
Definition at line 250 of file class.ilFFmpeg.php.
References $last_return.
Referenced by ilObjMediaCastGUI\convertFileObject(), and ilObjMediaCastGUI\extractPreviewImageObject().
ilFFmpeg::getPossibleTargetMimeTypes | ( | $a_source_mime_type | ) |
Get possible target formats.
@return |
Definition at line 121 of file class.ilFFmpeg.php.
|
static |
Get source mime types.
@return |
Definition at line 88 of file class.ilFFmpeg.php.
|
static |
Get all supported codecs.
Definition at line 162 of file class.ilFFmpeg.php.
References exec().
|
static |
Get all supported formats.
Definition at line 174 of file class.ilFFmpeg.php.
References $formats, and exec().
Referenced by ilObjMediaObjectGUI\showVideoToolObject().
|
static |
Get target mime types.
(Please note, that we do not list all possible encoders here, only the ones that are desired for the use in ILIAS)
@return |
Definition at line 69 of file class.ilFFmpeg.php.
|
static |
Check if mime type supports image extraction.
string | $a_mime | mime type |
Definition at line 106 of file class.ilFFmpeg.php.
Referenced by ilObjMediaCastGUI\editCastItemObject().
|
static |
Formats handled by ILIAS.
Note: In general the mime types do not reflect the complexity of media container/codec variants. For source formats no specification is needed here. For target formats we use fixed parameters that should result in best web media practice.
Definition at line 20 of file class.ilFFmpeg.php.
Referenced by getSupportedFormatsInfo().
|
static |
Definition at line 43 of file class.ilFFmpeg.php.
Referenced by getLastReturnValues().