Here are the paths for localhost:
/Applications/MAMP/htdocs/NAME_OF_WEBSITE/
/usr/local/bin/ffmpeg
Here are the paths for the live website:
/var/www/html/NAME_OF_WEBSITE/
/usr/bin/ffmpeg
Finally, here are the commands for the localhost and live website:
LOCAL
=====
exec('/usr/local/bin/ffmpeg -i "' . $uploaded_file . '" -c:v libx264 "./videos/' . $video_mp4 . '" -y 1>2>&1');
LIVE
====
exec('/usr/bin/ffmpeg -i "' . $uploaded_file . '" -c:v libx264 "./videos/' . $video_mp4 . '" -y 1>2>&1');
On the live website, the php code is not reading the 'ffmpeg' file. Can someone please help me?