Commit c070cdc0 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 19fcdd05
...@@ -151,12 +151,21 @@ class Media { ...@@ -151,12 +151,21 @@ class Media {
echo "nichts gefunden!".PHP_EOL; echo "nichts gefunden!".PHP_EOL;
} }
// werte von MediaInfo holen... // werte von MediaInfo holen...
$mediainfo = new mediaInfo($Pfad.$FilenameOrg); /*$mediainfo = new mediaInfo($Pfad.$FilenameOrg);
$array["width"] = $mediainfo->get_width(); $array["width"] = $mediainfo->get_width();
$array["height"] = $mediainfo->get_height(); $array["height"] = $mediainfo->get_height();
$array["vcodec"] = $mediainfo->get_video_property("vcodec"); $array["Duration"] = $mediainfo->get_video_property("Duration");
$array["Duration"] = $mediainfo->get_video_property("Duration");
*/
$p = xml_parser_create();
xml_parse_into_struct($p, exec('mediainfo --Output=XML "'.$Pfad.$FilenameOrg.'"'), $vals, $index);
xml_parser_free($p);
print_r($index);
print_r($vals);
foreach ($array as $key => $value) { foreach ($array as $key => $value) {
echo " ".$key." => '".$value."'".PHP_EOL; echo " ".$key." => '".$value."'".PHP_EOL;
} }
......
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