← All tools

suzuki-shunsuke/asciinema-trim

Popularity 65 Updated Development & Build

Trim and change the playback speed of asciinema's session

githubauto-collected

Installation

A directly usable install command is not verified yet. Check the project documentation or releases.

asciinema-trim

Trim and change the playback speed of asciinema's session

Motivation

asciinema is an awesome project to record and share your terminal sessions.

After recoding the session, sometimes you would like to trim the session, or change the playback speed. asciinema-trim is a CLI to trim the record file and change the playback speed.

Install

  • Homebrew
  • aqua
  • Download from GitHub Releases
$ brew install suzuki-shunsuke/asciinema-trim/asciinema-trim

Usage

$ asciinema-trim <input file>

The trimmed record file is outputted to the standard output.

e.g.

$ asciinema-trim input.cast > output.cast

Example

Trimming

input.cast

[1.000000, "o", "h"]
[2.000000, "o", "e"]
[4.500000, "o", "r"]
[7.000000, "o", "o"]

Insert 2 to trim 2 seconds.