[mythtv] Patch proposal for XvMC videoout_xvmc.cpp
Carl Nordbeck
carl at nordbeck.com
Fri Mar 11 12:53:59 UTC 2005
Hi!
I am trying to use Nvidia's driver with XvMC.
The display is an old PAL-TV(interlaced) with SCART connector that have
RGB input so this is connected to the first head of the video-card. The
second head is a standard VGA monitor.
With this setup, myth seems unstable and sometimes the kernel deadlock.
Video is very crisp and clear but very jittery. Th
When using interlaced output the refresh_interval can be doubled, this
seems to solve the deadlocks for me.
Then turn on BOB filter and I get reasonably good picture. 50 half
frames per second.
There is also an X error when requesting the XvAttribute.
My knowledge about X is zero but this seems to work?
/BR
Carl Nordbeck
Index: libs/libmythtv/videoout_xvmc.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/videoout_xvmc.cpp,v
retrieving revision 1.49
diff -r1.49 videoout_xvmc.cpp
231,232c231,234
<
< rate = 1000000.0 / rate;
---
> if (mode_line.flags && 0x010 ) // #define V_INTERLACE 0x010
> rate = 1000000.0 / (rate * 2);
> else
> rate = 1000000.0 / rate;
547c549
< attributes = XvQueryPortAttributes(data->XJ_disp, xv_port,
&attrib_count);
---
> attributes = XvMCQueryAttributes(data->XJ_disp, &(data->ctx),
&attrib_count);
560c562
< XvSetPortAttribute(data->XJ_disp, xv_port,
xv_atom, 0);
---
> XvMCSetAttribute(data->XJ_disp, &(data->ctx),
xv_atom, 0);
562c564
< XvSetPortAttribute(data->XJ_disp, xv_port,
xv_atom, 1);
---
> XvMCSetAttribute(data->XJ_disp, &(data->ctx),
xv_atom, 1);
573c575
< ret = XvGetPortAttribute(data->XJ_disp, xv_port, xv_atom,
---
> ret = XvMCGetAttribute(data->XJ_disp, &(data->ctx),
xv_atom,
--
More information about the mythtv-dev
mailing list