[mythtv-users] Nvidia (binary driver) with XvMC and MPlayer

Andrew Casper andrew at casper.net
Fri May 12 12:31:26 EDT 2006


> On 5/7/06, Axel Thimm <Axel.Thimm at atrpms.net> wrote:
>
>> On Sun, May 07, 2006 at 11:18:09AM -0700, Big Wave Dave wrote:
>>
>>> On 5/7/06, Steven Adeff <adeffs.mythtv at gmail.com> wrote:
>>>
>>>> On 5/7/06, Big Wave Dave <bigwavedave at gmail.com> wrote:
>>>>
>>>>> I am having issues getting mplayer (using atrpms package) to  
>>>>> work with xvmc.  I
>>>>> receive errors and a black window (where there should be  
>>>>> video).  Xine appears
>>>>> to be working fine (using: [superdave at bart ~]$ xine -V xvmc
>>>>> /mythtv/recordings/1191_20060424120000.mpg).  This leads me to  
>>>>> believe that
>>>>> XvMC is installed/configured correctly, but that Mplayer  
>>>>> doesn't like it.
>>>>>
>>>>> Failing Command and Output:
>>>>> [superdave at bart ~]$ XVMC_DEBUG=1 mplayer -vo xvmc -vc ffmpeg12mc
>>>>> /mythtv/recordings/1191_20060424120000.mpg
>>>>> MPlayer 1.0pre7try2-3.2.3 (C) 2000-2005 MPlayer Team
>>>>> CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family:  
>>>>> 6, Stepping: 1)
>>>>> Detected cache-line size is 64 bytes
>>>>> CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
>>>>>
>>>>>
>>>>> Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission  
>>>>> denied
>>>>> Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to  
>>>>> your system startup
>>>>> scripts.
>>>>> Setting up LIRC support...
>>>>> mplayer: could not connect to socket
>>>>> mplayer: No such file or directory
>>>>> Failed to open LIRC support.
>>>>> You will not be able to use your remote control.
>>>>> Playing /mythtv/recordings/1191_20060424120000.mpg.
>>>>> TS file format detected.
>>>>> DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -1,
>>>>> PROBING UP TO 2000000, PROG: 0
>>>>> VIDEO MPEG2(pid=2304)AUDIO A52(pid=2305) NO SUBS (yet)!   
>>>>> PROGRAM N. 1
>>>>> Opened TS demuxer, audio: 2000(pid 2305), video: 10000002(pid  
>>>>> 2304)...POS=188
>>>>> VIDEO:  MPEG2  704x480  (aspect 2)  29.970 fps  15000.0 kbps  
>>>>> (1875.0 kbyte/s)
>>>>> ================================================================== 
>>>>> ========
>>>>> Opening audio decoder: [liba52] AC3 decoding with liba52
>>>>> Using SSE optimized IMDCT transform
>>>>> AC3: 2.0 (stereo)  48000 Hz  192.0 kbit/s
>>>>> Using MMX optimized resampler
>>>>> AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000- 
>>>>> >192000)
>>>>> Selected audio codec: [a52] afm:liba52 (AC3-liba52)
>>>>> ================================================================== 
>>>>> ========
>>>>> vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0"  
>>>>> => local display)
>>>>> vo_xvmc: X-Video extension 2.2
>>>>> vo_xvmc: X-Video MotionCompensation Extension version 1.1
>>>>> ================================================================== 
>>>>> ========
>>>>> Forced video codec: ffmpeg12mc
>>>>> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
>>>>> vd_ffmpeg: XVMC accelerated codec
>>>>> Selected video codec: [ffmpeg12mc] vfm:ffmpeg (FFmpeg MPEG-1/2  
>>>>> (XvMC))
>>>>> ================================================================== 
>>>>> ========
>>>>> Checking audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/ 
>>>>> 2ch/s16le...
>>>>> AF_pre: 48000Hz/2ch/s16le
>>>>> alsa-init: 1 soundcard found, using: default
>>>>> alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16  
>>>>> bit Little Endian
>>>>> AO: [alsa] 48000Hz 2ch s16le (2 bps)
>>>>> Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/ 
>>>>> 2ch/s16le...
>>>>> Starting playback...
>>>>> vd_ffmpeg: XVMC accelerated MPEG2
>>>>> vd_ffmpeg: XVMC-VLD accelerated MPEG2
>>>>> trying pixfmt=0
>>>>> VDec: vo config request - 704 x 480 (preferred csp: MPEG1/2  
>>>>> Motion Compensation
>>>>> and VLD)
>>>>> VDec: using MPEG1/2 Motion Compensation and IDCT as output csp  
>>>>> (no 1)
>>>>> Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
>>>>> VO: [xvmc] 704x480 => 704x528 MPEG1/2 Motion Compensation and IDCT
>>>>> vo_xvmc: Port 274 grabed
>>>>> vo_xvmc: Found matching surface with id=54434449 on 274 port at  
>>>>> 0 adapter
>>>>> vo_xvmc: Allocated Direct Context
>>>>> vo_xvmc: data_blocks allocated
>>>>> vo_xvmc: mv_blocks allocated
>>>>> vo_xvmc: Motion Compensation context allocated - 8 surfaces
>>>>> vo_xvmc: idct=1 unsigned_intra=0
>>>>> vo_xvmc: looking for OSD support
>>>>>     Subpicture id 0x34344149
>>>>> vo_xvmc: OSD support by additional frontend rendering
>>>>> [mpegvideo_xvmc @ 0x86ceabc]XvMCLoadQMatrix: Error: 2
>>>>> [mpegvideo_xvmc @ 0x86ceabc]XvMCBeginSurface: Error: 2
>>>>> Error while decoding frame!
>>>>> [mpegvideo_xvmc @ 0x86ceabc]XvMCLoadQMatrix: Error: 2??% ??,?% 3 0
>>>>> [mpegvideo_xvmc @ 0x86ceabc]XvMCBeginSurface: Error: 2
>>>>> Error while decoding frame!
>>>>> [mpegvideo_xvmc @ 0x86ceabc]XvMCLoadQMatrix: Error: 2??% ??,?% 4 0
>>>>> [mpegvideo_xvmc @ 0x86ceabc]XvMCBeginSurface: Error: 2
>>>>> Error while decoding frame!
>>>>> [mpegvideo_xvmc @ 0x86ceabc]XvMCLoadQMatrix: Error: 2??% ??,?% 5 0
>>>>> [mpegvideo_xvmc @ 0x86ceabc]XvMCBeginSurface: Error: 2
>>>>> Error while decoding frame!
>>>>> [mpegvideo_xvmc @ 0x86ceabc]XvMCLoadQMatrix: Error: 2??% ??,?% 6 0
>>>>> [mpegvideo_xvmc @ 0x86ceabc]XvMCBeginSurface: Error: 2
>>>>> Error while decoding frame!
>>>>>
>>>>> Components:
>>>>> [superdave at bart ~]$ uname -a
>>>>> Linux bart 2.6.16-1.2096_FC5 #1 Wed Apr 19 05:14:36 EDT 2006  
>>>>> i686 athlon i386
>>>>> GNU/Linux
>>>>> [superdave at bart ~]$ rpm -qa | grep -i mplayer
>>>>> mplayer-fonts-1.0-6.at
>>>>> mplayer-skins-1.0-pre3_12.at
>>>>> mplayer-1.0-52_pre7try3.rhfc5.at
>>>>> [superdave at bart ~]$ rpm -qa | grep -i xvmc
>>>>> libXvMC-1.0.1-3
>>>>> libXvMC-devel-1.0.1-3
>>>>> [superdave at bart ~]$ cat /etc/X11/XvMCConfig
>>>>> libXvMCNVIDIA_dynamic.so.1
>>>>>
>>>>>
>>>>> Any input and/or suggestions are appreciated.
>>>>>
>>>>
>>>>
>>>> http://www.mplayerhq.hu/design7/info.html#mailing_lists
>>>>
>>>
>>> Understood... I just knew they were not going to be happy about  
>>> me not
>>> compiling from source... and since "many" users on this list use the
>>> ATrpms for MythTV... it seemed like the right place at the time.
>>> Before posting to the list, I also posted to the ATrpms bugzilla.
>>> Just trying to compile as much information and reference material as
>>> possible.
>>>
>>> That being said... and for others to reference in the future...
>>> I wrote to the MPlayer list, and received a terse response saying  
>>> ATrpms
>>> packages aren't supported... which I had expected.  I was
>>> basically informed that I should try the "official MPlayer  
>>> packages".  I did:
>>> from:
>>> http://rpm.greysector.net/mplayer/downloads-cvs.html
>>>
>>> installed (for FC5):
>>> http://rpm.greysector.net/yum/5/i386/ 
>>> mplayer-1.0pre8-0.7.20060418.i386.rpm
>>>
>>> and it now works!  I didn't chanage anything other than the  
>>> mplayer package.
>>>
>>> I'm not sure what the differences are between the two packages  
>>> (besides version
>>> numbers).  I suspect that some sort of compile time option must  
>>> be influencing
>>> it.
>>>
>>
>> Edit /etc/X11/XvMCConfig accordingly. Check
>>
>> http://www.google.com/search?q=XvMCConfig+nvidia
>>
>>
> Trust me... I promised I googled before posting.   As mentioned in my
> original post, I had:
> [superdave at bart ~]$ cat /etc/X11/XvMCConfig
> libXvMCNVIDIA_dynamic.so.1
>
> I was only able to get that far thanks to Google.
>
> Dave

I'm having the same issue with FC4 and the nvidia drivers and XvMC/ 
mplayer, but my system is 64bit. I'm not really keen on mixing a  
64bit MythTV installation with a 32bit mPlayer. And the selection of  
64bit RPMs is very limited and mainly the same as what I already have.

Axel, any chance your going to update mplayer 64bit soon?

Any other advice is welcome.

- Andrew


More information about the mythtv-users mailing list