summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-12-18 18:33:57 -0800
committerxyz <gky44px1999@gmail.com>2021-12-18 18:33:57 -0800
commit83e6c54e695e8be78f407d90a4e33fd2e7a7d1a8 (patch)
tree215e488625d1259a4c22da4a8cfe48371e681582 /home
parentc3b89b850fa7436a70232c29bce19423d5f2bcd2 (diff)
refactor
Diffstat (limited to 'home')
-rwxr-xr-xhome/xyz/.local/bin/reco2
1 files changed, 1 insertions, 1 deletions
diff --git a/home/xyz/.local/bin/reco b/home/xyz/.local/bin/reco
index 7da8a4f6..068e6ad8 100755
--- a/home/xyz/.local/bin/reco
+++ b/home/xyz/.local/bin/reco
@@ -23,6 +23,6 @@ else
# arch wiki way, no audio, less cpu use during capturing (fast?), large file size, need convert afterward
xrectsel '%w %h %x %y' | xargs sh -c 'ffmpeg -y -loglevel quiet -f x11grab -framerate 25 -s "$2x$3" -i "$DISPLAY+$4,$5" -c:v ffvhuff "$1" & echo $!' shell "$tmpfile" | xargs -I {} printf '%s\t%s' '{}' "$tmpfile" > "$infofile"
# another way to get subshell ffmpeg child pid
- #xrectsel '%w %h %x %y' | xargs sh -c 'ffmpeg -y -f x11grab -framerate 25 -s "$2"x"$3" -i "$DISPLAY+$4,$5" -c:v ffvhuff "$1"' shell "$tmpfile" &
+ #xrectsel '%w %h %x %y' | xargs sh -c 'ffmpeg -y -f x11grab -framerate 25 -s "$2x$3" -i "$DISPLAY+$4,$5" -c:v ffvhuff "$1"' shell "$tmpfile" &
#printf '%s\t%s' "$(ps -o pid= --ppid $!)" "$tmpfile" > "$infofile"
fi