[mythtv] Avermedia M150-D

Sam Logen starz909 at yahoo.com
Sat Oct 27 21:59:36 UTC 2007

OK, that's weird, the last build I was telling you all
about compiled cleanly.  So nevermind about this
error, and I'll go on testing this latest build. 
Thanks anyways all,



Hi all,

I've been using a version of this patch provided
graciously by Andrew for getting my Avermedia M150 to
work in my 20.2 version of Mythtv.  The patch, though,
was made for the SVN revision 14704.  After I upgraded
to the SVN revision 14737 and added the patch, mythtv
no longer builds, but errors and quits.  Anyone know
how this patch is breaking the make process for the
new SVN revisions?  Without the patch, mythtv builds,
installs, and runs fine - except it cannot use the
Avermedia card anymore.

I'm currently building mythtv again with the patch so
I can copy and post the build error.


Howdy - I have the same card running on drivers
checked out from here:
built against a 2.6.23 kernel, with mythtv source from
SVN at rev 14704

I was able to get the card to play nice as an MPEG2
encoder card
working for ONE computer with ONE tuner card,) by
following the patch
 at the 
bottom of this post.

BIG FAT WARNING this was the first time I've mucked
with mythv sources
 so I 
have no idea what this might break. I just wanted live
TV to work and I
getting frustrated that mplayer would play video from
my card, but
would not.

Good luck, YMMV.

Index: libs/libmythtv/mpegrecorder.cpp
--- libs/libmythtv/mpegrecorder.cpp     (revision
+++ libs/libmythtv/mpegrecorder.cpp     (working copy)
@@ -324,7 +324,7 @@

 bool MpegRecorder::OpenV4L2DeviceAsInput(void)
-    chanfd = open(videodevice.ascii(), O_RDWR);
+    chanfd = open(videodevice.ascii(), O_RDWR |
     if (chanfd < 0)
         VERBOSE(VB_IMPORTANT, LOC_ERR + "Can't open
video device. " +
@@ -447,7 +447,7 @@


-    readfd = open(videodevice.ascii(), O_RDWR |
+    readfd = chanfd;
     if (readfd < 0)
         VERBOSE(VB_IMPORTANT, LOC_ERR + "Can't open
video device." +

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around 

Delete Reply Forward 

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the mythtv-dev mailing list