ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
FFmpeg wrapper. More...
Public Member Functions | |
getFileInfo () | |
Get file info. More... | |
Static Public Member Functions | |
static | enabled () |
Checks, whether FFmpeg support is enabled (path is set in the setup) More... | |
static | getTargetMimeTypes () |
Get target mime types. More... | |
static | getSourceMimeTypes () |
Get source mime types. More... | |
static | supportsImageExtraction ($a_mime) |
Check if mime type supports image extraction. More... | |
static | getPossibleTargetMimeTypes ($a_source_mime_type) |
Get possible target formats. More... | |
static | exec ($args) |
Execute ffmpeg. More... | |
static | getSupportedCodecsInfo () |
Get all supported codecs. More... | |
static | getSupportedFormatsInfo () |
Get all supported formats. More... | |
static | convert ($a_file, $a_target_mime, $a_target_dir="", $a_target_filename="") |
Convert file to target mime type. More... | |
static | getLastReturnValues () |
Get last return values. More... | |
static | extractImage ($a_file, $a_target_filename, $a_target_dir="", $a_sec=1) |
Extract image from video file. More... | |
Static Public Attributes | |
static | $formats |
Formats handled by ILIAS. More... | |
static | $last_return = array() |
Static Private Member Functions | |
static | getCmd () |
Get ffmpeg command. More... | |
|
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, and ilUtil\escapeShellArg().
Referenced by ilObjMediaCastGUI\convertFileObject().
|
static |
Checks, whether FFmpeg support is enabled (path is set in the setup)
Definition at line 51 of file class.ilFFmpeg.php.
References defined.
Referenced by ilObjMediaCastGUI\editCastItemObject(), and ilDclMobRecordFieldModel\parseValue().
|
static |
Execute ffmpeg.
Definition at line 152 of file class.ilFFmpeg.php.
References ilUtil\execQuoted().
|
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, and ilUtil\escapeShellArg().
Referenced by ilObjMediaCastGUI\extractPreviewImageObject(), and ilDclMobRecordFieldModel\parseValue().
|
staticprivate |
Get ffmpeg command.
Definition at line 141 of file class.ilFFmpeg.php.
ilFFmpeg::getFileInfo | ( | ) |
|
static |
Get last return values.
Definition at line 250 of file class.ilFFmpeg.php.
Referenced by ilObjMediaCastGUI\convertFileObject(), and ilObjMediaCastGUI\extractPreviewImageObject().
|
static |
Get possible target formats.
Definition at line 121 of file class.ilFFmpeg.php.
References array.
|
static |
Get source mime types.
Definition at line 88 of file class.ilFFmpeg.php.
References array.
|
static |
|
static |
Get all supported formats.
Definition at line 174 of file class.ilFFmpeg.php.
References $formats.
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)
Definition at line 69 of file class.ilFFmpeg.php.
References array.
|
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(), and ilDclMobRecordFieldModel\parseValue().
|
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.