• Stars
    star
    303
  • Rank 134,607 (Top 3 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 6 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

asciinema casts post-production tools

asciinema-edit ๐ŸŽฌ

Auxiliary tools for dealing with ASCIINEMA casts

asciinema-edit is a tool who's purpose is to post-process asciinema casts (V2), either from asciinema itself or termtosvg.

Illustration of how ASCIINEMA-EDIT works

Three transformations have been implemented so far:

  • quantize: Updates the cast delays following quantization ranges; and
  • cut: Removes a certain range of time frames;
  • speed: Updates the cast speed by a certain factor.

Having those, you can improve your cast by:

  • speeding up parts that are not very important;
  • reducing delays between commands; and
  • completely removing parts that don't add value to the cast.

Installation

Being a Golang application, you can either build it yourself with go get or fetch a specific version from the Releases page:

#Using `go`, fetch the latest from `master`
go get -u -v github.com/cirocosta/asciinema-edit

#Retrieving from GitHub releases
VERSION=0.0.6
curl -SOL https://github.com/cirocosta/asciinema-edit/releases/download/$VERSION/asciinema-edit_$VERSION_linux_amd64.tar.gz

Quantize

NAME:
   asciinema-edit quantize - Updates the cast delays following quantization ranges.

   The command acts on the delays between the frames, reducing such
   timings to the lowest value defined in a given range that they
   lie in.

   For instance, consider the following timestamps:

      1  2  5  9 10 11

   Assuming that we quantize over [2,6), we'd cut any delays between 2 and
   6 seconds to 2 second:

      1  2  4  6  7  8

   This can be more easily visualized by looking at the delay quantization:

      delta = 1.000000 | qdelta = 1.000000
      delta = 3.000000 | qdelta = 2.000000
      delta = 4.000000 | qdelta = 2.000000
      delta = 1.000000 | qdelta = 1.000000
      delta = 1.000000 | qdelta = 1.000000

   If no file name is specified as a positional argument, a cast is
   expected to be served via stdin.

   Once the transformation has been performed, the resulting cast is
   either written to a file specified in the '--out' flag or to stdout
   (default).

EXAMPLES:
   Make the whole cast have a maximum delay of 2s:

     asciinema-edit quantize --range 2 ./123.cast

   Make the whole cast have time delays between 300ms and 1s cut to
   300ms, delays between 1s and 2s cut to 1s and any delays bigger
   than 2s, cut down to 2s:

     asciinema-edit quantize \
       --range 0.3,1 \
       --range 1,2 \
       --range 2 \
       ./123.cast

USAGE:
   asciinema-edit quantize [command options] [filename]

OPTIONS:
   --range value  quantization ranges (comma delimited)
   --out value    file to write the modified contents to
   

Speed

NAME:
   asciinema-edit speed - Updates the cast speed by a certain factor.

   If no file name is specified as a positional argument, a cast is
   expected to be served via stdin.

   If no range is specified (start=0, end=0), the whole event stream
   is processed.

   Once the transformation has been performed, the resulting cast is
   either written to a file specified in the '--out' flag or to stdout
   (default).

EXAMPLES:
   Make the whole cast ("123.cast") twice as slow:

     asciinema-edit speed --factor 2 ./123.cast

   Cut the duration in half:

     asciinema-edit speed --factor 0.5 ./123.cast

   Make only a certain part of the video twice as slow:

     asciinema-edit speed \
        --factor 2 \
        --start 12.231 \
        --factor 45.333 \
        ./123.cast

USAGE:
   asciinema-edit speed [command options] [filename]

OPTIONS:
   --factor value  number by which delays are multiplied by (default: 0)
   --start value   initial frame timestamp (default: 0)
   --end value     final frame timestamp (default: 0)
   --out value     file to write the modified contents to

Cut

NAME:
   asciinema-edit cut - Removes a certain range of time frames.

   If no file name is specified as a positional argument, a cast is
   expected to be served via stdin.

   Once the transformation has been performed, the resulting cast is
   either written to a file specified in the '--out' flag or to stdout
   (default).

EXAMPLES:
   Remove frames from 12.2s to 15.3s from the cast passed in the commands
   stdin.

     cat 1234.cast | \
       asciinema-edit cut \
         --start=12.2 --end=15.3

   Remove the exact frame at timestamp 12.2 from the cast file named
   1234.cast.

     asciinema-edit cut \
       --start=12.2 --end=12.2 \
       1234.cast

USAGE:
   asciinema-edit cut [command options] [filename]

OPTIONS:
   --start value  initial frame timestamp (required) (default: 0)
   --end value    final frame timestamp (required) (default: 0)
   --out value    file to write the modified contents to

More Repositories

1

cr

Runs your tasks at maximum concurrency
Go
692
star
2

qcode-decoder

QR Code decoder using Lazar Laszlo's decoder
JavaScript
241
star
3

gupload

Upload files with gRPC and/or HTTP2
Go
176
star
4

sample-grafana

Automatic Grafana dashboard initialisation example
Shell
119
star
5

pizza-controller

That's right - order that nice pizza ๐Ÿ• with `kubectl`
Go
114
star
6

dmesg_exporter

A "dmesg" prometheus exporter - metrics from the kernel messages ring buffer
Go
55
star
7

observer-c

A pure C implementation of the Observer Pattern
C
46
star
8

gulp-converter-tjs

Converts old/new type of OpenCV HaarCascade xml data to trackingJs' internal format.
JavaScript
37
star
9

xfsvol

Local Docker Volumes with XFS Project Quota
Go
28
star
10

sample-rpc-go

An Example of Go RPC Client and Server
Go
27
star
11

stress

Single-purpose tools to stress resources
C
27
star
12

react-piano-tiles

A reconstruction of the Piano Tiles mobile game (although not currently optimized for mobile).
JavaScript
25
star
13

go-monero

Monero's p2p and RPC in go
Go
24
star
14

pidpath

Retrieves the absolute path to the executable of a running process
Go
21
star
15

monero-exporter

Prometheus exporter for monero metrics.
Go
21
star
16

rawdns

A records resolver from scratch - raw UDP packets
Go
21
star
17

monero-operator

A Kubernetes-native way of deploying Monero nodes and even whole networks: express your intention and let Kubernetes run it for you.
Go
17
star
18

react-matrix

Represents, with SVG, a given Matrix
JavaScript
13
star
19

site-blocker

Chrome extension to block some websites.
JavaScript
12
star
20

alpine-envsubst

Minimal Docker Alpine:3.6 container with envsubst
Shell
11
star
21

grafana-sync

Keeps your Grafana dashboards in sync
Go
11
star
22

auto53

Automatic Route53 updates based on EC2 Autoscaling state changes
Go
11
star
23

hstatic

An incomplete and small example http server in C - wip
C
10
star
24

l7

Minimal HTTP 1.1 Proxy & Load-balancer
Go
9
star
25

chicken-gun

stressing your system, a chicken at a time
Rust
9
star
26

sample-aws-networking

Example of AWS networking setup using Terraform
HCL
9
star
27

tinyc

Tiny container runtime
C
8
star
28

transparencia

Um wrapper javascript sobre a API do transparencia.gov.br
JavaScript
8
star
29

sample-docker-registry-aws

Sample of how to deploy a Docker registry backed by S3 in AWS EC2 using IAM roles to grant temporary credentials
HCL
8
star
30

ng-formatphone-br

Angular Filter and Directive for formatting Brazillian phones
JavaScript
8
star
31

l4

Minimal TCP proxy
Go
8
star
32

flight_recorder

A Prometheus exporter for gathering Concourse information from the PostgresSQL DB.
Go
8
star
33

pipeline2dot

concourse pipeline dependencies as dot graphs
Go
8
star
34

cartorio

A read-only container image registry
Rust
8
star
35

react-tree

JavaScript
7
star
36

example-docker-ansible

A minimal ready to use Docker Ansible role with Vagrant provisioning set
Ruby
7
star
37

hello-world-lkm

A "hello-world" loadable kernel module
C
7
star
38

go-sample-udp

Sample UDP Server and Client in Go
Go
7
star
39

drwho

concurrent recursive whois resolution
Go
7
star
40

slirunner

Concourse SLI probes runner
Go
6
star
41

sample-nginx-http2

NGINX HTTP2 Server Push example
Go
6
star
42

sdns

Minimal A and NS record resolver
Go
6
star
43

lighty-sqlinj-demo

CVE-2014-2323 exploit demonstration
C
6
star
44

hello-swagger

Example Hello World Swagger API
Go
6
star
45

efs-locks-sample

Sample showing how easy it is to get to the EFS locks quota
HCL
6
star
46

dind

A dockerized Docker machine (dind) with SSH and GIT
Shell
5
star
47

travis-triggerer

A single drop-in script to trigger travis-ci builds from other builds.
Shell
5
star
48

mylinux

Personal Linux machine configuration
Shell
5
star
49

syslog-send

Send syslog messages using go's log/syslog package
Go
5
star
50

utea

Toy WebGL 3D Engine
JavaScript
5
star
51

paypal-expresscheckout-python

A simple sdk for perfoming ExpressCheckout with Python
Python
5
star
52

concourse-arm

Concourse on ARMv7 and Arm64
Dockerfile
5
star
53

GCM_sample_APP

Aplicativo exemplo de uma aplicaรงรฃo GCM a ser utilizada com o testador http://apresentae.appspot.com/gcm_testing.
Java
5
star
54

sample-collect-docker-metrics

Example of how to integrate Prometheus, Grafana and Docker Daemon metrics
Shell
5
star
55

talks

Content from my talks :))
JavaScript
4
star
56

hugo-utils

Extra tools for managing Hugo websites.
Go
4
star
57

matrix-snake

Snake game on javascript Matrices!
JavaScript
4
star
58

devents

Docker Events Collector
Go
4
star
59

memman

A MMU simulator in C
C
3
star
60

ApresentAE

Source code for https://apresentae.appspot.com , the webpage where i put all my presentations stuff.
JavaScript
3
star
61

go-mod-dep-source-finder

Get direct links to your Go dependencies sources.
Go
3
star
62

nfsvol

Docker Volume Plugin for managing NFS storage - WIP
Go
3
star
63

ingress_ipvs_exporter

Exports Docker's ingress IPVS metrics
Go
3
star
64

storage-utils-js

Some utils for webstorage
JavaScript
3
star
65

perfer

A wrapper on top of `perf` and `flamegraphs` to generate flamegraphs on demand.
Go
3
star
66

execsnoopvis

visualize system-wide process execution
Go
3
star
67

yarenderer

yet another rendering engine in c++
C++
3
star
68

containerd-install

a "minimal" containerd install (ubuntu)
Makefile
3
star
69

docker-ubuntu

Ubuntu-based docker image with base minimum systemd and SSH
Shell
3
star
70

angular-tutorial-following

A project that follows the official AngularJS Tutorial but with a lot of comments
JavaScript
3
star
71

similar-to

A deepEqual a like that doesn't checks values. It's all about similarity :)
JavaScript
2
star
72

llb

[wip] The low-level load balancer
C
2
star
73

estaleiro

building container images with bill of materials
Go
2
star
74

concourse-crds

A set of custom resource definitions that aim at controlling Concourse.
Go
2
star
75

docker-ec2-metadata-block

Example of EC2 Metadata service blocking for Docker container
HCL
2
star
76

concourse-worker-health-checker

A sidecar that introduces minimum load into a Concourse worker to probe its health
Go
2
star
77

oklog-docker-plugin

OKLog forwarder that sends your container logs to OKLog ingestors
Go
2
star
78

humanb

Bytes to Human bytes
JavaScript
2
star
79

yaspm

yet another serialport manager
JavaScript
2
star
80

gyr

Go
2
star
81

expose-edns

Exposes docker embedded DNS
Shell
2
star
82

pasquale

Checks for spelling errors in a given sentence
JavaScript
2
star
83

poliglota

Translates a given text to a given language.
JavaScript
2
star
84

heapvis

visualizing heap profile diffs over time
Go
2
star
85

stacksearch

discover callstacks in which functions of interest are called.
Go
2
star
86

yascm

A toy scheme compiler
C++
2
star
87

slowhttp

A slow HTTP static server for simulating slow (but constant) responses from a server.
Go
1
star
88

ootb-tce

Shell
1
star
89

influx-stresser

Hits influxdb with a bunch of batch requests
Go
1
star
90

yahttp-parser

A naive C++ HTTP parser implementation using Bison and Flex
HTML
1
star
91

vai

Single script that wraps a list of scripts in a directory as a CLI
Shell
1
star
92

yairc

simplistic irc client and server
C
1
star
93

scm-controller

Go
1
star
94

intro-prometheus-talk

a very quick intro to prometheus (lightning!)
1
star
95

dagger-notes

nothing to see here - wip
Dockerfile
1
star
96

certgen

Utility for generating certificates with SAN set
Shell
1
star
97

yacss-parser

Yet Another toy CSS parser
C++
1
star
98

buildkit-task

Shell
1
star
99

iot-sdk-python

Minimum SDK for the IoT device provided by Telefonica
Python
1
star
100

when-to-buf

Pair of executables for checking use of buffers when doing networking
C
1
star