I'm using ASCIInema.
And I try to speed it up. asciinema --speed
solves this problem. But how to set the speed in the file.cast
itself, so that it could be published and the user can execute asciinema play
without an additional parameter?
To make the speed change persistent you need to adjust the timing of each event in the cast file.
jq based solution proposed by @kyb is one way. Another is to re-record the cast with this command:
asciinema rec -c 'asciinema play -s 4 file.cast' faster-file.cast
This will create a new recording, but instead of recording a new interactive shell it will record the sped up playback of the old cast.
You don't need jq for this, however the downside is that it's not instant - it takes as much time as the playback at a desired speed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With