Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2935

MP4 content type identified as application/mp4 rather than video/mp4

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.21
    • Fix Version/s: None
    • Component/s: detector, mime
    • Labels:
      None

      Description

      Im currently trying to use Tika detector to identify the content type of the file attached to this ticket. Using both the default detector with default config in java and the tika-app-1.21 }}jar the type is being returned as {{application/mp4.

      According to https://tools.ietf.org/html/rfc4337::

      Selection of MIME Types for MP4 Files

      The MIME types to be assigned to MP4 files are selected according to
      the contents. Basic guidelines for selecting MIME types are as
      follows:

      a) if the file contains neither visual nor audio presentations, but
      only, for example, MPEG-J or MPEG-7, use application/mp4;

      b) for all other files, including those that have MPEG-J, etc., in
      addition to video or audio streams, video/mp4 should be used;
      however:

      c) for files with audio but no visual aspect, including those that
      have MPEG-J, etc., in addition to audio streams, audio/mp4 may be
      used.

      As the file has both video and audio components, it seems this file type should be identified as video/mp4.

      I was hoping to get some help in working out whether this a bug that can be fixed or if there is a problem on my end.

        Attachments

        1. Smile_Doctors_-_Team_Members.mp4
          2.85 MB
          Steven Baskin

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              stevenb Steven Baskin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: