[mythtv] Avermedia M150-D
Andrew Malota
ender at neo.tamu.edu
Mon Oct 22 04:32:17 UTC 2007
Howdy - I have the same card running on drivers checked out from here:
http://linuxtv.org/hg/~mkrufky/blackbird/
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 (everything
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 was
getting frustrated that mplayer would play video from my card, but mythtv
would not.
Good luck, YMMV.
Andrew
Index: libs/libmythtv/mpegrecorder.cpp
===================================================================
--- libs/libmythtv/mpegrecorder.cpp (revision 14704)
+++ 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 | O_NONBLOCK);
if (chanfd < 0)
{
VERBOSE(VB_IMPORTANT, LOC_ERR + "Can't open video device. " + ENO);
@@ -447,7 +447,7 @@
SetVBIOptions(chanfd);
- readfd = open(videodevice.ascii(), O_RDWR | O_NONBLOCK);
+ readfd = chanfd;
if (readfd < 0)
{
VERBOSE(VB_IMPORTANT, LOC_ERR + "Can't open video device." + ENO);
More information about the mythtv-dev
mailing list