Alias video/x-ms-asf with video/x-ms-wmv?

Seth Hasani sepheebear at gmail.com
Fri Dec 9 04:15:45 EET 2005


Hi all,

I receive a ton of video clips encoded in Microsoft wmv format and have the
extension .wmv. A particular pet peeve of mines is that these files arent
double-clickable in nautilus and I get the error that these files have the
extension .wmv that suggests they're type x-ms-wmv while the data in the
file is type x-ms-asf.

Looking into this, I checked the MS site and came across
http://support.microsoft.com/kb/q284094/ which states there is no real
difference between the two types except for the extension and the mime type.

With that in mind, I went ahead and aliased type x-ms-asf to x-ms-wmv. Now
both ASF and WMV files are double-clickable in nautilus without any errors.
I have been using this for about 3 weeks with no side effects however I dont
have that many asf files to test what else may break.

My question is would there be any side effects to aliasing one type to
another like this? So far works great, totem-xine and mplayer have no
problems.

Seth


$cat freedesktop.org.xml-wmv.patch

--- documents/backup/freedesktop.org_orig.xml   2005-11-10 06:19:33.000000000 -0500
+++ /usr/share/mime/packages/freedesktop.org_patched.xml        2005-11-11 17:46:49.000000000 -0500
@@ -12378,6 +12378,7 @@
     <comment xml:lang="sv">Microsoft WMV-video</comment>
     <comment xml:lang="uk">Відео-кліп Microsoft WMV</comment>
     <comment xml:lang="zh_CN">Microsoft WMV 视频</comment>
+       <alias type="video/x-ms-asf"/>
     <glob pattern="*.wmv"/>
   </mime-type>
   <mime-type type="video/x-msvideo">




More information about the xdg mailing list