Difference: AsciinemaInstructions (15 vs. 16)

Revision 162016-08-10 - MariaDimou

Line: 1 to 1
 
META TOPICPARENT name="VideoLibrary"

Asciinema Instructions

Line: 28 to 28
 Maria Dimou

Other information:

Changed:
<
<
One can convert asciinema casts to animated GIFs using this tool: https://github.com/tav/asciinema2gif but the copy/paste possibility is lost.
If you face an SSL error such as:
ERROR: Couldn't open https://asciinema.org/api/asciicasts/81648?theme=solarized-light
>
>
Full asciinema installation and usage instructions are attached to this twiki.

One expects 4 files to be created at the end of a terminal session recorded with asciinema: .js, .json, .css, .html. We make the .html by copy/pasting in a file of our own the

<HEAD> and <BODY>
etc wrapping tags offered to us by the asciinema site to encapsulate the links to the other 3 outputs .js, .json and .cssconstructed by the product. Hence, these files must live on the web. This is why we have attached these actual files to this page.

One can convert asciinema casts to animated GIFs using this tool: https://github.com/tav/asciinema2gif but the copy/paste possibility is lost.
If you face an SSL error during this conversion, such as:

ERROR: Couldn't open https://asciinema.org/api/asciicasts/81648?theme=solarized-light
 
ERROR: SSL handshake failed

Please refer to this issue on Github and replace the content in line 113 in the asciinema2gif script:
phantomjs "${rundir}/render.js" "${asciinema_url}"
by:
phantomjs --ssl-protocol=any "${rundir}/render.js" "${asciinema_url}"

The reply obtained by the developers on Github indicates that a new release should be done soon and the problem corrected.
Changed:
<
<
The GIF image generated and placed in the top of this page is a link to the real video which allows to copy / paste the text.
>
>
The GIF image generated and placed at the top of this page is a link to the real video (attached to this twiki) which allows to copy / paste the text.

In order to show a video made with asciinema in the twiki Video Library, we attach the gif generated from the conversion to the same Video Library page and use these tags at the beginning of the twiki page source:

<a href="%ATTACHURL%/index.html">
<img src="%PUBURL%/cern/asciicast.gif" alt="Play Video">
</a>
The GIF image generated and placed at the top of this page is a link to the real video (attached to this twiki) which allows to copy / paste the text.
 
Added:
>
>
On how to register in CDS videos made with asciinema, pending answer from the CDS experts.
 

Related Videos

<!--//treePlugin-->
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback