Tag Archives: video conversion

sh: /mencoder: No such file or directory

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

Leave a comment

Posted by on December 30, 2009 in CentOS, Fedora, Linux, Tips, Tricks


Tags: , , , , , , ,

Install MP4Box

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.


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

# wget
# wget

# 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/ /usr/lib


Posted by on December 9, 2009 in CentOS, Fedora, LAMP, Linux, Tips, Tricks


Tags: , , , , , , , ,