Bug 19671

Summary: Missing mimetypes
Product: shared-mime-info Reporter: David Faure <faure>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: diff against 0.51
Diff against freedesktop.org.xml.in 0.51

Description David Faure 2009-01-21 03:42:40 UTC
Koos Vriezen reported the following missing mimetypes which are needed for kmplayer:

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-mplayer2">
    <comment>Microsoft Media Format</comment>
    <sub-class-of type="video/x-ms-wmv"/>
    <alias type="video/mediaplayer"/>
    <alias type="video/x-ms-wmp"/>
    <glob pattern="*.wmp"/>
  </mime-type>
  <mime-type type="application/vnd.ms-asf">
    <comment>Microsoft Media Format</comment>
    <sub-class-of type="video/x-ms-wmv"/>
  </mime-type>
  <mime-type type="application/x-kmplayer">
    <comment>KMPlayer Format</comment>
  </mime-type>
  <mime-type type="application/x-ogg">
    <comment>Ogg multimedia file</comment>
    <sub-class-of type="application/ogg"/>
  </mime-type>
  <mime-type type="audio/m3u">
    <comment>MP3 audio</comment>
    <sub-class-of type="audio/x-mpegurl"/>
    <alias type="audio/x-m3u"/>
  </mime-type>
  <mime-type type="audio/vorbis">
    <comment>Vorbis audio</comment>
    <sub-class-of type="audio/ogg"/>
    <alias type="audio/x-vorbis"/>
  </mime-type>
  <mime-type type="audio/x-mp2">
    <comment>MP2 audio</comment>
    <sub-class-of type="audio/mp2"/>
  </mime-type>
  <mime-type type="audio/x-oggflac">
    <comment>MP2 audio</comment>
    <sub-class-of type="audio/x-flac+ogg"/>
  </mime-type>
  <mime-type type="video/x-ogm">
    <comment>Ogg/Ogm Video</comment>
    <sub-class-of type="video/x-ogm+ogg"/>
  </mime-type>
  <mime-type type="video/x-theora">
    <comment>Ogg/Ogm Video</comment>
    <sub-class-of type="video/x-theora+ogg"/>
  </mime-type>
</mime-info>
Comment 1 Bastien Nocera 2009-01-21 03:58:27 UTC
Most of those are already in there, please file a separate bug with one mime-type addition per bug, and explain why each mime-type needs to be added.
Comment 2 David Faure 2009-01-21 09:20:11 UTC
Those are mostly aliases, which are not already there. But yes I expect Koos to comment on those, he said he will do that later today. Ideally he would provide a patch for freedesktop.org.xml.in too, otherwise I'll do that :-)

I don't think it makes sense to create one bug report per missing _alias_?? The reason is mostly "webservers send out those aliases"...
Comment 3 Koos Vriezen 2009-01-21 11:43:22 UTC
Created attachment 22135 [details] [review]
diff against 0.51
Comment 4 Koos Vriezen 2009-01-21 11:44:14 UTC
These are listed as the supported mimetypes from mplayer and are just aliases. I've made a diff against 0.51.
Comment 5 David Faure 2009-01-21 15:45:21 UTC
Reopening - the patch shows all the missing aliases that are commonly used by webservers.
Comment 6 Bastien Nocera 2009-01-22 01:28:02 UTC
Comment on attachment 22135 [details] [review]
diff against 0.51

Please provide a patch against the .in file, not the generated file with translations.
Comment 7 Koos Vriezen 2009-01-22 13:03:43 UTC
Created attachment 22155 [details] [review]
Diff against freedesktop.org.xml.in 0.51
Comment 8 David Faure 2009-02-05 11:39:33 UTC
Latest patch looks good to me. Bastien, OK if I commit it?
Comment 9 Bastien Nocera 2009-02-06 10:58:42 UTC
The aliases look fine, the video/x-ms-wmp mime addition doesn't though.

It's not a file type, it's a mime-type used to embed plugins into a page, so it won't get added (see also application/x-vlc-plugin, or audio/x-pn-realaudio-plugin).

* freedesktop.org.xml.in: Patch from Koos Vriezen
<koos.vriezen@gmail.com> to add more aliases for media types,
as used by kmplayer (Closes: #19671)
Comment 10 Jerome Leclanche 2014-02-06 05:56:03 UTC
Sorry to ping an old bug but the audio/mp2 mime type does not look right to me.

Problem is we have a conflict with mp3 files:

http://tools.ietf.org/html/rfc3003

The rfc uses audio/mpeg for .mp1, .mp2 and .mp3 audio files. If I'm reading rfc 3555 correctly, the correct identification would be audio/MPA; layer=x where x is 1, 2 or 3. It's a little silly for our purposes.

My solution would be a generic audio/mpeg mime type, and specific audio/x-mpeg1, audio/x-mpeg2 and audio/x-mpeg3 child mime types (or similar).

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.