Comments (7)
If you append .gif
to your recording URL now you get instructions on how to generate gif animation for it. Example: https://asciinema.org/a/113463.gif
from asciinema-player.
https://github.com/tav/asciinema2gif/
from asciinema-player.
I think the best way to implement this would be to use player's VT (https://github.com/asciinema/asciinema-player/blob/master/src/asciinema/player/vt.cljc) and its view (https://github.com/asciinema/asciinema-player/blob/master/src/asciinema/player/view.cljs), and the PhantomJS script similar (but more complex) to the one currently used for generating .png screenshot (https://github.com/asciinema/asciinema.org/blob/master/bin/rasterize).
This would give the best quality (the same as we have for .png on asciinema.org now), and would produce .gif with variable frame times (constant frame rate is unnecessary in our case and would produce bigger files and/or took longer time - this is what https://github.com/tav/asciinema2gif does right now).
/cc asciinema/asciinema-server#187
/cc #26
/cc tav/asciinema2gif#24
from asciinema-player.
Please try out https://github.com/asciinema/a2gif (I implemented the idea from #24 (comment)).
from asciinema-player.
I can't test this ability right now, but I will certainly do when I find the time. Thanks!
from asciinema-player.
I'm seeing a failure from the docker instructions provided by that .gif
link:
docker run --rm -v $PWD:/data asciinema/asciicast2gif https://asciinema.org/a/tw4lOrVzXMcxdBeOnHBIOvvL8.cast demo.gif
==> Combining 105 screenshots into GIF file...
Killed
gifsicle:<stdin>: empty file
/app/main.js:697
from asciinema-player.
This issue still seems relevant?
from asciinema-player.
Related Issues (20)
- Tmux pane disappears when opening nvim in its neighboring pane HOT 4
- Working example of getting source from element? HOT 5
- Player does not show in dropdown in Firefox HOT 7
- TypeError: Cannot read properties of null (reading 'firstChild')
- view operation records in real-time
- Wrapping failure under special conditions
- UI will not show up when pressing hotkeys HOT 3
- why does it not render sixel? HOT 1
- v3 player is harder to style than v2 HOT 8
- UI width not correctly computed HOT 3
- Cannot read properties of null (reading 'init') HOT 1
- theme settings seems to be ignored HOT 4
- sixel support
- Artifacting on asciinema.org - looks good in CLI player HOT 2
- Feature: Text to speech HOT 4
- FYI, hit unreachable!() in webassembly player HOT 3
- Player width sizing incorrect on Safari/WebKit browsers HOT 7
- Failed to import `asciinema-player` (missing `"type": "module"`?) HOT 1
- Export asciinema-player.min.js
- markers do not support the idleTimeLimit setting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asciinema-player.