Giter Site home page Giter Site logo

asciinema2gif's People

Contributors

blueyed avatar jfmherokiller avatar tav avatar vitorgalvao avatar vojtechvitek avatar wong2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

asciinema2gif's Issues

'ReferenceError: Can't find variable: $'

I am following the exact command in the README and am getting the following result. I tried using both my own recordings and the default one on asciinema.org.

asciinema2gif --theme solarized-light -o "${HOME}/Desktop/another.gif" https://asciinema.org/api/asciicasts/8332
ReferenceError: Can't find variable: $

  undefined:2
  :4

The recording is of nothing. I simply started and then stopped the recorder and that was the error I received every time.

I am using OS X Sierra (or macOS or whatever it is called). I have used it in and out of tmux, and tried both bash and zsh. I have tried using node versions 0.10.30, 4.6.0 and 6.4.0. I am happy to try any other recommend debugging techniques if that would be helpful.

ReferenceError: Can't find variable: asciinema

asciinema2gif-0.1 ./asciinema2gif https://asciinema.org/a/18135

Creating and changing to temporary dir: /var/folders/6p/0dbj8n411c9379rh737dhk9m0000gn/T/asciinema2gif.XXX.CtygEhlR
>> Dimensions: 332x576
>> Preparing window ...
ReferenceError: Can't find variable: asciinema

  phantomjs://webpage.evaluate():9
  phantomjs://webpage.evaluate():42

I tried to use phantomjs but with no success.

asciinema2gif failed to read pixel

$ asciinema2gif -s big 104105

Dimensions: 1463.9375x1312
Preparing window ...
Generating screenshots ...
Progress: 0%
Progress: 0.3430794820830282%
Progress: 100%
Done!
Generating GIF…
gifsicle: warning: huge GIF, conserving memory (processing may take a while)
gifsicle::#434: read error: missing 1632188 pixels of image data
gifsicle:asciicast.gif:#434: read error: missing 1632188 pixels of image data
gifsicle: warning: trivial adaptive palette (only 46 colors in source)
$

"SSL handshake failed" while trying to convert an asciicast to a gif

Hi,

Thanks a lot for your work which seems to work great. Nevertheless, I try to convert an asciicast to a gif following your examples and I face an SSL error. Actually, I run this command:

./asciinema2gif --theme solarized-light -o "${HOME}/Bureau/test.gif" https://asciinema.org/api/asciicasts/81648

and I get the following error codes:

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

My asciicast is public. And I get the same error codes while trying to run simply:

./asciinema2gif --size small --speed 2 --theme solarized-light 81648

Any idea why?

I just would like to note I think I have all the dependencies installed and I'm on Ubuntu 14.04 LTS

Many thanks for your help. Don't hesitate to tell me if I post in the wrong place...

asciienema2gif fails due to SSL Error

Just created a cast with asciienema2 and tried to convert it with asciienema2gif and it fails with:

ERROR: Error creating SSL context (error:140A90C4:SSL routines:func(169):reason(196))

Running Debian Testing.

Hanging on "preparing window..."

asciinema2gif https://asciinema.org/a/deo5wx7v8iok4dt4h7mrtei1e
>> Dimensions: 563x752
>> Preparing window ...

sist output:

OS

Darwin
x64

shell

uname: Darwin
echo $SHELL: /bin/zsh
echo $TERM: xterm-256color
echo $TERM_PROGRAM: iTerm.app

node

npm -v: 2.14.2
node --version: v4.0.0

Time created: Wed Jul 27 2016 23:58:48 GMT-0700 (PDT)

phantomjs binary name

I tried to use the script, and run it, however it could not find the binary: phantomjs2.
This is the error message I am recieving:

./asciinema2gif: line 19: phantomjs2: command not found

I checked in the binary for phantomjs2 and under phantomjs2/bin: I saw the name of the binary was phantomjs.

I changed line 19 to phantomjs and ran the script and it worked afterwards. Is this something that needs to be updated?

Hassle installing phantomjs on Debian 8

npm install --global phantomjs2 threw me errors on Debian 8, with something to do about the 'node' legacy binary.
This page helped me out. I suggest adding a Debian installation section just to save other people the trouble of figuring out why phantomjs won't install.

mktemp: too few X's in template ‘asciinema2gif’

When running the example from the readme I get this:

$ ./asciinema2gif --theme solarized-light -o "${HOME}/Desktop/another.gif" https://asciinema.org/api/asciicasts/8332
mktemp: too few X's in template ‘asciinema2gif’
: No such file or directory

The same happens with any asciicast numer or url and with different settings.

libgomp: Thread creation failed: Resource temporarily unavailable

I get this error when running it under ubuntu 14.04

$./asciinema2gif xxxxxxx
>> Dimensions: 948x1792
>> Preparing window ...
>> Generating screenshots ...
>> Progress: 0%
>> Progress: 0.23200604715409717%
<snipped>
>> Progress: 100%
>> Done!
>> Generating GIF…

libgomp: Thread creation failed: Resource temporarily unavailable
mv: cannot stat ‘/tmp/asciinema2gif.bXnq/asciicast.gif’: No such file or directory
$uname -a
Linux kubuntu14 4.4.0-59-generic #80~14.04.1-Ubuntu SMP Fri Jan 6 18:02:23 UTC 2017 i686 i686 i686 GNU/Linux

Parsing ID and URL both fails

Seems like the /api/asciicasts URL is no longer available

$ asciinema2gif https://asciinema.org/api/asciicasts/123683ERROR: https://asciinema.org/api/asciicasts/123683 returns 404
$ asciinema2gif https://asciinema.org/a/123683

Wrong URL format. See https://github.com/tav/asciinema2gif#url-format.

Neither does parsing by ID work

$ asciinema2gif 123683
ERROR: https://asciinema.org/api/asciicasts/123683 returns 404

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.