[ 
https://issues.apache.org/jira/browse/TIKA-4838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dominik Schmidt updated TIKA-4838:
----------------------------------
    Description: 
A video file's audio track codec is currently not exposed. TikaMp4SoundHandler 
reads the audio sample description's format fourcc but only uses it to detect 
protected streams (drms/enca → audio:has-drm).

Add an audio:format property carrying that four-character codec identifier 
(e.g. mp4a for AAC, alac, ac-3), set from the sample entry. It comes from the 
audio track, so it also populates for video/* files, where 
xmpDM:audioCompressor does not fire (it only covers audio-typed files and 
carries the container major brand, not the per-track codec). For protected 
streams the original codec is recovered from the nested frma box.

Rounds out the per-track audio metadata added in TIKA-4779 (audio:bitrate) and 
TIKA-4800 (audio:channels, audio:bits-per-sample), and pairs with the 
video-track metadata from TIKA-4800/TIKA-4802.

  was:
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).


> 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
>
> A video file's audio track codec is currently not exposed. 
> TikaMp4SoundHandler reads the audio sample description's format fourcc but 
> only uses it to detect protected streams (drms/enca → audio:has-drm).
> Add an audio:format property carrying that four-character codec identifier 
> (e.g. mp4a for AAC, alac, ac-3), set from the sample entry. It comes from the 
> audio track, so it also populates for video/* files, where 
> xmpDM:audioCompressor does not fire (it only covers audio-typed files and 
> carries the container major brand, not the per-track codec). For protected 
> streams the original codec is recovered from the nested frma box.
> Rounds out the per-track audio metadata added in TIKA-4779 (audio:bitrate) 
> and TIKA-4800 (audio:channels, audio:bits-per-sample), and pairs with the 
> video-track metadata from TIKA-4800/TIKA-4802.



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

Reply via email to