{"id":1093,"date":"2007-05-14T22:35:18","date_gmt":"2007-05-15T06:35:18","guid":{"rendered":"http:\/\/www.krunk4ever.com\/blog\/?p=1093"},"modified":"2010-07-20T17:01:23","modified_gmt":"2010-07-21T00:01:23","slug":"missing-codecs-in-firefox-to-play-video-in-gallery2","status":"publish","type":"post","link":"https:\/\/www.krunk4ever.com\/blog\/2007\/05\/14\/missing-codecs-in-firefox-to-play-video-in-gallery2\/","title":{"rendered":"Missing Codecs in Firefox to Play Video in Gallery2"},"content":{"rendered":"<p><ins datetime=\"2010-07-20T23:58:17+00:00\"><strong>Update<\/strong><\/ins>:<\/p>\n<blockquote><p>Instead of doing all the work below, you should first try installing this plug-in: <a href=\"http:\/\/port25.technet.com\/pages\/windows-media-player-firefox-plugin-download.aspx\">Windows Media Player Firefox Plugin<\/a><\/p><\/blockquote>\n<p>Every once in awhile, I&#8217;ll hit a video on my gallery that requires me to download a codec, but telling it to download fails to find a codec that&#8217;ll work. If I copy and paste the URL into IE, the video plays fine. I started searching the Gallery forums.<\/p>\n<p>I found this thread: <a href=\"http:\/\/gallery.menalto.com\/node\/35788\">Combination Gallery 2\/AVI\/Firefox does not display video<\/a>, and it appears a lot of people are hitting this issue:<\/p>\n<blockquote><p>When adding an AVI file to my gallery it is recognized and ffmpeg creates a thumbnail for it. Viewing the item with Internet Explorer will result in the video being displayed.<\/p>\n<p>However this does not work with Firefox. For some reason it seems that the Windows Media Player plugin in firefox does not recognize the video\/x-msvideo MIME-type. Check about:plugins and scroll to Windows Media Player to confirm this.<\/p>\n<p>Technically this is not a Gallery problem, but a bug by Microsoft in there Firefox support. However since Microsoft is not very likely to fix this it would be nice if someone could provide a work-around and integrate this into Gallery.<\/p><\/blockquote>\n<p>Before, I would just tell every video to use mime type: video\/x-ms-wmv, however, Gallery2 supports a wider range of mime types, so I decided to let it do its own thing.<\/p>\n<p>It turns out, to fix this problem, you need to associate video\/x-msvideo in Firefox. Instructions provided by: <a href=\"http:\/\/www.extensionsmirror.nl\/lofiversion\/index.php\/t1251.html\">Avi in firefox<\/a>.<\/p>\n<p>To do this, open the following file in notepad:<br \/>\n%APPDATA%\\Mozilla\\Firefox\\pluginreg.dat<\/p>\n<p>Search for &#8220;Windows Media Player Plug-in Dynamic Link Library&#8221; and add the bolded lines:<\/p>\n<blockquote><p>Windows Media Player Plug-in Dynamic Link Library|$<br \/>\n<strong>10<\/strong><br \/>\n0|application\/asx|Media Files|*|$<br \/>\n1|video\/x-ms-asf-plugin|Media Files|*|$<br \/>\n2|application\/x-mplayer2|Media Files|*|$<br \/>\n3|video\/x-ms-asf|Media Files|asf,asx,*|$<br \/>\n4|video\/x-ms-wm|Media Files|wm,*|$<br \/>\n5|audio\/x-ms-wma|Media Files|wma,*|$<br \/>\n6|audio\/x-ms-wax|Media Files|wax,*|$<br \/>\n7|video\/x-ms-wmv|Media Files|wmv,*|$<br \/>\n8|video\/x-ms-wvx|Media Files|wvx,*|$<br \/>\n<strong>9|video\/x-msvideo|Media Files|avi,*|$<\/strong><\/p><\/blockquote>\n<p>Increasing 9 to 10 tells it that there&#8217;s 10 mime types you should associate this plug-in with. Adding the video\/x-msvideo line tells it to associate mime types of that with Windows Media Player. Afterwards, all my avi files began to play fine.<\/p>\n<p>After saving this file, restart Firefox and video with the mime type of x-msvideo should play fine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update: Instead of doing all the work below, you should first try installing this plug-in: Windows Media Player Firefox Plugin Every once in awhile, I&#8217;ll hit a video on my gallery that requires me to download a codec, but telling it to download fails to find a codec that&#8217;ll work. If I copy and paste &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.krunk4ever.com\/blog\/2007\/05\/14\/missing-codecs-in-firefox-to-play-video-in-gallery2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Missing Codecs in Firefox to Play Video in Gallery2&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/posts\/1093"}],"collection":[{"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/comments?post=1093"}],"version-history":[{"count":0,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/posts\/1093\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/media?parent=1093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/categories?post=1093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.krunk4ever.com\/blog\/wp-json\/wp\/v2\/tags?post=1093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}