Commit 722df497 authored by ak's avatar ak
Browse files

better screen recording

parent b8b2c674
Pipeline #2139 passed with stage
in 15 seconds
......@@ -393,7 +393,7 @@ if __name__ == "__main__":
choices = [
"[v] vit|viTask TaskWarrior Interface ",
"[t] Add Task|Drop a task into taskwarrior project management fron any Post, with shorthand Topic being the TaskWarrior project.",
"[r] Make a screen recording|Record your screen and have it saved to root folder. See the example that comes with Pykyll for how to embedd videos. Please note that video files can become rather large."
"[r] Make a screen recording|Record your screen and have it saved to root folder. See the example that comes with Pykyll for how to embedd videos. Please note that video files can become rather large. Will produce a .webm and a .gif. Handle as needed.",
]
if pkll.conf["taskwarrior"]:
......@@ -426,6 +426,9 @@ if __name__ == "__main__":
os.system(
"ffmpeg -hide_banner -loglevel error -f x11grab -i :0.0 -q:v 10 -c:v libvpx -c:a libvorbis " + filename + ".webm")
os.system(
"ffmpeg -hide_banner -loglevel error -i " + filename + ".webm -vf fps=5,scale=450:-1 " + filename + ".gif")
os.system("kitty +kitten icat " + filename + ".gif")
# Toolz.pause(choice)
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment