4 ms·
Tried out asciinema earlier this year, and it is super duper cool. TLDR: Wish it included some functionality to get finished usable media artifacts out. In th
by jaytaylor 8y ago
Tried out asciinema earlier this year, and it is super duper cool.
TLDR: Wish it included some functionality to get finished usable media artifacts out.
In the end I gave up after failing to find a way to convert the resulting asciinema data files to a GIF or any other HTML-compatible media file. The open-source projects ended up not working for various reasons- broken shell scripts, abandoned projects, node.js programs that require a fully working phantomjs installation and then it still doesn't work, requiring docker (come on, really? Spin up containers just to convert to a GIF?), and these are only the problems I remember offhand.
Some breadcrumbs:
https://www.google.com/search?q=asciinema+convert+to+gif https://www.google.com/search?q=asciinema+convert+to+gif
https://unix.stackexchange.com/questions/314235/converting-asciinema-output-to-gif https://unix.stackexchange.com/questions/314235/converting-a...
"asciinema doesn't provide this natively, there are tools out there that can facilitate that for you"
Right.
- fiddlerwoaroof 8y agoThis has been an issue for me. My solution so far has been to just make a wrapper html page that uses their library.
- laurent123456 8y agoI've used ttyrecord[0] along with ttygif[1] a while ago to create this animated gif: https://raw.github.com/laurent22/massren/animation/animation.gif https://raw.github.com/laurent22/massren/animation/animation... As far as I remember it was easy to use and the result was pretty good. Back then I've also tested Asciinema but gave up for the same reasons. [0] http://0xcc.net/ttyrec/ http://0xcc.net/ttyrec/ [1] https://github.com/icholy/ttygif https://github.com/icholy/ttygif
- dcbadacd 8y agoWouldn't animated svgs be a better output format for something like that?
- sickill 8y agoYup. There's project called svg-term-cli which generates animated SVG from asciicast file.