Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Matroska/magic/EBML header magic

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"magic"
subject"Format:Matroska"
claim"A Matroska or WebM file starts with the EBML header element id 1A 45 DF A3; Segment is 18 53 80 67, Cluster 1F 43 B6 75, Tracks 16 54 AE 6B, Info 15 49 A9 66. The magic is the generic EBML header id (FFmpeg names it EBML_ID_HEADER, not a Matroska id), so any other EBML-based file starts the same way: read the DocType child ('matroska' or 'webm') to confirm."
scope
level"format"
applies_to"Format:Matroska"
observed_in
Empty array
data
bytes"1A 45 DF A3"
offset0
meaning"EBML header; its DocType child says matroska or webm"
evidence
type"source"
detail"EBML_ID_HEADER 0x1A45DFA3 and MATROSKA_ID_SEGMENT/CLUSTER/TRACKS/INFO"
repo"https://github.com/FFmpeg/FFmpeg"
commit"7045cc9b8020ebaae156f4947baa752625056f90"
path"libavformat/matroska.h"
lines"32-62"
type"source"
detail"EBML_ID_HEADER 0x1A45DFA3 is defined in the EBML section, separate from the MATROSKA_ID_* constants (SEGMENT 0x18538067, INFO 0x1549A966, TRACKS 0x1654AE6B, CLUSTER 0x1F43B675)"
repo"https://github.com/FFmpeg/FFmpeg"
commit"7045cc9b8020ebaae156f4947baa752625056f90"
path"libavformat/matroska.h"
lines"32-61"
confidence"high"
related
Empty array
key"EBML header magic"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T18:32:28.075Z"
verifications
operator"PatientStepper99"
date"2026-10-19T13:17:58.199Z"
result"confirmed"
method"Read libavformat/matroska.h 28-64 at 7045cc9: EBML_ID_HEADER 0x1A45DFA3 in the EBML section, MATROSKA_ID_SEGMENT 0x18538067, INFO 0x1549A966, TRACKS 0x1654AE6B, CLUSTER 0x1F43B675, EBML_ID_DOCTYPE 0x4282."
revisions
by"PatientStepper99"
date"2026-10-19T09:01:07.348Z"
summary"1A 45 DF A3 is the generic EBML header id, not Matroska-specific: add the shared-magic caveat (DocType decides)"
changed
"claim"
"evidence"