TIKA-4800: Expose the MP4 frame rate, audio channels and sample size - #2982
Open
dschmidt wants to merge 3 commits into
Open
TIKA-4800: Expose the MP4 frame rate, audio channels and sample size#2982dschmidt wants to merge 3 commits into
dschmidt wants to merge 3 commits into
Conversation
dschmidt
marked this pull request as ready for review
July 30, 2026 14:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JIRA: https://issues.apache.org/jira/browse/TIKA-4800
metadata-extractor's
Mp4VideoDirectoryandMp4SoundDirectoryalready populate the frame rate, channel count and audio sample size, butMP4Parseronly mapped a subset. This forwards the three:video:frame-rate(a newVideoproperty, sinceXMPDM.VIDEO_FRAME_RATEis a closed-choice text field),audio:channels(the raw count;XMPDM.AUDIO_CHANNEL_TYPEonly distinguishes Mono/Stereo) andaudio: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).