mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Attempting to fix 'Cannot open display :0.0' (#335)
When attempting to run dmenurecord for screnacast or video it kinda dies silently with : ``` Invalid MIT-MAGIC-COOKIE-1 key[x11grab @ 0x5558eb7d5240] Cannot open display :0.0, error 1. :0.0: Input/output error ```
This commit is contained in:
parent
d805da4e5e
commit
91c975be6c
@ -32,7 +32,7 @@ screencast() { \
|
|||||||
-f x11grab \
|
-f x11grab \
|
||||||
-framerate 60 \
|
-framerate 60 \
|
||||||
-s $(xdpyinfo | grep dimensions | awk '{print $2;}') \
|
-s $(xdpyinfo | grep dimensions | awk '{print $2;}') \
|
||||||
-i :0.0 \
|
-i $DISPLAY \
|
||||||
-f alsa -i default \
|
-f alsa -i default \
|
||||||
-r 30 \
|
-r 30 \
|
||||||
-c:v libx264rgb -crf 0 -preset ultrafast -c:a flac \
|
-c:v libx264rgb -crf 0 -preset ultrafast -c:a flac \
|
||||||
@ -44,7 +44,7 @@ screencast() { \
|
|||||||
video() { ffmpeg \
|
video() { ffmpeg \
|
||||||
-f x11grab \
|
-f x11grab \
|
||||||
-s $(xdpyinfo | grep dimensions | awk '{print $2;}') \
|
-s $(xdpyinfo | grep dimensions | awk '{print $2;}') \
|
||||||
-i :0.0 \
|
-i $DISPLAY \
|
||||||
-c:v libx264 -qp 0 -r 30 \
|
-c:v libx264 -qp 0 -r 30 \
|
||||||
"$HOME/video-$(date '+%y%m%d-%H%M-%S').mkv" &
|
"$HOME/video-$(date '+%y%m%d-%H%M-%S').mkv" &
|
||||||
echo $! > /tmp/recordingpid
|
echo $! > /tmp/recordingpid
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user