[ create a new paste ] login | about

Link: http://codepad.org/iVAj1bSL    [ raw code | fork ]

PHP, pasted on May 27:
1
2
3
4
5
exec('mediainfo --output=XML ' . $file, $xml);
array_shift($xml);
$xml = implode($xml);
$xml = json_decode(json_encode(new SimpleXMLElement($xml)), true);
$bitrate = (int)str_replace(' ', '', $xml['File']['track'][0]['Overall_bit_rate']);


Create a new paste based on this one


Comments: