commit: 2bb9619659b2e211a13ccc7fa1e2a8c9b19b6839
parent aa0e8239e991f25a2732f1fe7e65b3ab2b16e6b8
Author: Drew DeVault <sir@cmpwn.com>
Date: Thu, 13 Oct 2022 11:01:02 +0200
ffmpeg: correct -vf command line
Thanks Anton!
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/content/blog/In-praise-of-ffmpeg.md b/content/blog/In-praise-of-ffmpeg.md
@@ -44,7 +44,7 @@ ffmpeg \
-thread_queue_size 64 \ # reduce input latency
-i - \
# Capture and downscale frames on the GPU:
- -vf 'hwmap=derive_device=vaapi,hwdownload,format=bgr0,scale=1280:720' \
+ -vf 'hwmap=derive_device=vaapi,scale_vaapi=1280:720,hwdownload,format=bgr0' \
-c:v libx264 \
-preset:v superfast \ # encode video as fast as possible
-tune zerolatency \ # tune encoder for low latency