By default Rattletrap will try to determine the appropriate mode (either decode
or encode) based on the file extensions of the input or output. You can
override this behavior by passing --mode (or -m) with either decode or
encode.

Input extension

Output extension

Mode

.replay

anything

decode (parse)

.json

anything

encode (generate)

anything

.replay

encode (generate)

anything

.json

decode (parse)

anything

anything

decode (parse)

Parse

Rattletrap can parse (decode) Rocket League replays and output them as JSON.

By default the JSON is pretty-printed. To minify the JSON, pass --compact (or
-c) to Rattletrap. Even when the JSON is minified, it’s extremely large. The
output can be up to 100 times larger than the input. For example, a 1.5 MB
replay turns into 31 MB of minified JSON or 159 MB of pretty-printed JSON.

Generate

Rattletrap can also generate (encode) Rocket League replays from JSON files.