This commit is contained in:
2026-04-01 21:14:30 -03:00
parent 0f7e4424bc
commit 172f21a845
9 changed files with 139 additions and 106 deletions

View File

@@ -30,12 +30,12 @@ if [ -n "$WEBCAM_MIC" ]; then
exec ffmpeg \
-init_hw_device drm=drm:/dev/dri/card0 \
-init_hw_device vaapi=va@drm \
-device /dev/dri/card0 -f kmsgrab -i - \
-device /dev/dri/card0 -f kmsgrab -framerate 30 -i - \
-f pulse -i "$MONITOR" \
-f pulse -i "$WEBCAM_MIC" \
-filter_complex "[1:a][2:a]amix=inputs=2:duration=longest[aout]" \
-map 0:v -map "[aout]" \
-vf 'hwmap=derive_device=vaapi,scale_vaapi=w=1920:h=1080:format=nv12' \
-vf 'hwmap=derive_device=vaapi,scale_vaapi=w=1920:h=1080:format=nv12,fps=30' \
-c:v h264_vaapi -qp 20 -g 30 -keyint_min 30 -bf 0 \
-c:a aac -b:a 128k \
-flush_packets 1 -fflags nobuffer -muxdelay 0 -muxpreload 0 \
@@ -46,9 +46,9 @@ else
exec ffmpeg \
-init_hw_device drm=drm:/dev/dri/card0 \
-init_hw_device vaapi=va@drm \
-device /dev/dri/card0 -f kmsgrab -i - \
-device /dev/dri/card0 -f kmsgrab -framerate 30 -i - \
-f pulse -i "$MONITOR" \
-vf 'hwmap=derive_device=vaapi,scale_vaapi=w=1920:h=1080:format=nv12' \
-vf 'hwmap=derive_device=vaapi,scale_vaapi=w=1920:h=1080:format=nv12,fps=30' \
-c:v h264_vaapi -qp 20 -g 30 -keyint_min 30 -bf 0 \
-c:a aac -b:a 128k \
-flush_packets 1 -fflags nobuffer -muxdelay 0 -muxpreload 0 \