Skip to content

Recognise MXF AVC Long GOP and MPEG-2 HL labels (3.1.2) - #5

Merged
aagedal merged 2 commits into
mainfrom
t3/mxf-xavc-long-h264-codec
Nov 1, 2026
Merged

aagedal merged 2 commits into
mainfrom
t3/mxf-xavc-long-h264-codec

Conversation

@aagedal

@aagedal aagedal commented Nov 1, 2026

Copy link
Copy Markdown
Owner

MXFReader.codecNameForUL returned no codec for Sony XAVC Long (and bmx/FFmpeg-written H.264) MXF, and for XDCAM HD/HD422.

  • Map SMPTE RP 2008 AVC Long GOP labels (04.01.02.02.01.31.xx.xx) to avc1, with the ffprobe profile name from byte 14 (0x11 left unset: bmx and FFmpeg disagree on it).
  • Map MPEG-2 MP@HL / 422P@HL (01.03.xx / 01.04.xx, byte 12 == 0x01) to mpeg2video.
  • Labels checked against FFmpeg 9.0 mxf.c/mxfenc.c and bmx's label table.
  • Verified on real XAVC Long 25p/50i/59.94p and XDCAM HD422 MXF: codec and profile match ffprobe.
  • Release metadata bumped to 3.1.2; Scripts/verify-release.sh 3.1.2 passes locally.

🤖 Generated with Claude Code

aagedal and others added 2 commits November 1, 2026 18:03
codecNameForUL only mapped the AVC Intra family (01.32.xx) under the
0x02 registry kind, so Sony XAVC Long and bmx/FFmpeg-written H.264 MXF
(01.31.xx, RP 2008) returned no codec. Map them to avc1 and derive the
ffprobe profile name from byte 14. Also map MPEG-2 MP@HL / 422P@HL
(01.03.xx / 01.04.xx, XDCAM HD/HD422), which had the same gap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aagedal
aagedal merged commit 191d878 into main Nov 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant