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

Andreas Meier commented on TIKA-2527:
-------------------------------------

I don't know whether I shall open another ticket or not so I just write it here:

Tika app 1.17 returns application/mp4 for some quicktime files with hap/hap-q 
codec.
Shouldn't it at least be shown as application/quicktime?

Check the .mov files of this github project: 
[https://github.com/Vidvox/hap-quicktime-playback-demo/tree/master/HapQuickTimePlayback|https://github.com/Vidvox/hap-quicktime-playback-demo/tree/master/HapQuickTimePlayback]

[~gagravarr] Is this intended?

Furthermore I am not really happy with the match "ftyp" in video/quicktime 
mime-type.
Wouldn't "ftypqt" be better? Are there any quicktime testfiles that did not 
match with any of the other values so that "ftyp" is needed?

{code:xml}
<mime-type type="video/quicktime">
    <_comment>QuickTime Video</_comment>
    <magic priority="50">
      <!-- Check for common starting Atoms. These will have a 4 byte -->
      <!--  size before them. They almost always have 0x00 after, either -->
      <!--  the length of a child atom, or start of data -->
      <match value="moov\000" type="string" offset="4"/>
      <match value="mdat\000" type="string" offset="4"/>
      <match value="free\000" type="string" offset="4"/>
      <match value="skip\000" type="string" offset="4"/>
      <match value="pnot\000" type="string" offset="4"/>
      <!-- General Atom match, specific ftypXXX ones present for subtypes -->
      <match value="ftyp" type="string" offset="4"/>
      <!-- Common starting Atoms of fixed size -->
      <match value="\x00\x00\x00\x08wide" type="string" offset="0"/>
    </magic>
    <glob pattern="*.qt"/>
    <glob pattern="*.mov"/>
    <sub-class-of type="application/quicktime" />
  </mime-type>{code}



> Typos in tika-mimetypes.xml
> ---------------------------
>
>                 Key: TIKA-2527
>                 URL: https://issues.apache.org/jira/browse/TIKA-2527
>             Project: Tika
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.16
>         Environment: ALL
>            Reporter: Andreas Meier
>            Priority: Minor
>
> Are these mimetypes in tika-mimetypes.xml
> audio/x-adbcm instead audio/x-adpcm
> {code:xml} <mime-type type="audio/x-adbcm">{code}
> and
> audio/x-dec-adbcm  instead audio/x-dec-adpcm
> {code:xml} <mime-type type="audio/x-dec-adbcm">{code}
> intended?
> Couldn't find these mimetypes.
> Regards
> Andreas



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to