Skip to content

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

Open
dschmidt wants to merge 3 commits into
apache:mainfrom
dschmidt:mp4-track-metadata
Open

TIKA-4800: Expose the MP4 frame rate, audio channels and sample size#2982
dschmidt wants to merge 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
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