<?php

return [
    'ffmpeg'                        => [
        'binaries' => env('FFMPEG_BINARIES', 'ffmpeg'),

        'threads'  => 12, // set to false to disable the default 'threads' filter
    ],

    'ffprobe'                       => [
        'binaries' => env('FFPROBE_BINARIES', 'ffprobe'),
    ],

    'timeout'                       => 3600,

    'log_channel'                   => env('LOG_CHANNEL', 'stack'), // set to false to completely disable logging

    'temporary_files_root' => env('FFMPEG_TEMPORARY_FILES_ROOT', sys_get_temp_dir()),

    'temporary_files_encrypted_hls' => env('FFMPEG_TEMPORARY_ENCRYPTED_HLS', env('FFMPEG_TEMPORARY_FILES_ROOT', sys_get_temp_dir())),
    'ffmpeg.binaries'               => env('FFMPEG_PATH', '/usr/bin/ffmpeg'),
    'ffprobe.binaries'              => env('FFPROBE_PATH', '/usr/bin/ffprobe'),
    'threads'                       => 12,
];
