You are here

private function video_ffmpeg::get_video_info in Video 6.4

Same name and namespace in other branches
  1. 7 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 273

Class

video_ffmpeg

Code

private function get_video_info($video) {
  $command = $this->cmdpath . ' -i ' . escapeshellarg($video);

  // Execute the command
  $output = '';
  if ($this
    ->run_command($command, $output, t('retrieving video info'), true)) {
    return $output;
  }
  return NULL;
}