From cc45ec15ee19b13ea34eaf428ef2d02b01e9c358 Mon Sep 17 00:00:00 2001 From: devdatt Date: Wed, 10 Dec 2025 06:31:53 +0530 Subject: [PATCH] -thread_queue_size 512 --- encoder/static.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/encoder/static.php b/encoder/static.php index 77cff5e..b918cd9 100755 --- a/encoder/static.php +++ b/encoder/static.php @@ -110,7 +110,7 @@ function update_service($which_service) $input .= "ffmpeg -hwaccel auto -hide_banner -f v4l2 -thread_queue_size 512 -input_format mjpeg " . " -video_size " . $data['hdmi']['resolution'] . " -framerate " . $data['hdmi']['framerate'] - . " -fflags +genpts -use_wallclock_as_timestamps 1 -f alsa -i " . $data['hdmi']['audio_source'] + . " -fflags +genpts -use_wallclock_as_timestamps 1 -f alsa -thread_queue_size 512 -i " . $data['hdmi']['audio_source'] . " -c:v h264_qsv -b:v 5M -maxrate 5M -bufsize 12M -c:a aac -b:a 265k -ar 48000 -tune zerolatency "; if ($hdmi_delay_video != "") $input .= "-vf " . setptsFromMs($hdmi_delay_video); @@ -138,7 +138,7 @@ function update_service($which_service) 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'] - . " -framerate " . $data['hdmi']['framerate'] . " -i /dev/video0 -fflags +genpts -use_wallclock_as_timestamps 1 -f alsa -i " . $data['hdmi']['audio_source'] + . " -framerate " . $data['hdmi']['framerate'] . " -i /dev/video0 -fflags +genpts -use_wallclock_as_timestamps 1 -f alsa -thread_queue_size 512 -i " . $data['hdmi']['audio_source'] . " -c:v h264_qsv "; if ($hdmi_delay_video != "") $input .= ' -vf "scale=' . $common_backend_resolution . ',' . setptsFromMs($hdmi_delay_video) . '"';