Commit 80a640b2 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 62ca5d41
......@@ -176,7 +176,7 @@ class Media {
switch ($key) {
case "General":
$array["vcodec"] = str_replace("Matroska", "mkv", $value["Format"]);
$array["duration"] = $value["Duration"];
$array["duration"] = $this->getRunTime($value["Duration"]);
$array["totalbitrate"] = trim(str_replace(" ", "",str_replace("Mbps", "", $value["Overall_bit_rate"])))*1024;
break;
case "Video":
......@@ -220,7 +220,11 @@ class Media {
//return
}
private function getfileSitze($file){
private function getRunTime($laufzeit){
$string = explode(" ", $laufzeit);
return ((trim(str_replace("h", "", $string[0]))*3600)+(trim(str_replace("m", "", $string[1])*60)));
}
private function getfileSize($file){
//$size = ;
return trim(explode("/", exec('du -b "'.$file.'"'))[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment