Skip to content

Instantly share code, notes, and snippets.

@jasonbradley
Created July 8, 2012 03:03
Show Gist options
  • Save jasonbradley/3069127 to your computer and use it in GitHub Desktop.
Save jasonbradley/3069127 to your computer and use it in GitHub Desktop.
Get video file meta using ffmpeg
function getMeta($original_file_path)
{
ob_start();
passthru("ffmpeg -i ". $original_file_path . " 2>&1");
$meta_data = ob_get_contents();
ob_end_clean();
return $meta_data;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment