Using FFMPEG commands with exec or shell_exec

Avatar
  • Answered
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
Avatar
johnpaulb-imhs1
Hello, Thanks for your question about Using FFMPEG commands with exec or shell_exec. Here is a link to a guide I found via Google search, where they provide a possible solution. This method should work, but you may need to make a .sh file, and shell_exec the execution of that script. Let us know if you have any further questions. Thank you, John-Paul