castopod/modules/Admin/Config/Admin.php
Yassine Doghri 7f7c878cb6 fix(video-clips): create unique temporary files for resources to be deleted after generation
- tempfile uniqueness ensures that each process lives in its independent context
- add
writable/temp folder to store video clips temporary resources
- add videoClipWorkers config to
Admin for specifying the number of ffmpeg processes to run in parallel
- update video clip preview
background to better suit the end result
2022-01-21 12:35:50 +00:00

25 lines
673 B
PHP

<?php
declare(strict_types=1);
namespace Modules\Admin\Config;
use CodeIgniter\Config\BaseConfig;
class Admin extends BaseConfig
{
/**
* --------------------------------------------------------------------------
* Admin gateway
* --------------------------------------------------------------------------
* Defines a base route for all admin pages
*/
public string $gateway = 'cp-admin';
/**
* Number of maximum ffmpeg processes to spawn in parallel when generating video clips. Processes are instance wide,
* meaning that they are shared across all podcasts and episodes.
*/
public int $videoClipWorkers = 2;
}