sh: /mencoder: No such file or directory


Hits: 1503  

This is the problem caused due to PHP safe_mode restrictions to execute linux commands.

If safe mode is on we can not run linux commands by exec() PHP function.

Try safe mode Off when you want to execute linux tools with PHP….

Disable dangerous function from executing to exec().. that will cause application non functional 🙁

# php mencoder.php

sh: /mencoder: No such file or directory

# cat mencoder.php
<?php exec("mencoder -ovc help"); ?>
# mencoder -ovc help

PHP Safe Mode
PHP Safe Mode

Install MP4Box


Hits: 2051  

MP4Box is a multimedia package used for  conversion, splitting, hinting, dumping and others.

zlib is a software library used for data compression. zlib was written by Jean-Loup Gailly and Mark Adler and is an abstraction of the DEFLATE compression algorithm used in their gzip file compression program.

Source: http://sourceforge.net/projects/gpac/files/

Download latest “gpac-0.4.5.tar.gz” & “gpac_extra_libs-0.4.5.tar.gz” from above link……

# wget http://nchc.dl.sourceforge.net/project/gpac/GPAC/GPAC%200.4.5/gpac-0.4.5.tar.gz
# wget http://nchc.dl.sourceforge.net/project/gpac/GPAC%20extra%20libs/GPAC%20extra%20libs%200.4.5/gpac_extra_libs-0.4.5.tar.gz

# tar -zxf gpac-0.4.5.tar.gz
# tar -zxf gpac_extra_libs-0.4.5.tar.gz
# cd gpac_extra_libs
# cp -r * ../gpac/extra_lib
# cd ../gpac
# chmod +x configure

# yum install zlib*

# ./configure
# make lib
# make apps
# make install lib
# make install
# cp bin/gcc/libgpac.so /usr/lib