Merge pull request #1 from DblD/DblD-patch-1

Attempting to fix 'Cannot open display :0.0'
This commit is contained in:
Dario Matonicki 2019-06-17 22:24:59 +02:00 committed by GitHub
commit 99d00f574a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ screencast() { \
-f x11grab \
-framerate 60 \
-s $(xdpyinfo | grep dimensions | awk '{print $2;}') \
-i :0.0 \
-i $DISPLAY \
-f alsa -i default \
-r 30 \
-c:v libx264rgb -crf 0 -preset ultrafast -c:a flac \
@ -44,7 +44,7 @@ screencast() { \
video() { ffmpeg \
-f x11grab \
-s $(xdpyinfo | grep dimensions | awk '{print $2;}') \
-i :0.0 \
-i $DISPLAY \
-c:v libx264 -qp 0 -r 30 \
"$HOME/video-$(date '+%y%m%d-%H%M-%S').mkv" &
echo $! > /tmp/recordingpid