Hi there,
Currently when encoding video, we did not specify how many threads to use in ffmpeg thus, ffmpeg will default to use 'optimal' setting, which is use all of the available threads (core).
If you need to specify how many thread to use, then you can do this.
Open the file JOOMLA/administrator/components/com_easysocial/includes/ffmpeg/adapter.php' and look for below code at line 572:
$command = $this->ffmpeg . ' ';
$command .= '-y -i ' . $input . ' -strict -2 ';
$command .= '-acodec aac -vcodec libx264 -crf 23 ';
$command .= '-ab ' . $bitrate . ' ';
$command .= '-vf "scale=-2:\'min(ih,' . $size . ')\'" -movflags faststart ';
$command .= $output;
Replace the above with:
$command = $this->ffmpeg . ' ';
$command .= '-y -i ' . $input . ' -strict -2 ';
$command .= '-threads 4 ';
$command .= '-acodec aac -vcodec libx264 -crf 23 ';
$command .= '-ab ' . $bitrate . ' ';
$command .= '-vf "scale=-2:\'min(ih,' . $size . ')\'" -movflags faststart ';
$command .= $output;
In the above, you are actually adding the new command option ''-threads 4' to tell ffmpeg to use 4 threads when encoding the video.
Hope this help and have a nice day