TIKA-4802: Expose the MP4 video bitrate (video:bitrate) - #2984
Open
dschmidt wants to merge 1 commit into
Open
Conversation
dschmidt
marked this pull request as ready for review
July 30, 2026 14:25
Contributor
|
@dschmidt able to resolve conflicts? Thank you! |
dschmidt
force-pushed
the
mp4-video-bitrate
branch
from
August 5, 2026 22:57
20fb817 to
45c5b5d
Compare
Contributor
Author
|
Yes 🤓 |
Contributor
|
And one more time... |
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-4802
MP4Parserreads the average audio bitrate from the sound track'sesds(TIKA-4779) but does not expose the video track's bitrate. A newTikaMp4VideoHandler(mirroringTikaMp4SoundHandler) reads the average bitrate from the video sample entry'sbtrtBitRateBox and sets it asvideo:bitrate.Tested against a 1.8 KB ffmpeg-generated clip (
testMP4Video.mp4,btrtavgBitrate 6536). Theesdspath (legacy MPEG-4 Part 2 video) is out of scope; modern H.264/HEVC carry the bitrate inbtrt.Overlaps #2982 (TIKA-4800), which adds the same
Video.javaandtestMP4Video.mp4fixture; whichever merges second has a trivial rebase.