[mythtv-users] Trying to get XVMC to work.

stuart stuart at xnet.com
Tue Apr 22 14:24:47 UTC 2008


Hi, I appreciate all the help, I'm going to try to include all the 
responses below (yea, I know, this blurp is a top comment)...

Kevin Kuphal wrote:
> 
> 
> On Mon, Apr 21, 2008 at 6:20 PM, stuart <stuart at xnet.com 
> <mailto:stuart at xnet.com>> wrote:
> 
> 
>     Hi...
> 
>     I'm running mythtv 21 and can not get XVMC to work.
> 
>     If I run the "slim" profile, I can watch live NTSC, ATSC 720p, and ATSC
>     1080i.  But the 1080i stutters (pauses about 1/4 a second for ever
>     second).  So I am trying to invoke hardware decoding on a Nvidia 6000
>     card.  But, I am sure I am doing something wrong as trying to watch a
>     live 1080i pegs the processor w/the mythfrontend taking about 92% of the
>     processing power.  BTW, the screen goes black and I have to kill the
>     front end through a telnet session.  To envoke XVNC I switched to the
>     "cpu--" profile.
> 
>     As I have not been able to find an example of a mythfrontend log where
>     XVMC was properly launched, I can only guess at what is going on.  Below
>     I cut and pasted my mythfrontend log during the start up of a 1080i live
>     TV session.  Can anyone see a problem (yes, I see the sound problem, but
>     this configuration was working while using the "slim" profile.)
> 
>     --------------------------------------------------------------------
>     2008-04-20 11:46:11.803 ~OpenGLVideoSync() -- begin
>     2008-04-20 11:46:11.803 ~OpenGLVideoSync() -- middle
>     2008-04-20 11:46:11.804 ~OpenGLVideoSync() -- end
>     2008-04-20 11:46:12.003 Using protocol version 40
>     2008-04-20 11:46:19.812
>     RingBuf(/space/recordings/2051_20080420114612.mpg): Invalid file (fd -1)
>     when opening '/space/recordings/2051_20080420114612.mpg'.
>     2008-04-20 11:46:19.828 NVP: Disabling Audio, params(-1,2,44100)
>     2008-04-20 11:46:19.839 VideoOutputXv: Desired video renderer 'ivtv' not
>     available.
>                             codec 'None' makes 'xv-blit,xshm,xlib,'
>     available, using 'xv-blit' instead.
>     2008-04-20 11:46:19.842 VideoOutputXv: XVideo Adaptor Name: 'NV17 Video
>     Texture'
>     2008-04-20 11:46:19.907 OSD Theme Dimensions W: 640 H: 480
>     2008-04-20 11:46:20.398 FilterManager: failed to load filter 'none', no
>     such filter exists
>     2008-04-20 11:46:20.398 Couldn't load deinterlace filter none
>     2008-04-20 11:46:20.399 Realtime priority would require SUID as root.
>     2008-04-20 11:46:20.496 OpenGLVideoSync()
>     2008-04-20 11:46:20.536 Video timing method: SGI OpenGL
>     2008-04-20 11:46:20.573 VideoOutputXv: XvMC Adaptor Name: 'NV17 Video
>     Texture'
>     2008-04-20 11:46:20.829 VideoOutputXv: ProcessFrameXvMC: Tried to reuse
>     frame but failed
>     2008-04-20 11:46:20.829 VideoOutputXv: ProcessFrameXvMC: Called without
>     frame
>     2008-04-20 11:46:20.837 AFD: Opened codec 0x993a290, id(MPEG2VIDEO_XVMC)
>     type(Video)
>     2008-04-20 11:46:20.838 AFD: codec AC3 has 6 channels
>     No accelerated IMDCT transform found
>     2008-04-20 11:46:20.839 AFD: Opened codec 0x99ac190, id(AC3) type(Audio)
>     2008-04-20 11:46:20.843 Opening audio device 'spdif'. ch 2(2) sr 48000
>     2008-04-20 11:46:20.843 Opening ALSA audio device 'iec958:{ AES0
>     0x02 }'.
>     ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL /dev/mixer
>     2008-04-20 11:46:20.846 AudioOutput Warning: Mixer attach error -2: No
>     such file or directory
>                             Check Mixer Name in Setup: '/dev/mixer'
>     2008-04-20 11:46:20.847 NVP: Enabling Audio
>     2008-04-20 11:46:20.849 Opening audio device 'spdif'. ch 2(2) sr 48000
>     2008-04-20 11:46:20.849 Opening ALSA audio device 'iec958:{ AES0
>     0x02 }'.
>     ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL /dev/mixer
>     2008-04-20 11:46:20.852 AudioOutput Warning: Mixer attach error -2: No
>     such file or directory
>                             Check Mixer Name in Setup: '/dev/mixer'
>     2008-04-20 11:46:20.864 XvMC: picture structure FRAME
>     --------------------------------------------------------------------
> 
>     ...that's it, now the CPU is running the mythfrontend about 92% of the
>     time.  The other 8% are split between the X server and the mythbackend.
> 
>     ...thanks for any help
> 
>  
> You've got alot of errors in there including audio, etc.  I would start 
> one by one to fix them and as far as XvMC, the process and caveats 
> (including the CPU one) are listed on the XvMC page on the wiki.  
> http://www.mythtv.org/wiki/index.php/XvMC
>  
> Audio issues can cause lots of additional overhead also
>  
> Kevin

Thanks Kevin...  I know there are a number of errors.  I thought I would 
go after the "tallest weed" first.  Also, this set up will play back 
stuttering video using the "slim" profile.  So (my thinking), things 
should only improve if the mpeg2 decoding is moved from software to 
hardware.

I have gone through the wiki and I'll have another go at it. FYI, my 
mythtv box is a Debin/Unstable, 3GHz, 1GByte & Nvidia-6000 based system.

> Make sure that in the playback profile group the max cpus (next to
> where you assign XvMC as the decoder) is set to 1.  If it's set to
> more than one it will fail...though probably only if you have
> hyper-threading or multiple CPUs.
> 
> Tom

Ah, didn't see that "sub menu" under edit.  I checked and all are set to 
using only 1 CPU.

> Did you config the XvMCConfig file?
> 
> [myth at mythtv ~]$ cat /etc/X11/XvMCConfig
> libXvMCNVIDIA_dynamic.so.1
> [myth at mythtv ~]$
> 
> 
> Mitchell

Yes, I have actually tried all these:

==> /etc/X11/XvMCConfig <==
libXvMCNVIDIA_dynamic.so.1

==> /etc/X11/XvMCConfig.20080219 <==
libXvMC.so.1

==> /etc/X11/XvMCConfig.20080417 <==
libXvMCNVIDIA.so.1

...thanks everyone, I'll post a follow up if / when something starts 
working...







More information about the mythtv-users mailing list