This commit is contained in:
devdatt 2025-12-07 04:41:53 +05:30
parent 54bb5951b8
commit 48658bf296
1 changed files with 2 additions and 2 deletions

View File

@ -364,7 +364,7 @@ http {
} }
if ($service_rtmp0_multiple === "enable") { if ($service_rtmp0_multiple === "enable") {
$rtmp = 'ffmpeg -hwaccel auto -hide_banner -fflags nobuffer -analyzeduration 3000000 -i "udp://@239.255.254.254:39000?fifo_size=5000000&overrun_nonfatal=1&localaddr=127.0.0.1" ' $rtmp = 'ffmpeg -hwaccel auto -hide_banner -fflags nobuffer -analyzeduration 3000000 -re -i "udp://@239.255.254.254:39000?fifo_size=5000000&overrun_nonfatal=1&localaddr=127.0.0.1" '
. ' -c:v h264_qsv ' . ' -c:v h264_qsv '
. ' -vf "scale=' . str_replace("x", ":", $data['rtmp0']['resolution']) . ' -vf "scale=' . str_replace("x", ":", $data['rtmp0']['resolution'])
. '" -b:v ' . $data['rtmp0']['data_rate'] . '" -b:v ' . $data['rtmp0']['data_rate']
@ -388,7 +388,7 @@ http {
} }
if ($service_rtmp1_multiple === "enable") { if ($service_rtmp1_multiple === "enable") {
$rtmp = 'ffmpeg -hwaccel auto -hide_banner -fflags nobuffer -analyzeduration 3000000 -i "udp://@239.255.254.254:39000?fifo_size=5000000&overrun_nonfatal=1&localaddr=127.0.0.1" ' $rtmp = 'ffmpeg -hwaccel auto -hide_banner -fflags nobuffer -analyzeduration 3000000 -re -i "udp://@239.255.254.254:39000?fifo_size=5000000&overrun_nonfatal=1&localaddr=127.0.0.1" '
. ' -c:v h264_qsv ' . ' -c:v h264_qsv '
. ' -vf "scale=' . str_replace("x", ":", $data['rtmp1']['resolution']) . ' -vf "scale=' . str_replace("x", ":", $data['rtmp1']['resolution'])
. '" -b:v ' . $data['rtmp1']['data_rate'] . '" -b:v ' . $data['rtmp1']['data_rate']