Commit 15c48314 authored by ak's avatar ak
Browse files

make gif recording

parent 4a91a4d2
......@@ -392,7 +392,8 @@ 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. Will produce a .webm and a .gif. Handle as needed.",
"[r] Make a WEBM 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. Handle as needed.",
"[g] Make a GIF 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 .gif. Handle as needed.",
]
if pkll.conf["taskwarrior"]:
......@@ -425,11 +426,21 @@ 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")
elif choice == 3:
print("[bold]press <q> end recording[/bold]")
filename = Prompt.ask("Enter file base name")
sleep(1)
print(3, end=" ")
sleep(1)
print(2, end=" ")
sleep(1)
print(1, end=" ")
sleep(1)
os.system(
"ffmpeg -hide_banner -loglevel error -i " + filename + ".webm -vf fps=5,scale=450:-1 " + filename + ".gif")
"ffmpeg -hide_banner -loglevel error -f x11grab -i :0.0 -vf fps=2,scale=640:-1 " + filename + ".gif")
os.system("kitty +kitten icat " + filename + ".gif")
# Toolz.pause(choice)
else:
if pkll.conf["taskwarrior"]:
cons.clear()
......
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