I want to convert a flv file to mpg using avconv it is run successively using terminal. My problem is run command using php script. I write a code but i did not got result. My code as follows
<?php
$cmd="avconv -i http://localhost/test3/a.flv http://localhost/test3/intermediate1.mpg";
$results = shell_exec($cmd.'2>&1');
?>
I tried also following code but no luck
<?php
$cmd="avconv -i /home/elby/workspace/test3/a.flv /home/elby/workspace/test3/intermediate1.mpg";
$results = shell_exec($cmd.'2>&1');
echo $results;
?>