[MPlayer-users] mplayer -vo xv -vm broken

Oswald Buddenhagen ossi at kde.org
Mon Jan 13 06:15:47 CET 2003


moin,

always when i run mplayer the first time after an xserver restart (also
later if i try hard, but i cannot say exactly which sequence lead to
it), i get this one:

(gdb) r
Starting program: /usr/local/bin/mplayer -vo xv -vm Der\ Grinch\ \(german\)\ \#2\[2\].mpg
[New Thread 16384 (LWP 27317)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/stow/mplayer/share/locale


MPlayer CVS-030113-04:56-3.2.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Intel Celeron A Mendocino/Pentium II Dixon (Family: 6, Stepping: 5)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Reading config file /usr/local/stow/mplayer/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/ossi/.mplayer/config
Reading /home/ossi/.mplayer/codecs.conf: can't open '/home/ossi/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/stow/mplayer/etc/mplayer/codecs.conf: 49 audio & 130 video codecs
Font /home/ossi/.mplayer/font/font.desc loaded successfully! (206 chars)
Failed to open /dev/rtc: Permission denied (mplayer should be setuid root or /dev/rtc should be readable by the user.)
Using usleep() timing
Can't open input config file /home/ossi/.mplayer/input.conf : No such file or directory
Can't open input config file /usr/local/stow/mplayer/etc/mplayer/input.conf : No such file or directory
Falling back on default (hardcoded) input config

Playing Der Grinch (german) #2[2].mpg
Cache fill:  0.00% (0 bytes)    MPEG-PS file format detected.
VIDEO:  MPEG1  352x288  (aspect 8)  25.00 fps  1437.5 kbps (179.7 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 28000->176400 (224.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 1304x978 with depth 24 and 32 bpp (":2.0" => local display)
[x11] Detected wm is of class NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports STAYS_ON_TOP state.
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 288 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
The 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 MMX for IDCT transform
libmpeg2: Using MMX for motion compensation
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 352x288 => 384x288 Planar YV12  [vm]
XF86VM: Selected video mode 768x576 for image size 384x288.
X11 error: BadMatch (invalid parameter attributes)

Program received signal SIGABRT, Aborted.
[Switching to Thread 16384 (LWP 27317)]
0x40cc4911 in kill () from /lib/libc.so.6
(gdb) where full
#0  0x40cc4911 in kill () from /lib/libc.so.6
#1  0x40c5724b in pthread_kill () from /lib/libpthread.so.0
#2  0x40c57521 in raise () from /lib/libpthread.so.0
#3  0x40cc5846 in abort () from /lib/libc.so.6
#4  0x0808c315 in x11_errorhandler (display=0x0, event=0xbfffe178)
    at x11_common.c:145
        msg = "BadMatch (invalid parameter attributes)", '\0' <repeats 20 times>
#5  0x40b9e87d in _XError () from /usr/X11R6/lib/libX11.so.6
#6  0x40b9cf2b in _XReply () from /usr/X11R6/lib/libX11.so.6
#7  0x40b93bda in XQueryExtension () from /usr/X11R6/lib/libX11.so.6
#8  0x40b8b171 in XInitExtension () from /usr/X11R6/lib/libX11.so.6
#9  0x40b61af8 in XextAddDisplay () from /usr/X11R6/lib/libXext.so.6
#10 0x40b64139 in XShapeGetRectangles () from /usr/X11R6/lib/libXext.so.6
#11 0x40b64352 in XShmQueryExtension () from /usr/X11R6/lib/libXext.so.6
#12 0x08091024 in allocate_xvimage (foo=0) at vo_xv.c:462
#13 0x08090a48 in config (width=352, height=288, d_width=384, d_height=288,
    flags=2, title=0x823dac4 "MPlayer", format=24) at vo_xv.c:427
        hello = 0x823dac4 "MPlayer"
        hint = {flags = 12, x = 268, y = 201, width = 768, height = 576,
  min_width = 43, min_height = -1073748632, max_width = 1087377761,
  max_height = 1088059520, width_inc = 1073815552, height_inc = 44,
  min_aspect = {x = 137097984, y = 138550848}, max_aspect = {x = 352,
    y = -1073748616}, base_width = 768, base_height = 576, win_gravity = 43}
        vinfo = {visual = 0x8420518, visualid = 33, screen = 0, depth = 24,
  class = 4, red_mask = 16711680, green_mask = 65280, blue_mask = 255,
  colormap_size = 256, bits_per_rgb = 8}
        xgcv = {function = 1086475452, plane_mask = 1086708560,
  foreground = 3221218472, background = 1086667160, line_width = 1086708560,
  line_style = 1073812652, cap_style = 0, join_style = 1073743272,
  fill_style = -1073748736, fill_rule = 1073771112, arc_mode = 134594670,
  tile = 1073811928, stipple = 1085667672, ts_x_origin = 1073770528,
  ts_y_origin = -1073748744, font = 0, subwindow_mode = 1086475452,
  graphics_exposures = 32, clip_x_origin = 189704, clip_y_origin = 1073743966,
  clip_mask = 1073743368, dash_offset = 1073742376, dashes = -40 'Ø'}
        xswa = {background_pixmap = 3221218464, background_pixel = 0,
  border_pixmap = 3221218408, border_pixel = 0, bit_gravity = 1086708560,
  win_gravity = 32, backing_store = -1073748840, backing_planes = 1086689122,
  backing_pixel = 0, save_under = 0, event_mask = 1761607712,
  do_not_propagate_mask = 1689746684, override_redirect = -1073748816,
  colormap = 1073771224, cursor = 134594670}
        attribs = {x = 0, y = 0, width = 1304, height = 978, border_width = 0,
  depth = 24, visual = 0x8420518, root = 91, class = 1, bit_gravity = 1,
  win_gravity = 1, backing_store = 0, backing_planes = 4294967295,
  backing_pixel = 0, save_under = 0, colormap = 32, map_installed = 1,
  map_state = 2, all_event_masks = 14172209, your_event_mask = 0,
  do_not_propagate_mask = 0, override_redirect = 0, screen = 0x83b2e40}
        depth = 24
        vm = 1
        modeline_width = 768
        modeline_height = 576
        vm_width = 384
        vm_height = 288
#14 0x080cffcc in config (vf=0x8421e40, width=352, height=288, d_width=384,
    d_height=288, flags=2, outfmt=842094169) at vf_vo.c:48
#15 0x080c0698 in mpcodecs_config_vo (sh=0x83b2b90, w=288, h=384,
    preferred_outfmt=0) at vd.c:288
        i = 288
        j = 0
        out_fmt = 842094169
        screen_size_x = 384
        screen_size_y = 288
        vf = (struct vf_instance_s *) 0x8421e40
        sc = (struct vf_instance_s *) 0x0
#16 0x080c8037 in init (sh=0x83b2b90) at vd_libmpeg2.c:87
#17 0x080bfed0 in init_video (sh_video=0x83b2b90, codecname=0x0, vfm=0x0,
    status=1) at dec_video.c:234
        orig_fourcc = 0
#18 0x080c016f in init_best_video_codec (sh_video=0x83b2b90,
    video_codec_list=0xbfffe6b4, video_fm_list=0x0) at dec_video.c:280
        vc_l_default = {0x8236171 "", 0x0}
#19 0x0806cdde in main (argc=5, argv=0xbffffa04) at mplayer.c:1528
        d_audio = (struct {...} *) 0x83a6a28
        d_video = (struct {...} *) 0x83a6a88
        d_dvdsub = (struct {...} *) 0x83b2b30
        file_format = 0
        delay_corrected = 1
        eof = 0
        osd_function = 1
        osd_last_pts = -303
        osd_show_av_delay = 0
        osd_show_sub_delay = 0
        osd_show_sub_pos = 0
        osd_show_sub_visibility = 0
        osd_show_sub_alignment = 0
        osd_show_vobsub_changed = 0
        osd_show_percentage = 0
        osd_show_tv_channel = 25
        rtc_fd = -1
        i = 138095504
        gui_no_filename = 0


this leaves the xserver in the low-res mode. if i now start mplayer,
everything is fine. but when i switch back to hi-res mode and start it
then, strange things happen: it switches to low-res mode, makes (0,0)
the origin of the visible area, but the xv overlay area is put in the
center of the screen. consequently only the upper left part of the movie
can be seen. if the visible area is moved (press f to "unlock" the
screen first), very interesting effects result from the interplay of
clipping and overlay.

setup is:
xfree 4.2.1.1 on linux 2.4.20
tnt1 gpu, driven by nvidia-4191 (that explains everything, eh? :})

possibly this is a breakage in the xserver, but maybe it can be worked
around.
i cannot simply stop using vm, as i get weird artifacts then (i guess
the tnt chip does not have enough memory bandwidth for hi-res fullscreen).

greetings

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.



More information about the MPlayer-users mailing list