[GH-ISSUE #55] Save recordings offline? #654

Closed
opened 2026-03-15 06:44:34 +03:00 by kerem · 7 comments
Owner

Originally created by @PragTob on GitHub (Mar 11, 2014).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/55

I'd like to know if it's a desirable feature to save recordings offline - e.g. record console and then save the relevant files offline. They could then be used to play on websites other than asciinema.org (given an extracted player).

One of the problems with this so far is that the python script just does some basic recording. Then there is a whole lot of post processing going on in the asciinema.org webapp (Ruby).

I already extracted (and adjusted/unrailsified) the relevant ruby parts and implemented basic saving in the python script. You can see what I've done on the save-files-locally branch of my fork.

Of course for this to be cool and sustainable the ruby post processing bits would have to go into a gem which can then be used by both offline people and the website could depend on it.

This together with an assets gem of the player (which is not too hard to extract) could enable people to record and show their own recordings without going through the website :)

I guess this somehow relates to #21

What do you think?

Thanks for your awesome work on this technology!

Originally created by @PragTob on GitHub (Mar 11, 2014). Original GitHub issue: https://github.com/asciinema/asciinema/issues/55 I'd like to know if it's a desirable feature to save recordings offline - e.g. record console and then save the relevant files offline. They could then be used to play on websites other than asciinema.org (given an extracted player). One of the problems with this so far is that the python script just does some basic recording. Then there is a whole lot of post processing going on in the asciinema.org webapp (Ruby). I already extracted (and adjusted/unrailsified) the relevant ruby parts and implemented basic saving in the python script. You can see what I've done on the [save-files-locally branch of my fork](https://github.com/PragTob/asciinema/tree/save-files-locally). Of course for this to be cool and sustainable the ruby post processing bits would have to go into a gem which can then be used by both offline people and the website could depend on it. This together with an assets gem of the player (which is not too hard to extract) could enable people to record and show their own recordings without going through the website :) I guess this somehow relates to #21 What do you think? Thanks for your awesome work on this technology!
kerem closed this issue 2026-03-15 06:44:40 +03:00
Author
Owner

@daixtr commented on GitHub (Mar 11, 2014):

excuse me, as i have not delve deep into the python/ruby code of this. But
if the saved file format follows more or less that the same as of ttyrec
(maybe asciinema added some headers prior to this repeating blocks) then, a
console player written in C can be easily made to do the replay.

On the other hand, I tried to follow the server install steps of
asciinema.org into a RedHat, but I'm stuck on some issues.Here's a fragment:

/usr/local/rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb

checking for libxml/parser.h... no

libxml2 is missing. please visit
http://nokogiri.org/tutorials/installing_nokogiri.html for help with

installing dependencies.

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You
may
need configuration options.

I don't have the liberty the choose an Ubuntu, so I knew that RedHat would
have pains to make it work.. Can it be done? Any guides?

On Wed, Mar 12, 2014 at 12:56 AM, Tobias Pfeiffer
notifications@github.comwrote:

I'd like to know if it's a desirable feature to save recordings offline -
e.g. record console and then save the relevant files offline. They could
then be used to play on websites other than asciinema.org (given an
extracted player).

One of the problems with this so far is that the python script just does
some basic recording. Then there is a whole lot of post processing going on
in the asciinema.org webapp (Ruby).

I already extracted (and adjusted/unrailsified) the relevant ruby parts
and implemented basic saving in the python script. You can see what I've
done on the save-files-locally branch of my forkhttps://github.com/PragTob/asciinema/tree/save-files-locally
.

Of course for this to be cool and sustainable the ruby post processing
bits would have to go into a gem which can then be used by both offline
people and the website could depend on it.

This together with an assets gem of the player (which is not too hard to
extract) could enable people to record and show their own recordings
without going through the website :)

I guess this somehow relates to #21https://github.com/sickill/asciinema/issues/21

What do you think?

Thanks for your awesome work on this technology!

Reply to this email directly or view it on GitHubhttps://github.com/sickill/asciinema/issues/55
.

<!-- gh-comment-id:37352494 --> @daixtr commented on GitHub (Mar 11, 2014): excuse me, as i have not delve deep into the python/ruby code of this. But if the saved file format follows more or less that the same as of ttyrec (maybe asciinema added some headers prior to this repeating blocks) then, a console player written in C can be easily made to do the replay. On the other hand, I tried to follow the server install steps of asciinema.org into a RedHat, but I'm stuck on some issues.Here's a fragment: /usr/local/rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb ## checking for libxml/parser.h... no libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with ## installing dependencies. **\* extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. I don't have the liberty the choose an Ubuntu, so I knew that RedHat would have pains to make it work.. Can it be done? Any guides? On Wed, Mar 12, 2014 at 12:56 AM, Tobias Pfeiffer notifications@github.comwrote: > I'd like to know if it's a desirable feature to save recordings offline - > e.g. record console and then save the relevant files offline. They could > then be used to play on websites other than asciinema.org (given an > extracted player). > > One of the problems with this so far is that the python script just does > some basic recording. Then there is a whole lot of post processing going on > in the asciinema.org webapp (Ruby). > > I already extracted (and adjusted/unrailsified) the relevant ruby parts > and implemented basic saving in the python script. You can see what I've > done on the save-files-locally branch of my forkhttps://github.com/PragTob/asciinema/tree/save-files-locally > . > > Of course for this to be cool and sustainable the ruby post processing > bits would have to go into a gem which can then be used by both offline > people and the website could depend on it. > > This together with an assets gem of the player (which is not too hard to > extract) could enable people to record and show their own recordings > without going through the website :) > > I guess this somehow relates to #21https://github.com/sickill/asciinema/issues/21 > > What do you think? > > Thanks for your awesome work on this technology! > > ## > > Reply to this email directly or view it on GitHubhttps://github.com/sickill/asciinema/issues/55 > .
Author
Owner

@miroswan commented on GitHub (Nov 15, 2014):

+1

<!-- gh-comment-id:63163170 --> @miroswan commented on GitHub (Nov 15, 2014): +1
Author
Owner

@ku1ik commented on GitHub (Dec 19, 2014):

This is now discussed in #70.

<!-- gh-comment-id:67681890 --> @ku1ik commented on GitHub (Dec 19, 2014): This is now discussed in #70.
Author
Owner

@ku1ik commented on GitHub (Feb 27, 2015):

It's implemented in #80.

<!-- gh-comment-id:76363358 --> @ku1ik commented on GitHub (Feb 27, 2015): It's implemented in #80.
Author
Owner

@PragTob commented on GitHub (Mar 1, 2015):

Well, then we can close this ;)

<!-- gh-comment-id:76622865 --> @PragTob commented on GitHub (Mar 1, 2015): Well, then we can close this ;)
Author
Owner

@PragTob commented on GitHub (Mar 1, 2015):

Well, then we can close this ;)

<!-- gh-comment-id:76622865 --> @PragTob commented on GitHub (Mar 1, 2015): Well, then we can close this ;)
Author
Owner

@ku1ik commented on GitHub (Mar 2, 2015):

We have 1.0.0.rc1 with #80 merged: https://github.com/asciinema/asciinema-cli/releases/tag/v1.0.0.rc1

<!-- gh-comment-id:76809436 --> @ku1ik commented on GitHub (Mar 2, 2015): We have 1.0.0.rc1 with #80 merged: https://github.com/asciinema/asciinema-cli/releases/tag/v1.0.0.rc1
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#654
No description provided.