change loglevel and vaapi setting
This commit is contained in:
parent
0c37b86ea7
commit
6c06905fc9
1 changed files with 4 additions and 3 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Reference in a new issue