Created
July 8, 2012 03:03
-
-
Save jasonbradley/3069127 to your computer and use it in GitHub Desktop.
Get video file meta using ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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