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

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

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

   Adds `audio:format`, the audio track's four-character codec identifier from 
the MP4/QuickTime sample description (e.g. `mp4a` for AAC, `alac`, `ac-3`).
   
   `TikaMp4SoundHandler` already reads the sample-entry format fourcc (it uses 
it to detect `drms`/`enca` protected streams); this exposes it as metadata. For 
protected streams the original codec is recovered from the nested `frma` box, 
with `audio:has-drm` still set.
   
   `xmpDM:audioCompressor` only fires for audio-typed files and carries the 
container brand, not the per-track codec, so it doesn't cover `video/*` files.
   
   Verified against the M4A test fixture (`mp4a`); metadata schema registries 
updated.
   
   https://issues.apache.org/jira/browse/TIKA-4838
   
   Follows TIKA-4779, TIKA-4800 and TIKA-4802.
   




> Expose the MP4 audio track codec (audio:format)
> -----------------------------------------------
>
>                 Key: TIKA-4838
>                 URL: https://issues.apache.org/jira/browse/TIKA-4838
>             Project: Tika
>          Issue Type: New Feature
>            Reporter: Dominik Schmidt
>            Priority: Major
>
> The MP4/QuickTime parser already reads the audio sample description's format 
> fourcc in TikaMp4SoundHandler, but only uses it to detect protected streams 
> (drms/enca → audio:has-drm). The codec itself is not exposed.
> Add an audio:format property carrying the four-character codec identifier 
> from the sample entry (e.g. mp4a for AAC, alac, ac-3). For protected streams, 
> resolve the original codec from the nested frma (original format) box.
> xmpDM:audioCompressor exists but MP4Parser only sets it for audio-typed files 
> and to the container major brand, not the per-track codec, so it does not 
> cover video/* files or give the sample-entry fourcc.
> Follows TIKA-4779 (audio:bitrate), TIKA-4800 (frame rate / channels / sample 
> size) and TIKA-4802 (video:bitrate).



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

Reply via email to