[ 
https://issues.apache.org/jira/browse/TIKA-4802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18100455#comment-18100455
 ] 

ASF GitHub Bot commented on TIKA-4802:
--------------------------------------

dschmidt opened a new pull request, #2984:
URL: https://github.com/apache/tika/pull/2984

   JIRA: https://issues.apache.org/jira/browse/TIKA-4802
   
   `MP4Parser` reads the average audio bitrate from the sound track's `esds` 
(TIKA-4779) but does not expose the video track's bitrate. A new 
`TikaMp4VideoHandler` (mirroring `TikaMp4SoundHandler`) reads the average 
bitrate from the video sample entry's `btrt` BitRateBox and sets it as 
`video:bitrate`.
   
   Tested against a 1.8 KB ffmpeg-generated clip (`testMP4Video.mp4`, `btrt` 
avgBitrate 6536). The `esds` path (legacy MPEG-4 Part 2 video) is out of scope; 
modern H.264/HEVC carry the bitrate in `btrt`.
   
   Overlaps #2982 (TIKA-4800), which adds the same `Video.java` and 
`testMP4Video.mp4` fixture; whichever merges second has a trivial rebase.
   




> Expose the MP4 video bitrate (video:bitrate)
> --------------------------------------------
>
>                 Key: TIKA-4802
>                 URL: https://issues.apache.org/jira/browse/TIKA-4802
>             Project: Tika
>          Issue Type: New Feature
>            Reporter: Dominik Schmidt
>            Priority: Major
>
> MP4Parser reads the average audio bitrate from the sound track's esds 
> (TIKA-4779) but does not expose the video track's bitrate. The ISO BitRateBox 
> (btrt), a child of the visual sample entry, carries the average and maximum 
> bitrate and is written by common H.264/HEVC encoders. Expose the average as 
> video:bitrate, mirroring audio:bitrate.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to