public function video_ffmpeg::get_video_info in Video 7
Same name and namespace in other branches
- 6.4 transcoders/video_ffmpeg.inc \video_ffmpeg::get_video_info()
Get some information from the video file
2 calls to video_ffmpeg::get_video_info()
- video_ffmpeg::get_dimensions in transcoders/
video_ffmpeg.inc - video_ffmpeg::get_playtime in transcoders/
video_ffmpeg.inc - Return the playtime seconds of a video
File
- transcoders/
video_ffmpeg.inc, line 219
Class
Code
public function get_video_info($video) {
static $command_ouput;
if (!empty($command_output)) {
return $command_output;
}
$file = escapeshellarg($video);
// Execute the command
$options = '!ffmpeg -i ' . $file;
$command_output = $this
->run_command($options);
return $command_output;
}