Cheetah CAP

OpenSaveBinaryBroadcast

The binary caption files of Cheetah's captioning software, which other captioning tools import. A record for each caption: its times, where it sits on line 21's grid of 15 rows of 32 columns, and its text.

At a glance

Extension.cap
Media typeNone registered
SpecificationNone published. Subtitld follows Subtitle Edit, whose reader and writer were worked out from files.
Time precisionA frame. The file does not say at what rate.
Text encodingA byte a character: ASCII, line 21's extras (♪ á é ñ …), and Windows-1252 for the rest
StylingItalics, for a whole line
PositioningA row of 15 and a column of 32, as CEA-608 counts them, and a justification
SpeakersNone
In containersNone

Anatomy of a file

Not text but bytes: a 128-byte header, then a record for each caption, as long as its text.

Header · 128 bytes
  EA 22 · version 1 · 2 captions
Record · 40 bytes · one line
  00:00:23:00
  00:00:24:13
  centre · row 15 · column 16
  You're a jerk, Thom.
Record · 42 bytes · two lines
  …
  1. 1 · Header

    EA 22, a version from 1 to 3, the number of captions, four bytes whose meaning is not known, then zeros.

  2. 2 · Timing

    The record's length and kind, then its start and end.

  3. 3 · Text

    Where it sits, then its text, a byte a character.

A record, byte by byte

The first caption above, as Subtitld writes it:

Bytes What they are
28 The record's length, 40 bytes, this one included
61 Its kind: 6 a caption with an end, 1 one line
00 00 17 00 Start Hours, minutes, seconds, frames: 00:00:23:00
00 00 18 0D End 00:00:24:13
12 01 00 00 00 00 Written as every file has them; what they mean is not known
03 Justification: 01 left, 02 right, 03 centre
0F Row 15, the bottom
10 Column 16, the middle of 32
59 6F 75 … You're a jerk, Thom.
00 The end of the text

A record of kind 4 has no end: the caption lasts until the next one starts. In the text, 00 00 00 00 breaks the line, and D0 makes the rest of it italic.

The timecode

No frame rate in the file. The header does not say how many frames a second the times count. Subtitld counts them at the video's rate, else 25. Choose the video's rate when you export.

Characters

Bytes Characters
20–7E ASCII
81–95 Line 21's extras: ♪ á é í ó ú â ê î ô û à è Ñ ñ ç ¢ £ ¿ ½ ®
80, 96–BF Windows-1252's
C0 and up Codes. D0 is italics; the rest are not known.

CAP or SCC?

Both are made for line 21 captions, on the same grid.

Cheetah CAP SCC
Holds Each caption's text, times and place CEA-608's bytes, as the video carries them
Form Binary Hex digits in text
A caption One record Commands and characters, two bytes a frame
Frame rate Not in the file 29.97
Styling Italics Italics, underline, seven colours

CAP in Subtitld

Kept in the .cap
  • Every caption's text and line breaks
  • Italics, for lines italic all through
  • Where it sits: top, middle or bottom; left, centre or right
  • Start and end, to the frame
Nowhere to go
  • Italics on part of a line, bold, underline and colours
  • Characters outside its set, which become their letter without the accent, or "?"
  • Speakers, translations beside the original
  • Dubs, speakers' faces and colours

Save a .usfx project to keep them.

Opening a CAP file

A .cap is Cheetah's, or Lambda CAP's: Subtitld looks inside, and opens Lambda's text as Lambda CAP. Of Cheetah's, it reads:

  • records with an end, and records without one, each lasting until the next caption starts;
  • the older format, which begins EA 10: 178 bytes a caption, two lines of 38 characters;
  • text that starts up to four bytes before its place, as some files have it;
  • rows 1 to 5 as the top and 6 to 10 as the middle; columns below 12 as the left and above 20 as the right;
  • frames at the video's rate, else 25.

The frame rate is kept, to save the file again as it was. A file that does not begin as a Cheetah CAP says so.

Exporting CAP

Subtitld's export dialog with CAP chosen, at 29.97 frames a second

Export, then Subtitles and CAP, offers:

  • TextThe original, a translation, or both, the translation below.
  • Speaker namesLeft out, or before the text (Thom: …).
  • FormattingKept, or removed.
  • Shift timesEvery caption earlier or later by the same amount.
  • Frame rateThe video's, unless you choose. The file does not say it.

Subtitld writes the newer format, version 1, every caption with its end, so none depends on the next. A caption sits on row 1, 8 or 15 and column 2, 16 or 30, as Subtitle Edit writes them. A record's length is one byte, so a caption's text stops at 235 bytes.

Not checked against Cheetah's tools. What Subtitld writes follows Subtitle Edit's reader and writer. No file it wrote has been opened in Cheetah's own software or a caption encoder.

Trivia

32

Columns on line 21's caption grid, in 15 rows: the grid a Cheetah CAP places its captions on.

.asc

In 2012 Cheetah's support described the .cap as binary, not for editing as text. Its software also wrote a text file, .asc, as a bridge from other tools.

MacCaption

Telestream's captioning software imports Cheetah CAP among its interchange files, with PAC and EBU STL.

Related formats

Have a .cap to fix?

Open it in Subtitld with the video and retime it on the waveform.

Download Subtitld