Video transcoding in parallel
I noticed that video transcoding is performed in linear batch but not in parallel, though ffmpeg on my 24 core server is multi-threading across all the cores. Planning to offload vide transcoding to another separate server with 24 cores because as soon as the CPU is busy, the site is slowed down tragically.
Anyways, is there any way to set up UNA to transcode lets say 3-5 video files in parallel? Otherwise if a lot of videos are uploaded simultaneously, it will take eternity for the conversions to complete.
-
-
·
LeonidS
- ·
Hello Viktor Zhuromskyy !
You may try to set the number of threads via this way https://una.io/page/cmts-view?sys=bx_forum&id=3472&cmt_id=33107 just write there bigger number than "1".
-
·
LeonidS
-
-
·
Alex T⚜️
- ·
Videos can be transcoded in parallel if remote transcoding is setup and multiple transcoder servers are setup - https://github.com/unaio/una/wiki/Video-Transcoder#remote-video-transcoding
-
·
Alex T⚜️
-
Спасибо, ребята!
-
This setting is for passing "threads" parameter to ffmpeg, but I was asking about how to tell UNA to start more than ONE ffmpeg process and this way on dedicated server simultaneously run processing of more than one video file. Is it feasible to do that?
-
As I understand setting
define('BX_TRANSCODER_NO_TRANSCODING', '');
to
define('BX_TRANSCODER_NO_TRANSCODING', '2');
will simultaneously transcode two files?
-
No
define('BX_TRANSCODER_NO_TRANSCODING', '2');
this will disable transcoding completely on the current server, value doesn't matter, matter the fact that this constant is defined