[MPlayer-users] XVideo output fails unless Xine is also running

Ben Liblit liblit at eecs.berkeley.edu
Mon Oct 14 13:59:02 CEST 2002


MPlayer presents a blank (black) video output window when using the
"xv" output driver.  The "sdl:x11" output driver, which also tries to
use XVideo, has the same problem.  This happens regardless of the
specific movie being played.  Other video output drivers (e.g. "x11")
work fine, though without XVideo's nice features.

I tried running an alternate video player to see if this was a
cross-application XVideo problem.  Xine <http://xine.sourceforge.net/>
can play back the same movies, using XVideo, with no problem.  But
here's the *really* weird bit: if Xine is running, then MPlayer works
as well!

Xine does not actually need to be playing a movie, or even have a
movie loaded.  Just having an idle Xine process sitting around is
enough to make MPlayer work.  The key is for any user to have a Xine
process on the same display at the moment MPlayer starts its playback.

(GMPlayer is affected in basically the same way, except that the dead
video output window is slate blue instead of black.)

I originally encountered this problem using a prebuilt binary of
MPlayer 0.90-pre8, but I have also reproduced it using my own build
straight from CVS, current as of the timestamp on this message.

At the bottom of this message you will find a log of the output from
"mplayer -v".  This log recorded with Xine running in the background,
i.e. with output to "xv" working correctly.  I also recorded a log of
a non-working run.  The two logs are nearly identical, but differ in
the following ways:

  1. Where the working run prints "using Xvideo port 119 for hw
     scaling", the non-working run prints no such line.

  2. Where the working run prints the following two lines...

       Xvideo image format: 0x3 (   ^C) packed
       using Xvideo port 120 for hw scaling

     ...the non-working run instead prints just a single line:

       using Xvideo port 119 for hw scaling

That extra video format (0x3) reported in the working run is also
reported by xvinfo, for what it's worth.  I don't know enough to
know if that is significant.  I'm including the output of "xvinfo"
below, in case it contains other details of interest.

In the configuration details below, note that I am using nVidia's
closed-source drivers.  I have read "users_against_developers.html",
and I realize that this may mean that you simply cannot help me.
If you *can* help me, great!  If not, well, I understand, thanks for
the code, and sorry if I wasted your time.

Cheers!


------------------------------------------------------------------------


system information:
  Linux distribution: Red Hat 8.0 / x86
  kernel version: 2.4.19
  libc version: 2.2.93
  XFree86 version: 4.2.0
  gcc version: 3.2
  ld version: 2.13.90.0.2 20020802
  as version: 2.13.90.0.2 20020802

hardware & drivers:
  CPU info:
    processor	: 0
    vendor_id	: AuthenticAMD
    cpu family	: 6
    model	: 6
    model name	: AMD Athlon(tm) XP 1800+
    stepping	: 2
    cpu MHz	: 1535.255
    cache size	: 256 KB
    fdiv_bug	: no
    hlt_bug	: no
    f00f_bug	: no
    coma_bug	: no
    fpu	: yes
    fpu_exception	: yes
    cpuid level	: 1
    wp	: yes
    flags	: fpu vme de tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
    bogomips	: 3060.53

  Video card manufacturer and model: MSI / nVidia GeForce3 Ti200
  Video driver type & version: nVidia (closed-source) 1.0-3123


------------------------------------------------------------------------


X-Video Extension version 2.2
screen #0
  Adaptor #0: "NV10 Video Overlay"
    number of ports: 1
    port base: 119
    operations supported: PutImage 
    supported visuals:
      depth 24, visualID 0x21
      depth 24, visualID 0x23
      depth 24, visualID 0x24
      depth 24, visualID 0x25
      depth 24, visualID 0x26
      depth 24, visualID 0x27
      depth 24, visualID 0x28
      depth 24, visualID 0x29
      depth 24, visualID 0x2a
      depth 24, visualID 0x2b
      depth 24, visualID 0x2c
      depth 24, visualID 0x2d
      depth 24, visualID 0x2e
      depth 24, visualID 0x2f
      depth 24, visualID 0x30
      depth 24, visualID 0x31
      depth 24, visualID 0x22
      depth 24, visualID 0x32
      depth 24, visualID 0x33
      depth 24, visualID 0x34
      depth 24, visualID 0x35
      depth 24, visualID 0x36
      depth 24, visualID 0x37
      depth 24, visualID 0x38
      depth 24, visualID 0x39
      depth 24, visualID 0x3a
      depth 24, visualID 0x3b
      depth 24, visualID 0x3c
      depth 24, visualID 0x3d
      depth 24, visualID 0x3e
      depth 24, visualID 0x3f
      depth 24, visualID 0x40
    number of attributes: 9
      "XV_DOUBLE_BUFFER" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 1)
      "XV_COLORKEY" (range 0 to 16777215)
              client settable attribute
              client gettable attribute (current value is 66046)
      "XV_AUTOPAINT_COLORKEY" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_SET_DEFAULTS" (range 0 to 0)
              client settable attribute
      "XV_BRIGHTNESS" (range -512 to 511)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_CONTRAST" (range 0 to 8191)
              client settable attribute
              client gettable attribute (current value is 4095)
      "XV_SATURATION" (range 0 to 8191)
              client settable attribute
              client gettable attribute (current value is 4095)
      "XV_HUE" (range 0 to 360)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_ITURBT_709" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 0)
    maximum XvImage size: 2046 x 2046
    Number of image formats: 4
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x32315659 (YV12)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x59565955 (UYVY)
        guid: 55595659-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x30323449 (I420)
        guid: 49343230-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
  Adaptor #1: "NV05 Video Blitter"
    number of ports: 32
    port base: 120
    operations supported: PutImage 
    supported visuals:
      depth 24, visualID 0x21
      depth 24, visualID 0x23
      depth 24, visualID 0x24
      depth 24, visualID 0x25
      depth 24, visualID 0x26
      depth 24, visualID 0x27
      depth 24, visualID 0x28
      depth 24, visualID 0x29
      depth 24, visualID 0x2a
      depth 24, visualID 0x2b
      depth 24, visualID 0x2c
      depth 24, visualID 0x2d
      depth 24, visualID 0x2e
      depth 24, visualID 0x2f
      depth 24, visualID 0x30
      depth 24, visualID 0x31
      depth 24, visualID 0x22
      depth 24, visualID 0x32
      depth 24, visualID 0x33
      depth 24, visualID 0x34
      depth 24, visualID 0x35
      depth 24, visualID 0x36
      depth 24, visualID 0x37
      depth 24, visualID 0x38
      depth 24, visualID 0x39
      depth 24, visualID 0x3a
      depth 24, visualID 0x3b
      depth 24, visualID 0x3c
      depth 24, visualID 0x3d
      depth 24, visualID 0x3e
      depth 24, visualID 0x3f
      depth 24, visualID 0x40
    no port attributes defined
    maximum XvImage size: 2046 x 2046
    Number of image formats: 5
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x32315659 (YV12)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x59565955 (UYVY)
        guid: 55595659-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x30323449 (I420)
        guid: 49343230-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x3
        guid: 03000000-0000-0010-8000-00aa00389b71
        bits per pixel: 32
        number of planes: 1
        type: RGB (packed)
        depth: 0
        red, green, blue masks: 0xff0000, 0xff00, 0xff


------------------------------------------------------------------------


Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MPlayer 0.90pre8-3.2 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with RUNTIME CPU Detection - warning, it's not optimal! To get best performance, recompile MPlayer with --disable-runtime-cpudetection
Reading /home/liblit/.mplayer/codecs.conf: 38 audio & 108 video codecs
CommandLine: '-v' '-vo' 'xv' 'trailer.mpg'
get_path('font/font.desc') -> '/home/liblit/.mplayer/font/font.desc'
font: can't open file: /home/liblit/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using usleep() timing
get_path('input.conf') -> '/home/liblit/.mplayer/input.conf'
Can't open input config file /home/liblit/.mplayer/input.conf : No such file or directory
Can't open input config file /etc/mplayer/input.conf : No such file or directory
Falling back on default (hardcoded) input config
Setting up lirc support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed opening lirc support!
You won't be able to use your remote control

Playing trailer.mpg
Not an URL!
File size is 20464131 bytes
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x841bc48  
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x841bc48  
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x841bc48  
Checking for MOV
DEMUXER: freeing demuxer at 0x841bc48  
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x841bc48  
Checking for REAL
DEMUXER: freeing demuxer at 0x841bc48  
DEMUXER: freeing demuxer at 0x841bc48  
DEMUXER: freeing demuxer at 0x841bc48  
DEMUXER: freeing demuxer at 0x841bc48  
DEMUXER: freeing demuxer at 0x841bc48  
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x841bc48  
DEMUXER: freeing demuxer at 0x841c8e0  
Checking for PVA
DEMUXER: freeing demuxer at 0x841c8e0  
system stream synced at 0xB (0)!
==> Found video stream: 0
Detected MPEG-PS file format!
==> Found audio stream: 0
Searching for sequence header... OK!
VIDEO:  MPEG1  320x240  (aspect 1)  29.97 fps  2320.0 kbps (290.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000001  size:320x240  fps:29.97  ftime:=0.0334
get_path('sub/') -> '/home/liblit/.mplayer/sub/'
==========================================================================
Detected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
Initializing audio codec...
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: made decode tables with MMX optimization
init layer2&3 finished, tables done
mp3lib: using 3DNow!Ex optimized decore!

MPEG 1.0, Layer II, 44100 Hz 224 kbit Stereo, BPF: 731
Channels: 2, copyright: No, original: Yes, CRC: Yes, emphasis: 0
AUDIO: 44100 Hz, 2 ch, sfmt: 0x10 (2 bps), ratio: 28000->176400 (224.0 kbit)
X11 opening display: :0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1152x882 with depth 24 and 32 bpp (":0" => local display)
Xv: could not grab port 119
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 320 x 240 (preferred csp: Mpeg PES)
Couldn't find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Sorry, selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
VDec: vo config request - 320 x 240 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (320x240->320x240,flags=0,'MPlayer',0x32315659)
VO: [xv] 320x240 => 320x240 Planar YV12 
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x3 (   ^C) packed
using Xvideo port 120 for hw scaling
[xv] dx: 0 dy: 0 dw: 320 dh: 246
Detected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2)
==========================================================================
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
ao2: 44100 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags:   8/8  (16384 bytes/frag)  free: 131072
Start playing...
*** [vo] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
[xv] dx: 0 dy: 0 dw: 320 dh: 240
*** [vo] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
*** [vo] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
DEMUXER: freeing demuxer at 0x841c8e0  
DEMUXER: freeing sh_audio at 0x84226f0  
DEMUXER: freeing sh_video at 0x83c5820  
vo: uninit ...

Exiting... (Quit)




More information about the MPlayer-users mailing list