From 6c06905fc9265e1157b968b18cc06e9ced5798bb Mon Sep 17 00:00:00 2001 From: deflax Date: Mon, 13 Jan 2025 03:32:13 +0200 Subject: [PATCH] change loglevel and vaapi setting --- stream.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stream.sh b/stream.sh index 69ef647..0750bc7 100755 --- a/stream.sh +++ b/stream.sh @@ -3,7 +3,8 @@ echo "Press CTRL+C to exit" source config -LOGLEVEL=debug +LOGLEVEL="debug" +LOGLEVEL="repeat+level+info" while : do @@ -16,11 +17,11 @@ do #load normalization #output_audio_filter="-filter:a loudnorm" - ffmpeg -loglevel ${LOGLEVEL} -threads:v 2 -threads:a 8 -filter_threads 2 \ + ffmpeg -hide_banner -loglevel ${LOGLEVEL} -threads:v 2 -threads:a 8 -filter_threads 2 \ -thread_queue_size 512 -f v4l2 -s 1920x1080 -framerate 60 -pix_fmt yuv420p -i /dev/video7 \ -thread_queue_size 512 -f alsa -ac 2 -i plughw:CARD=USB ${input_audio_filter} \ -bsf:a aac_adtstoasc -c:a aac -ac 2 -b:a 128k ${output_audio_filter} \ - -init_hw_device vaapi=amd:/dev/dri/renderD128 -filter_hw_device va \ + -init_hw_device vaapi=va:/dev/dri/renderD128 -filter_hw_device va \ -vf 'format=nv12,hwupload' \ -c:v h264_vaapi -b:v 6000k -minrate:v 6000k -maxrate:v 6000k -bufsize:v 6000k \ -r:v 60 -g:v 120 -bf:v 3 -refs:v 16 \