Terminates all workers and resolves all queued transcodes to null (main worker fallback).
Nothing.
Enqueues a media transcode on the worker pool.
Transcode request parameters.
A promise resolving to the transcode result, or null when the caller should fall
back to transcoding on the main FFmpeg worker.
Pooled media transcoding service, owned by the engine (see
Engine::getMediaTranscodeService).When enabled (
Settings::setMediaTranscodeMaxWorkers> 0, default 1) compatibility transcodes during media load run on dedicated FFmpeg workers instead of the main worker, so a minutes-long transcode neither holds the global media info lock nor queues every other main-worker operation behind it. Additional transcode requests wait for a free pool slot — only transcodes wait, nothing else. Each worker instance costs ~20MB of memory; workers are created lazily and all idle workers are terminated after an idle timeout.transcodeMediaresolves tonullwhenever the pool cannot deliver a result (disabled, worker creation failed, or the transcode failed) — the caller then transcodes on the main worker as before.