exec() command not working
<p>I am using exec() function to run my commands on centos server. All was working fine untill i used command:
$command=
        <strong>ffmpeg -i input video.mp4 -vf fade=out:0:5 output.mp4</strong> </p>

<p>The command is ok as it is running on server via command line but when i execute it using php it is not giving the output. I have already created a video from ffmpeg using the exec() function but this command is not working. What can be the reason i am confused how a command can run on server but not work while executing from php.</p>

<p>Other command i executed using exec() function is :
$command = <strong>ffmpeg -i %d.jpg -y -s 320x240 -aspect 4:3 output.mp4</strong></p>

<p>and it is working perfectly and the video is also created but previous command is not giving video as output.</p>

<p>Please guide me...</p>
