Mythtv on FreeBSD (was: digital TV cards)

Andrew Heybey ath at
Tue Nov 22 15:45:06 GMT 2005

Torfinn Ingolfsen <torfinn.ingolfsen at> writes:

> On Tue, 25 Oct 2005 03:14:51 +0200
> Thomas Gutzler <thomas.gutzler at> wrote:
>> I want to use it with freevo (or does mythtv work yet?) for watching
> Well, sort of. There is a port:
> but further development seems to have stalled. The challenge is
> getting more cards supported.
> Personally, I would like to split a port of MythTV in
> two parts: one for MythTV Frontend, and one for MythTV backend.

A little late to be replying, but I am way behind on FreeBSD email.

FWIW, I am running MythTV 0.18.1 (backend only) on FreeBSD 6.0 using a
PVR250.  It works quite well as a backend.

I compiled and installed the sources more-or-less out of the
box.  Had to make a few changes to the configure script to get it to
compile correctly.  The changes were to allow an explicit
"--enable-v4l" option (otherwise v4l is automaticaly turned off under
FreeBSD) and to *not* require --enable-memalign-hack (which made it
crash).  The memalign stuff is required for MMX and/or SSE, but I know
that FreeBSD's malloc returns 16-byte-aligned chunks of memory, so it
is okay to omit it entirely.

The diff is small so here it is:

Index: configure
--- configure   (revision 7902)
+++ configure   (working copy)
@@ -123,6 +123,7 @@
 echo "  --disable-audio-jack     disable JACK audio support"
 #echo "  --disable-audio-beos     disable BeOS audio support [default=no]"
 #echo "  --disable-v4l            disable video4linux grabbing [default=no]"
+#echo "  --enable-v4l            enable video4linux grabbing [default=yes]"
 #echo "  --disable-dv1394         disable DV1394 grabbing [default=no]"
 #echo "  --disable-network        disable network support [default=no]"
 #echo "  --disable-zlib           disable zlib [default=no]"
@@ -534,6 +535,8 @@
   --disable-v4l) v4l="no"
+  --enable-v4l) v4l="yes"
+  ;;
   --disable-audio-oss) audio_oss="no"
   --disable-audio-alsa) audio_alsa="no"
@@ -1263,7 +1266,7 @@
 if test "$_memalign" = "no" -a "$mmx" = "yes" -a "$memalignhack" != "yes"; then
     echo "error, no memalign() but sse enabled, either disable it or use --enable-memalign-hack"
-    exit 1
+#    exit 1
 cat > $TMPC << EOF

I ran configure with the following options:

./configure  --arch=pentium3 --disable-firewire --disable-lirc --disable-xrandr --enable-v4l --enable-proc-opt --enable-ivtv

The hard part was getting the cxm driver to work.  I had to merge in the
changes from to make it understand the V4L ioctls and
also find a patch in the FreeBSD PR database to make cxm work at all under

My frontend is still Linux.  Mythfrontend does run on FreeBSD (at least well
enough to change settings) but the box in question is a headless box
so I don't care about trying to watch anything on it.


More information about the freebsd-multimedia mailing list