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

Media processing

When you or your members upload a file, JoomMedia makes copies of it that work well on the web: thumbnails in several sizes for images, videos, audio and documents, MP4, WebM and Ogg versions of videos, and MP3 and Ogg versions of audio. This is called processing.

Media from YouTube and other sites, streams, embed codes and remote files are not processed.

What is made

Each upload gets a list of jobs, called processes. Which ones depends on the media type and on the settings in Options > Processing:

Media type Processes
Image Images of 75, 100, 240, 500, 640 and 1024 pixels
Document Images of 75, 100, 240 and 500 pixels
Audio The six image sizes, Generate Mp3 audio, Generate Ogg audio, Get duration and Get title
Video The six image sizes (from a frame of the video), MP4, WebM and Ogg at 360p, 480p, 720p and 1080p, and Get duration

Only the sizes and formats switched on in Options > Processing run. By default all image sizes, MP3 and Ogg audio, and the 360p MP4, WebM and Ogg videos are on. A job that is switched off ends as Unnecessary.

Videos and audio need FFmpeg on the server. Images are resized with PHP's Imagick or GD.

Watermark

Set Add watermark to Yes, choose the Watermark image, the Watermark position and the Watermark engine (Auto (Imagick, then GD), ImageMagick (PHP Imagick) or GD). The watermark is added to the 500, 640 and 1024 pixel images.

Video bitrates

Video Generation has a Max video bitrate and a Max audio bitrate for each size. Lower values make smaller files of lower quality.

While processing runs

Process warning decides what visitors see on a media page whose processes have not finished: nothing (None), a warning while JoomMedia shows what it has, or an error instead of the media.

Running the processes

Processes wait in a queue. There are three ways to run them.

1. Automatically after upload

With Process media and Process automatically both on (the default), JoomMedia starts its command-line script in the background right after an upload. This needs:

  • PHP's exec function,
  • the right Path to PHP: the command-line PHP binary, not php-fpm,
  • the right Path to Ffmpeg for videos and audio.

Click Auto-detect (Detect paths) in Options > Processing > Server settings to let JoomMedia look for both programs and fill in the paths. Review the result and save.

To check that background processing works, click Test Automatic Processing in the Media Processing section of the same tab. It opens a report with your server environment, the paths it found, a test run of the command-line script, the state of the queue and the last failed processes.

2. By hand

Go to Storage > Processing. The list shows every process with its media item, type, status and number of attempts.

Button What it does
Process Selected Runs the ticked processes now
Process All Runs all queued processes now, one after the other, while the page stays open
Reset Sets the attempts of the ticked queued processes back to zero
Force Reset Puts the ticked processes back in the queue, also when they failed or finished
Delete N Successful Processes Removes the finished jobs from the list
Delete N Unnecessary Processes Removes the jobs that were not needed

Be careful with Reset and Force Reset: in JoomMedia 6.1.5 both delete all files made for the media item (the original stays), not only the file of the selected process. Force-reset all processes of that item and run them again afterwards.

A process that fails is tried again on the next runs, up to 5 attempts.

3. From a cron job

On a busy site, or when the background start does not work, run the queue on a schedule. Each run handles up to 50 queued processes.

With command-line PHP (recommended):

*/5 * * * * /usr/bin/php /path/to/joomla/administrator/components/com_joommedia/cli.php process

Without command-line PHP, call the cron URL:

*/5 * * * * wget -q -O /dev/null "https://www.example.com/index.php?option=com_joommedia&task=maintenance.process&format=raw&token=SECRET"

Replace /usr/bin/php with your PHP path, /path/to/joomla with your site's folder, and SECRET with the Secret code from Options > Other Settings. Save the options once before you use the URL, so the secret code exists. A run through the URL is limited by the web server's time limit, so large videos may not finish that way.

To run only some processes, add their IDs after process, for example cli.php process 12 13.

The process log

Click a process in Storage > Processing to open the Media processor log. It shows for each step the command that was run (Input) and its answer (Output). Read it when a process fails: it usually names the cause, such as a wrong FFmpeg path or a missing codec.

Manual upload for a failed process

With Manual Upload for Processes on (the default), a failed process has an Upload Manually button. Upload a file you converted yourself, for example on your own computer, and JoomMedia uses it instead of making one. In JoomMedia 6.1.5 this works for video processes only. For images and audio the uploaded file is not used.

See Troubleshooting when processing does not work.

All Extensions