Skip to content

TIKA-4800: Expose the MP4 frame rate, audio channels and sample size - #2982

Merged
tballison merged 3 commits into
apache:mainfrom
dschmidt:mp4-track-metadata
Aug 6, 2026
Merged

TIKA-4800: Expose the MP4 frame rate, audio channels and sample size#2982
tballison merged 3 commits into
apache:mainfrom
dschmidt:mp4-track-metadata

Conversation

@dschmidt

Copy link
Copy Markdown
Contributor

JIRA: https://issues.apache.org/jira/browse/TIKA-4800

metadata-extractor's Mp4VideoDirectory and Mp4SoundDirectory already populate the frame rate, channel count and audio sample size, but MP4Parser only mapped a subset. This forwards the three: video:frame-rate (a new Video property, since XMPDM.VIDEO_FRAME_RATE is a closed-choice text field), audio:channels (the raw count; XMPDM.AUDIO_CHANNEL_TYPE only distinguishes Mono/Stereo) and audio:bits-per-sample.

One property per commit. Tests assert channels/bits against the existing testMP4.m4a (2 channels, 16 bits) and the frame rate against a new 1.8 KB ffmpeg-generated clip (testMP4Video.mp4, 10 fps).

@dschmidt
dschmidt marked this pull request as ready for review July 30, 2026 14:24
@tballison

Copy link
Copy Markdown
Contributor

@dschmidt able to resolve conflicts? Thank you!

@dschmidt
dschmidt force-pushed the mp4-track-metadata branch from ecd0cd7 to 9566396 Compare August 5, 2026 22:56
@dschmidt

dschmidt commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Yes again 🤓

@tballison
tballison merged commit c3655a9 into apache:main Aug 6, 2026
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.

2 participants