Using FFMPEG commands with exec or shell_exec
When I am running a simple command from terminal then it works and when I place the same command in shell_exec or exec function it create a blank 0 byte file.
I ask to technical guy to help on this and they do not know the issue. Very embarrassing with support team for this.
Command Is: /opt/ffmpeg/ffmpeg -framerate 1/5 -i /home/mobiinvite16/public_html/video/Hopetoun_falls.jpg -c:v libx264 -r 30 -pix_fmt yuv420p /home/mobiinvite16/public_html/video/out.mp4
I ask to technical guy to help on this and they do not know the issue. Very embarrassing with support team for this.
Command Is: /opt/ffmpeg/ffmpeg -framerate 1/5 -i /home/mobiinvite16/public_html/video/Hopetoun_falls.jpg -c:v libx264 -r 30 -pix_fmt yuv420p /home/mobiinvite16/public_html/video/out.mp4