change loglevel and vaapi setting

This commit is contained in:
deflax 2025-01-13 03:32:13 +02:00
parent 0c37b86ea7
commit 6c06905fc9

View file

@ -3,7 +3,8 @@
echo "Press CTRL+C to exit" echo "Press CTRL+C to exit"
source config source config
LOGLEVEL=debug LOGLEVEL="debug"
LOGLEVEL="repeat+level+info"
while : while :
do do
@ -16,11 +17,11 @@ do
#load normalization #load normalization
#output_audio_filter="-filter:a loudnorm" #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 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} \ -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} \ -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' \ -vf 'format=nv12,hwupload' \
-c:v h264_vaapi -b:v 6000k -minrate:v 6000k -maxrate:v 6000k -bufsize:v 6000k \ -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 \ -r:v 60 -g:v 120 -bf:v 3 -refs:v 16 \