quasarstream / PHP-FFmpeg-video-streaming

📼 Package media content for online streaming(DASH and HLS) using FFmpeg

Home Page:https://www.quasarstream.com/op/php/ffmpeg-streaming?u=php-ff

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It cannot encode large files

mehran-develop opened this issue · comments

It cannot encode files with a size of 500 MB and 1 GB
Do you have a solution? I even use a dedicated server

$config = [ 'ffmpeg.binaries' => 'C:\ffmpeg\bin\ffmpeg.exe', 'ffprobe.binaries' => 'C:\ffmpeg\bin\ffprobe.exe', 'timeout' => $time * 3600, // The timeout for the underlying process 'ffmpeg.threads' => 24, // The number of threads that FFmpeg should use ];

        $video->hls()
            ->encryption($save_to, $url, 1)
                ->setHlsTime(40)
            ->setFormat($format)
            ->addRepresentation((new Representation())->setKiloBitrate(2048)->setResize(1280, 720))
            ->save(public_path('data/' . $main_folder . '/' . $sub_folder . '/code/' . $name));

if file size 500 MB after 3 min process kill in terminal