• 9 years

    3 years

    YetiShare / Plugins / Media Converter


Install FFMPEG for Media Converter

How to Install FFMPEG and Codecs for Media Converter

For Ubuntu 20:

$ sudo apt install ffmpeg

For CentOS 6:

$ cd /root/
$ wget
$ chmod 755
$ ./
* if you get the compiler error "Minimum version is nasm-2.13" update nasm using this:

$ yum-config-manager --add-repo
$ yum install nasm

* when downloading a file using "Curl -O .." and extracting it, if you get the error "stdin: not in gzip format", redownload the file using wget.

For CentOS 7:

See here -

For Others:

In the first instance attempt to run

yum install autoconf automake cmake freetype-devel gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel
wget tar zxvf ffmpeginstaller.* cd ffmpeginstaller.* sh
For Ubuntu use (for root priv):

sudo ./

Install qt-faststart: (if not done above - moves the atom to enable streaming)

yum install git
cd /root/
git clone
cd FFmpeg
make tools/qt-faststart
cp -a tools/qt-faststart /usr/bin/


How to test the media converter cron task

- Login to your admin area.
- Go to Manage Plugins page.
- Media Converter settings.
- Set "Output Cron Messages" to "yes" and click "Submit".
- Via your website upload a video file to be converted. (i.e. an avi file)
- Login via SSH to the server you're running the convert.php script on.
- Call the script manually, it'll be similar to this:

php /usr/share/nginx/html/www/plugins/mediaconverter/converter/convert.php
- Note the output.

Running the convert.php script works on the SSH command line but not via the crontab

The cron script works fine on command line however the following error is reporting when run automatically as a cron:

sh: ffmpeg: command not found

The system sometimes doesn't know about the path to ffmpeg. At the top of your crontab add this:


Amend /root/bin to wherever you have ffmpeg installed (command: whereis ffmpeg).

Alternatively set the full path to ffmpeg with the convert.php file.