diff --git a/encoder/static.php b/encoder/static.php index 107d9ca..38932a9 100755 --- a/encoder/static.php +++ b/encoder/static.php @@ -388,8 +388,8 @@ function update_service($which_service) . " -video_size " . $data['hdmi']['resolution'] . " -framerate " . $data['hdmi']['framerate'] . " -i /dev/video0" - . " -f alsa -thread_queue_size 2048 -i " . $data['hdmi']['audio_source'] - . " -c:v h264_qsv -profile:v high -level:v 4.2 -async_depth 4 -b:v 6M -maxrate 6M -bufsize 12M " + . " -f alsa -thread_queue_size 128 -i " . $data['hdmi']['audio_source'] + . " -c:v h264_qsv -profile:v high -level:v 4.2 -async_depth 4 -b:v 6M -maxrate 6M -bufsize 6M " . " -c:a aac -b:a 265k -ar 48000 -async 1 -muxrate 0 -pat_period 0.1 -pkt_size 1316 "; if ($hdmi_delay_video != "") $input .= ' -vf "vpp_qsv=format=nv12,scale_qsv=' . $common_backend_resolution . ',' . setptsFromMs($hdmi_delay_video) . '"';