User Tools

Site Tools

Advertisements: AliExpress Hide Your IP Microsoft Products

Firefox (iceweasel) mp4 support under Debian Jessie (8)

mp4 files include videos encoded with H.264 codec. Since H.264 codec is not a free codec, it is not included in iceweasel. Iceweasel needs a third party application to play H.264 encoded files. After some research, I came up with a solution to play my mp4 videos under debian jessie, because converting the mp4 files to ogg format is not option for me. This link tells the reasons and supported formats in a detailed way. Of course I advice you to use open standards in web however in my case, I had to use mp4 files.

First of all, you should allow playing mp4 files with setting the following about:config entries to true -> true
media.fragmented-mp4.enabled -> true
media.fragmented-mp4.ffmpeg.enabled -> true
media.fragmented-mp4.gmp.enabled -> true
media.mediasource.mp4.enabled -> true

If you have a XUL application you can add this javascript code into your prefs.js file of your application.

pref("", true);
pref("media.fragmented-mp4.enabled", true);
pref("media.fragmented-mp4.ffmpeg.enabled", true);
pref("media.fragmented-mp4.gmp.enabled", true);
pref("media.mediasource.mp4.enabled", true);

Last job is to install the necessary decoder which is installed with ffmpeg2theora package.

apt-get install ffmpeg2theora

That is all. It works.


Enter your comment. Wiki syntax is allowed:
linux/debian/firefox_mp4_support.txt · Last modified: 2015/12/24 10:28 by ozan