We rebuilt our website from scratch and are still updating some extensions and pages. Having a problem? Sign in and open a support ticket or contact us.
JoomBoost

FFmpeg

FFmpeg is a free command-line program that converts audio and video. JoomMedia runs it on your server to process the videos and audio files that you and your members upload. Images, documents, and media from YouTube and other sites do not need it.

What JoomMedia uses it for

  • converting videos to the MP4, WebM and Ogg sizes switched on in Options > Processing,
  • converting audio to MP3 and Ogg,
  • reading the length and the title stored in the file,
  • taking thumbnails from videos,
  • reading the metadata of audio and video files for the View meta data button.

See Media processing for how the jobs run.

What you need

  • FFmpeg on the server, with these encoders for the formats you switch on:

    • libx264 and aac for MP4,
    • libvpx and libvorbis for WebM,
    • libtheora and libvorbis for Ogg video,
    • libmp3lame for MP3.

    Most packaged FFmpeg builds include them.

  • PHP's exec function turned on, so JoomMedia can start FFmpeg.

  • PHP for the command line (PHP CLI), for background processing and cron jobs.

Shared hosting

Many shared hosts have no FFmpeg, or turn off exec. Converting video also uses a lot of processor time. Ask your host before you rely on it. If FFmpeg is not possible:

  • switch off the MP4, WebM and Ogg sizes under Video Generation and upload videos as MP4 files that browsers can play as they are, or
  • add videos from YouTube, Vimeo and other sites instead, and
  • set a Default video thumbnail in Options > Global List Layout, so videos without a thumbnail still show a picture.

Set up

  1. Open the JoomMedia options (Settings > Configuration) and go to the Processing tab.
  2. Under Server settings, click Detect paths. JoomMedia looks for ffmpeg and the command-line PHP in the usual places (also Plesk and cPanel paths), tries each one, and fills in Path to Ffmpeg and Path to PHP.
  3. Check the values. If nothing was found, enter the full path of each program yourself, for example /usr/bin/ffmpeg and /usr/bin/php. On Windows, use the full path of ffmpeg.exe. Enter the program itself, not its folder.
  4. Choose the formats and sizes under Video Generation and Audio Generation.
  5. Click Save.

Leaving Path to Ffmpeg empty turns video processing off.

Check that it works

  • On the dashboard, open System status. The FFmpeg line shows whether JoomMedia could run the program and which version it found. "Process exec disabled" means PHP may not run programs.
  • In Options > Processing, click Test Automatic Processing. It tests the command-line script in the background and lists the last failed processes.
  • Upload a short video, go to Storage > Processing and click Process All. Each process should end as successful. If one fails, open it and read the Media processor log.

All Extensions