From e7972511f7cf8c6005409ea3365b511178a1a053 Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Tue, 13 Oct 2020 15:53:14 +0200 Subject: [PATCH] qr-code-scanner: update dummy camera example in README to use the current display connection In my case it was ":1", making ffmpeg fail to record the screen. --- packages/qr-code-scanner/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/qr-code-scanner/README.md b/packages/qr-code-scanner/README.md index 3d898fa7..ad498df5 100644 --- a/packages/qr-code-scanner/README.md +++ b/packages/qr-code-scanner/README.md @@ -66,7 +66,7 @@ You can use your desktop as a camera, to test the qr code reader sudo apt install ffmpeg v4l2loopback-dkms; sudo modprobe v4l2loopback #start virtual cam - Dummy video device (0x0000) -ffmpeg -f x11grab -r 15 -s 1280x720 -i :0.0+0,0 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 +ffmpeg -f x11grab -r 15 -s 1280x720 -i "${DISPLAY}+0,0" -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 ``` Then you can place a QR Code in the left corner of your desktop. -- GitLab