Converting between ttyrec formats
Recorders
util | notes |
---|---|
asciinema rec |
May save locally. High fidelity. Json (large size). |
ttyrec |
Preservation of original input. Has provenance. |
ttystudio |
Inhouse json output. Long build duration. |
Gif converters
util | input | notes |
---|---|---|
seq2gif |
ttyrec |
Extremely fast converter. |
asciicast2gif |
asciicast |
runs in docker, uses phantomjs and imagemagic. low quality. |
ttystudio |
inhouse json |
gif output of highest fidelity and most greatly compressed size. Longest build duration. |

mp4 converters
util | input | notes |
---|---|---|
ffmpeg |
gif | often results in lower file size. more portable |
</ox-hugo/ttyrec-11.04.20__1586583595.studio.mp4>
Create tmux bindings for different pipelines
|
|
tm
|
|
The bash script above spawns a new tmux session that wraps the current session and starts recording.
When the tmux session is detached, it will convert the recording into the necessary output file.
ttyrec-auto
|
|
The ttyrec-auto
script creates a ttyrec
recording. It’s my preferred option as it
records instantly and replaying a ttyrec
recording enables me to rerecord/convert with
a different pipeline instead.
open-ttyrec
Upon opening the ttyrec
recording in ranger, I’m presented with this menu
|
|
ttyrec-ttystudio
This is a converter script that runs ttyrec
recordings through ttystudio
. ttystudio
rerecords and produces its own record format
plus some very nice gif
output.
|
|
Sequence
graph TD;
ttyrec-->ttystudio;
ttystudio-->gif;
gif-->mp4;

Thanks for reading!
If this article appears incomplete, it may be intentional. Try prompting for a continuation.
If this article appears incomplete, it may be intentional. Try prompting for a continuation.