bugfix dmenurecord
This commit is contained in:
parent
59388be039
commit
a25197750b
|
@ -59,7 +59,7 @@ webcamhidef() {
|
|||
-f v4l2 \
|
||||
-i /dev/video0 \
|
||||
-video_size 1920x1080 \
|
||||
"$HOME/webcam-$(date '+%y%m%d-%H%M-%S').mkv" &
|
||||
"$XDG_VIDEOS_DIR/Captures/webcam-$(date '+%y%m%d-%H%M-%S').mkv" &
|
||||
echo $! >/tmp/recordingpid
|
||||
updateicon ""
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ webcam() {
|
|||
-f v4l2 \
|
||||
-i /dev/video0 \
|
||||
-video_size 640x480 \
|
||||
"$HOME/webcam-$(date '+%y%m%d-%H%M-%S').mkv" &
|
||||
"$XDG_VIDEOS_DIR/Captures/webcam-$(date '+%y%m%d-%H%M-%S').mkv" &
|
||||
echo $! >/tmp/recordingpid
|
||||
updateicon ""
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ audio() {
|
|||
ffmpeg \
|
||||
-f alsa -i default \
|
||||
-c:a flac \
|
||||
"$HOME/audio-$(date '+%y%m%d-%H%M-%S').flac" &
|
||||
"$XDG_VIDEOS_DIR/Captures/audio-$(date '+%y%m%d-%H%M-%S').flac" &
|
||||
echo $! >/tmp/recordingpid
|
||||
updateicon ""
|
||||
}
|
||||
|
@ -101,19 +101,15 @@ asktoend() {
|
|||
}
|
||||
|
||||
videoselected() {
|
||||
slop -f "%x %y %w %h" >/tmp/slop
|
||||
read -r X Y W H </tmp/slop
|
||||
rm /tmp/slop
|
||||
|
||||
eval "$(slop -f "X=%x Y=%y W=%w H=%h")"
|
||||
ffmpeg \
|
||||
-f x11grab \
|
||||
-framerate 60 \
|
||||
-video_size "$W"x"$H" \
|
||||
-i :0.0+"$X,$Y" \
|
||||
-i $DISPLAY+"$X,$Y" \
|
||||
-c:v libx264 -qp 0 -r 30 \
|
||||
"$HOME/box-$(date '+%y%m%d-%H%M-%S').mkv" &
|
||||
"$XDG_VIDEOS_DIR/Captures/box-$(date '+%y%m%d-%H%M-%S').mkv" &
|
||||
echo $! >/tmp/recordingpid
|
||||
updateicon "ﲣ"
|
||||
updateicon ""
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
|
|
Loading…
Reference in New Issue