Patch for Ogg Theora <video> tag support in Firefox 3.1 on FreeBSD.

Jeremy Lea reg at freebsd.org
Tue Feb 3 16:24:22 PST 2009


Hi all,

Firefox 3.1 (Gecko 1.9.1) will have support for <video> elements using
Ogg.  However, the support does not work on FreeBSD, mostly because it
is using fairly immature libraries for the support.  While most of the
issues are small (header problems), the big one is that the audio uses
ALSA on Linux.  I have written a patch for OSS support, but it could do
with some testing and some looking over by people who have more
experience with audio coding than I do.

The patch is attached or can be found at
https://bugzilla.mozilla.org/show_bug.cgi?id=449066.

I don't know how many people have tried building Firefox from source
outside of the ports tree, but it's not that hard...  Mostly a mercurial
command and lots of build time.  I've also attached a patch to this
email that I use to get basic builds up and running, and a working
.mozconfig file.  Something like this:

hg clone http://hg.mozilla.org/mozilla-central/ src
cd src
[Save .mozconfig here]
patch -p1 < freebsd.diff
patch -p1 < ogg.diff
gmake -f client.mk build
[Wait]
../fx-dbg/dist/bin/firefox

Some test videos can be found at http://www.double.co.nz/video_test/

Regards,
  -Jeremy

-- 
FreeBSD - Because the best things in life are free...
                                           http://www.freebsd.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freebsd.diff
Type: text/x-diff
Size: 2106 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20090204/5debe4c1/freebsd.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ogg.diff
Type: text/x-diff
Size: 28953 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20090204/5debe4c1/ogg.bin
-------------- next part --------------
#
# See http://www.mozilla.org/build/ for build instructions.
#

# Options for client.mk.
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_CO_FLAGS=-P
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../fx-dbg

# Options for 'configure' (same as command-line options).
ac_add_options --enable-application=browser
ac_add_options --enable-libxul
ac_add_options --disable-cpp-exceptions
ac_add_options --disable-cpp-rtti
ac_add_options --enable-debug
ac_add_options --disable-optimize
ac_add_options --enable-tests
ac_add_options --enable-x11-shm
ac_add_options --disable-xterm-updates
ac_add_options --prefix=/usr/local
ac_add_options --with-iconv=/usr/local
ac_add_options --with-pthreads
ac_add_options --with-system-zlib
ac_add_options --x-includes=/usr/local/include
ac_add_options --x-libraries=/usr/local/lib


More information about the freebsd-gnome mailing list