asciinema-convert(1)

πŸ“¦
version 3.2.1 Β· 2 versions
, in alpine 3.24, arch rolling, nixos 26.05, nixpkgs unstable

okay bestie, welcome to asciinema-convert(1) β€” the General Commands Manual page for the asciinema convert command. It's giving terminal-glowup energy, and I'm obsessed πŸ’…βœ¨

🌸 NAME 🌸

asciinema-convert β€” Convert a recording to another format πŸ’–

πŸŽ€ SYNOPSIS πŸŽ€

asciinema convert [-f|--output-format] [--overwrite] [-q|--quiet]
[-h|--help] <INPUT> <OUTPUT>

πŸ’– DESCRIPTION πŸ’–

This icon converts a recording to another format. It transforms asciicast files between different formats (v1, v2, v3) or exports to other formats like raw terminal output or plain text. It supports reading from files, URLs, or stdin and writing to files or stdout. Literally all the flexible vibes, no cap πŸ¦‹

✨ OPTIONS ✨

  • -f, --output-format=FORMAT β€” Specify the format for the converted recording. The default is asciicast-v3. If the output file path ends with .txt, the txt format will be selected automatically unless this option is explicitly specified. Possible values:
    • asciicast-v3 β€” Full-featured session format, with timing and metadata (current generation) β€” https://docs.asciinema.org/manual/asciicast/v3/ ⭐
    • asciicast-v2 β€” Full-featured session format, with timing and metadata (previous generation) β€” https://docs.asciinema.org/manual/asciicast/v2/ πŸ’œ
    • raw β€” Raw terminal output, including control sequences, without timing and metadata πŸ”₯
    • txt β€” Plain text without colors or control sequences, human-readable 🌸
  • --overwrite β€” Overwrite the output file if it already exists. By default, asciinema will refuse to overwrite existing files to prevent accidental data loss. Has no effect when writing to stdout ('-'). Protect your faves, bestie! 🫢
  • -q, --quiet β€” Suppress diagnostic messages and progress indicators. Only error messages will be displayed. 🀫
  • -h, --help β€” Print help (see a summary with '-h'). πŸŽ€
  • <INPUT> β€” The source recording to convert. Can be a local file path, HTTP(S) URL for remote files, or '-' to read from standard input. Remote URLs allow converting recordings directly from the web without need for manual downloading. Supported input formats include asciicast v1, v2 and v3 🌈
  • <OUTPUT> β€” The output path for the converted recording. Can be a file path or '-' to write to standard output πŸ’«

🎬 EXTRA 🎬

Examples, queen: πŸ‘‘

  • asciinema convert old.cast new.cast β€” Converts a recording to the latest asciicast format (v3) ✨
  • asciinema convert demo.cast demo.txt β€” Exports a recording as a plain-text log β€” output format inferred from the .txt extension πŸ’…
  • asciinema convert --output-format raw demo.cast demo.txt β€” Exports as raw terminal output πŸ”₯
  • asciinema convert -f txt demo.cast - β€” Exports as plain text to stdout πŸ¦‹
  • asciinema convert https://asciinema.org/a/569727 starwars.cast β€” Downloads a remote recording and converts it to the latest asciicast format (v3) ⭐

cute sign-off: this footer energy is convert + asciinema-convert(1) β€” and there's no date printed, so I'm not inventing one. byeee, go convert something iconic πŸ’…πŸ«ΆπŸ’–

πŸ“¦ where this page comes from