From e2c9e6f7fff80070dfecc3ddf0d374820ae10d97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1ndor?= Date: Fri, 28 May 2021 09:03:27 +0200 Subject: [PATCH] -re parameter added --- record.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/record.php b/record.php index 324a36c..4112644 100644 --- a/record.php +++ b/record.php @@ -66,7 +66,7 @@ while (true) : { logger(2, 'All checks passed, starting ffmpeg'); notify('Recording', 'Restreamer API reported that repeating to local nginx is connected and the HLS endpoint is found. The HLS output is now being recorded. HLS URL is the following: '.$_set->hls.', Output directory is: '.$output_directory, 2); - exec('flock -n '.$_set->pid.' -c "ffmpeg -i '.$_set->hls.' -c copy '.$output_directory.'/index.m3u8 2> '.$output_directory.'/ffmpeg.log"', $output, $exitcode); + exec('flock -n '.$_set->pid.' -c "ffmpeg -re -i '.$_set->hls.' -c copy '.$output_directory.'/index.m3u8 2> '.$output_directory.'/ffmpeg.log"', $output, $exitcode); logger(2, 'ffmpeg exited with code '.$exitcode); notify('Recording stopped', 'The FFMPEG process shut down with exit code: '.$exitcode, 2); if ($exitcode)