/

Server Optimization


By default, ffmpeg will use as much CPU and memory as it can get in order to process the conversion as quickly as possible. You can slow ffmpeg down to use fewer resources by adding the re flag. Note that this will basically convert the file in "real time" - so that a five minute clip will take five minutes (instead of 30 seconds).

To implement this for the OrientationPostProcessor, modify the {red5pro}/conf/cloudstorage-plugin.properties file.

If you're using LGPL:

ffmpeg.template=%s -y -i -re %s -acodec aac -b:a 128k -ar 44100 -strict -2 -vcodec libopenh264 -pix_fmt yuv420p -profile:v baseline -level 3.0 %s

If you're using GPL:

ffmpeg.template=%s -y -i -re %s -acodec aac -b:a 128k -ar 44100 -strict -2 -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3.0 %s