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
Share:
5,349

Related videos on Youtube

voices
Author by

voices

Updated on September 18, 2022

Comments

  • voices
    voices over 1 year

    Can I convert a .json file; generated by a program like asciinema; into an animated .gif?

  • balasaheb barde
    balasaheb barde over 6 years
    $ asciinema rec my_recording.json asciinema: Too many arguments. See 'asciinema --help'.
  • mcmahoniel
    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 run asciinema without any parameters (or asciinema --help), you should see almost the exact same command listed.
  • balasaheb barde
    balasaheb barde over 6 years
    It was an older version
  • Kaz
    Kaz about 4 years
    From 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.