← 全部工具

suzuki-shunsuke/asciinema-trim

热度 65 更新于 开发与构建

Trim and change the playback speed of asciinema's session

githubauto-collected

安装

暂未验证可直接使用的安装命令,请查看项目官方文档或 Release。

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.