Skip to content

Create a tool to dump an EBML file structure #127

@FreezyLemon

Description

@FreezyLemon

EBML is a "binary equivalent to XML", so it should be plausible to write a small tool that converts the EBML input into a human-readable representation.

The output should be similar to XML, but obviously does not need to conform to XML specs.

The tool should be able to recognize Elements (ID, Length, Data/Value) and differentiate Master Elements from "primitives".

Something optional would be reading and validating CRC-32 inside of Master Elements.

An output example:

<EBML>
  <Master(ID 0x1A45DFA3, Size 11)>
    <Element(ID 0x4287, Size 4)>
      [0x0, 0x0, 0x0, 0x4]
    </Element>
    <!-- ... -->
  </Master>
</EBML>

Maybe even with some possible data interpretations:

<EBML>
  <Master(ID 0x1A45DFA3, Size 11)>
    <Element(ID 0x4287, Size 4)>
      [uint: 4]
      [int: 4]
      [float: 1.1e-44]
    </Element>
    <!-- ... -->
  </Master>
</EBML>

Again, the actual output format isn't that important. It just needs to be readable and should be helpful to check what's going on inside any given EBML file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions