Converting asciinema output to gif
5,349
Yes. While asciinema doesn't provide this natively, there are tools out there that can facilitate that for you.
You can create your local recording like so:
asciinema rec my_recording.json
And then feed that into a tool like asciicast2gif:
./asciicast2gif my_recording.json my_recording.gif
Related videos on Youtube
Author by
voices
Updated on September 18, 2022Comments
-
voices over 1 year
Can I convert a
.json
file; generated by a program likeasciinema
; into an animated.gif
? -
balasaheb barde over 6 years
$ asciinema rec my_recording.json asciinema: Too many arguments. See 'asciinema --help'.
-
mcmahoniel over 6 years@user84207: I'm not sure what's going on; I just tested this on the latest version of asciinema (
1.4.0
) and it still seems to be working for me. If you runasciinema
without any parameters (orasciinema --help
), you should see almost the exact same command listed. -
balasaheb barde over 6 yearsIt was an older version
-
Kaz about 4 yearsFrom a comment in the source code:
# run phantomjs to take screenshots while asciinema-player runs
. That's a pretty poor solution, oops! I would use a recording utility other than asciinema, like ttystudio.