PHP MediaInfo CLI Help
<pre><code>&lt;?php
$source_video = 'demo.ts';

$mediaInfoDur_log = 'MEDIAINFO-DURATION-LOG.log';
$mediaInfoDur_cmd_log = 'MEDIAINFO-DURATION-CMD.log';
$mediaInfoDur_cmd = 'mediainfo "--Inform=Video;%Duration%" ' . $source_video;
$mediaInfoDur_cmd = $mediaInfoDur_cmd . ' &gt; ' . $mediaInfoDur_log . ' 2&gt;&amp;1';
$duration = exec($mediaInfoDur_cmd, $output);
print_r($output);
?&gt;
</code></pre>

<p>How we can send the result of exec into the file and in the array $output ?
The Above method save only in the file nothing shows up in the array
Thanks Sascha</p>
