You are here

private function video_localcommand::get_video_info in Video 6.5

Get some information from the video file

2 calls to video_localcommand::get_video_info()
video_localcommand::get_dimensions in transcoders/video_localcommand.inc
Return the dimensions of a video
video_localcommand::get_playtime in transcoders/video_localcommand.inc
Return the playtime seconds of a video

File

transcoders/video_localcommand.inc, line 281

Class

video_localcommand

Code

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

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