This commit is contained in:
devdatt 2025-12-10 07:04:43 +05:30
parent adb1a810f8
commit 9926d1fc6a
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ function update_service($which_service)
case "copy_input":
switch ($input_source) {
case "hdmi":
$input .= "ffmpeg -hwaccel auto -hide_banner -f v4l2 -thread_queue_size 512 -input_format mjpeg "
$input .= "ffmpeg -hwaccel auto -hide_banner -f v4l2 -thread_queue_size 1024 -input_format mjpeg "
. " -video_size " . $data['hdmi']['resolution']
. " -framerate " . $data['hdmi']['framerate']
. " -fflags +genpts -use_wallclock_as_timestamps 1 -re -f alsa -thread_queue_size 512 -i " . $data['hdmi']['audio_source']
@ -137,7 +137,7 @@ function update_service($which_service)
case "use_common_backend":
switch ($input_source) {
case "hdmi":
$input .= "ffmpeg -hwaccel auto -hide_banner -f v4l2 -thread_queue_size 512 -input_format mjpeg -video_size " . $data['hdmi']['resolution']
$input .= "ffmpeg -hwaccel auto -hide_banner -f v4l2 -thread_queue_size 1024 -input_format mjpeg -video_size " . $data['hdmi']['resolution']
. " -framerate " . $data['hdmi']['framerate'] . " -i /dev/video0 -fflags +genpts -use_wallclock_as_timestamps 1 -re -f alsa -thread_queue_size 512 -i " . $data['hdmi']['audio_source']
. " -c:v h264_qsv ";
if ($hdmi_delay_video != "")