<?php
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
use Streaming\FFMpeg;
require 'includes/VideoLib/vendor/autoload.php';
$config = [
'ffmpeg.binaries' => 'C:\ffmpeg\bin\ffmpeg.exe',
'ffprobe.binaries' => 'C:\ffmpeg\bin\ffprobe.exe',
'timeout' => 3600, // The timeout for the underlying process
'ffmpeg.threads' => 12, // The number of threads that FFmpeg should use
];
$log = new Logger('FFmpeg_Streaming');
$log->pushHandler(new StreamHandler('video-log/ffmpeg-streaming.log')); // path to log file
$ffmpeg = FFMpeg::create($config, $log);
$video = $ffmpeg->open(ROOT_PATH . 'data\video\5986e0c173718d572df1dc57833cb8c8.mp4');
die;
I get errors like this.
This error appears when I add the following line of code:
This is my code
I get errors like this.
This error appears when I add the following line of code:
Was I doing something wrong? How to fix this?