2
I am not sure why so first here is the error
Array ( [0] => ffmpeg: error while loading shared libraries: libvpx.so.1: failed to map segment from shared object: Permission denied )
my PHP
exec('ffmpeg -i /home/social/public_html/'.$key['upload_path'].' -threads 0 /home/social/public_html/'.$key['path'].$key['filename'].'.webm 2>&1',$out);
I also tried
exec('/usr/bin/ffmpeg -i /home/social/public_html/'.$key['upload_path'].' -threads 0 /home/social/public_html/'.$key['path'].$key['filename'].'.webm 2>&1',$out);
Now when I ssh into the server and run the same command it works fine.
here is my FFMPEG
ffmpeg-1.0/ffmpeg
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 22 2012 19:38:33 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
configuration: --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-gpl --enable-postproc --enable-nonfree
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
I am wondering if anyone else has this error
I've tried these suggestions. One slight fix: it is "usermod -a -G video apache" (the first name must be the group name, the last one must be the user that is appended to the group) – Giuseppe – 2018-02-28T01:51:50.743