[vlc-devel] [PATCH] Add some MIME types found in smplayer (and remove duplicates)

Petter Reinholdtsen pere at hungry.com
Fri Dec 2 09:52:04 CET 2016


While tracking the claimed MIME support in multimedia players in Debian,
see <URL: https://wiki.debian.org/DebianMultimedia/PlayerSupport >, I
noticed smplayer had updated their list of supported MIME types, and
list four mime types currently not listed as supported by vlc:
audio/vorbis, audio/x-adpcm, video/avi and video/x-ogm.

I suspect at least some of these should be listed as supported in VLC
too.  I was unable to figure out of vlc support the format indicated by
audio/x-adpcm, so I left that as a comment in the MIME list.  The other
formats are handled by VLC under other names.

In addition I notice the application/x-cd-image mime type is still
missing in git, causing VLC to not show up as an alternative to play DVD
iso files in KDE.

Please apply the following patch to a future version of VLC.

Note, I am not subscribed on the list, so please CC me if you follow up
on this email.

diff --git a/share/vlc.desktop.mimetypes b/share/vlc.desktop.mimetypes
index 8c2cf3b..650b26d 100644
--- a/share/vlc.desktop.mimetypes
+++ b/share/vlc.desktop.mimetypes
@@ -5,9 +5,11 @@
 application/ogg                  # IANA-registered
 application/x-ogg
 audio/ogg                        # IANA-registered
+audio/vorbis                     # IANA-registered
 audio/x-vorbis
 audio/x-vorbis+ogg
 video/ogg                        # IANA-registered
+video/x-ogm
 video/x-ogm+ogg
 video/x-theora+ogg
 video/x-theora
@@ -38,6 +40,7 @@ audio/x-pn-windows-acm
 video/divx
 video/msvideo
 video/vnd.divx
+video/avi
 video/x-avi
 
 # Real audio and video
@@ -117,6 +120,7 @@ x-scheme-handler/icy    # Icecast
 x-scheme-handler/icyx   # Icecast
 
 # Linux desktop environment hooks for ISOs etc.
+application/x-cd-image
 x-content/video-vcd
 x-content/video-svcd
 x-content/video-dvd
@@ -222,3 +226,6 @@ application/mxf                 # IANA-registered
 #audio/x-pn-windows-pcm
 #video/x-ms-afs
 #video/x-ms-wvxvideo
+
+# From the smplayer desktop file in Debian.  These need more work.
+#audio/x-adpcm                 # Same as IANA registered audio/32KADPCM?

In addition there are two duplicate entries in the MIME list.  The MIME
values are case insensitive, and there are two entries with both lower
and upper case versions.  These should be removed:

diff --git a/share/vlc.desktop.mimetypes b/share/vlc.desktop.mimetypes
index 8c2cf3b..d5769d9 100644
--- a/share/vlc.desktop.mimetypes
+++ b/share/vlc.desktop.mimetypes
@@ -101,8 +104,6 @@ audio/3gpp                       # IANA-registered
 audio/3gpp2                      # IANA-registered
 audio/AMR                        # IANA-registered
 audio/AMR-WB                     # IANA-registered
-audio/amr
-audio/amr-wb
 video/3gp
 video/3gpp
 video/3gpp2

-- 
Happy hacking
Petter Reinholdtsen


More information about the vlc-devel mailing list