[mythtv-users] XvMC works on mplayer, not on myth

Ben bluey at iguanaworks.net
Wed Feb 14 03:47:42 UTC 2007


Its a basic question, but somehow I haven't found the answer. How does
mythfrontend play a video? Can I tell it to use mplayer? (top shows that
mythfrontend is using the cpu when its plays a video, so it isn't
spawning another app for the video, right?). My little computer can't
handle HDTV without XvMC, but I can't get mythtv to use XvMC. I've got
XvMC working fine on mplayer and xine. But when I try to play a recorded
video when myth is configured to use xvmc, I get "unable to initialize
the video"

I'm running debian sid with the binary nvidia driver (1.0-8776) for my
GeForce4 MX graphics card. I'm running mythtv-0.20svn20071022 (from
http://www.debian-multimedia.org). Below are the (I hope) relevant
messages from mplayer (working xvmc) and mythfrontend (borking on xvmc).

Any help great appreciated.

Thanks,

Ben


mplayer -ac hwac3 -vo xvmc -vc ffmpeg12mc X.mpg:

[VD_FFMPEG] XVMC-accelerated MPEG-2.
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 1920 x 1080 (preferred colorspace: MPEG1/2
Motion Comp ensation and IDCT)
VDec: using MPEG1/2 Motion Compensation and IDCT as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xvmc] 1920x1080 => 1920x1080 MPEG1/2 Motion Compensation and IDCT
vo_xvmc: Port 90 grabed
vo_xvmc: Found matching surface with id=54434449 on 90 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
aspect: Warning: no suitable new res found!

Works great, cpu at 40%. But from mythfrontend, I get:


2007-02-13 19:44:23.156 VideoOutputXv: XvMC version: 1.1
2007-02-13 19:44:23.157 MSqlQuery: SELECT data FROM settings WHERE value
= 'UseC hromaKeyOSD' AND hostname = 'loki' ;
2007-02-13 19:44:23.157 VideoOutputXv: XvMCTex: Init failed
2007-02-13 19:44:23.157 VideoOutputXv: @ j=1 Looking for flag[s]:
XvInputMask
2007-02-13 19:44:23.157 VideoOutputXv: Adaptor#0: NV17 Video Overlay has
flag[s] : XvInputMask XvImageMask
2007-02-13 19:44:23.157 XvMCSurfaceTypes::find(w 1920, h 1088, chroma 1,
vld 0, idct 1, mpeg2, sub-width 0, sub-height 0, disp, p<= 90, 900 <=p,
port, surfNum)
2007-02-13 19:44:23.158 Trying XvMC port 90
2007-02-13 19:44:23.158 Found a suitable XvMC surface 0
2007-02-13 19:44:23.158 VideoOutputXv: Grabbed xv port 90
2007-02-13 19:44:23.158 VideoOutputXv: XvMC surface found with IDCT
support on p ort 90
2007-02-13 19:44:23.158 VideoOutputXv: XvMC Adaptor Name: 'NV17 Video
Overlay'
2007-02-13 19:44:23.162 VideoOutputXv Error: Unable to create XvMC
Surfaces
2007-02-13 19:44:23.162 VideoOutputXv: DiscardFrames(1)
2007-02-13 19:44:23.162 VideoBuffers::DiscardFrames(1): AAAAAAAA
2007-02-13 19:44:23.163 VideoBuffers::DiscardFrames(): AAAAAAAA --
done()
2007-02-13 19:44:23.163 VideoBuffers::DiscardFrames(1): AAAAAAAA -- done
2007-02-13 19:44:23.163 VideoOutputXv: DiscardFrames() 3: AAAAAAAA --
done()
2007-02-13 19:44:23.163 VideoOutputXv: DiscardFrames(1)
2007-02-13 19:44:23.163 VideoBuffers::DiscardFrames(1): AAAAAAAA
2007-02-13 19:44:23.163 VideoBuffers::DiscardFrames(): AAAAAAAA --
done()
2007-02-13 19:44:23.163 VideoBuffers::DiscardFrames(1): AAAAAAAA -- done
2007-02-13 19:44:23.163 VideoOutputXv: DiscardFrames() 3: AAAAAAAA --
done()
2007-02-13 19:44:23.171 VideoOutputXv: DiscardFrames(1)
2007-02-13 19:44:23.171 VideoBuffers::DiscardFrames(1): AAAAAAAA
2007-02-13 19:44:23.171 VideoBuffers::DiscardFrames(): AAAAAAAA --
done()
2007-02-13 19:44:23.171 VideoBuffers::DiscardFrames(1): AAAAAAAA -- done
2007-02-13 19:44:23.171 VideoOutputXv: DiscardFrames() 3: AAAAAAAA --
done()
2007-02-13 19:44:23.171 VideoOutputXv: DiscardFrames(1)
2007-02-13 19:44:23.172 VideoBuffers::DiscardFrames(1): AAAAAAAA
2007-02-13 19:44:23.172 VideoBuffers::DiscardFrames(): AAAAAAAA --
done()
2007-02-13 19:44:23.172 VideoBuffers::DiscardFrames(1): AAAAAAAA -- done
2007-02-13 19:44:23.172 VideoOutputXv: DiscardFrames() 3: AAAAAAAA --
done()
2007-02-13 19:44:23.172 VideoOutputXv Error: Failed to create XvMC
Buffers.
2007-02-13 19:44:23.172 VideoOutputXv: Closing XVideo port 90
2007-02-13 19:44:23.172 VideoOutputXv: Falling back to X11 video output
over a n etwork socket.
                              *** May be very slow ***


Any ideas?



More information about the mythtv-users mailing list