[MPlayer-users] MPlayer problem with XRANDR extension

Nilmoni Deb ndeb at ece.cmu.edu
Fri Aug 1 04:21:15 CEST 2003


I am using latest MPlayer/FFMPEG cvs on a mandrake-9.1/X-4.3.0 system with
the XRANDR support. The xrandr support allows on the  fly resolution
change (as we all know).

Steps to reproduce the problem:

- Start X at 1280x1024.
- "mplayer -fs file" plays file in fullscreen mode just fine.
- quit mplayer
- Switch X resolution using the xrandr command to 1600x1200.
- "mplayer -fs file" plays file in fullscreen mode but the video is
always confined to only an area of 1280x1024 in the top left corner of
the screen. The rest of the screen is black.

The mplayer log shows that mplayer has detected the screen size as
1600x1200. So why is the video window of size 1280x1024 ?

Here's the mplayer log:



MPlayer dev-CVS-030731-21:47-3.2.2 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Duron SF Spitfire (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or
directory
Reading config file /home/ndeb/.mplayer/config
Warning unknown option skin at line 3
Reading /home/ndeb/.mplayer/codecs.conf: This codecs.conf is too old and
incompatible with this MPlayer release! at line 6
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf
CommandLine: '-v' '-fs' '-vop' 'eq=60:0' '-benchmark' '-nosound' '-frames'
'1000' '/mnt/linux_home/ndeb/movies/VIDEO_TS.VOB'
get_path('font/font.desc') -> '/home/ndeb/.mplayer/font/font.desc'
font: can't open  /home/ndeb/.mplayer/font/font.desc
font: can't open  /usr/local/share/mplayer/font/font.desc
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: Permission denied (mplayer should be setuid root
or /dev/rtc should be readable by the user.)
Using usleep() timing
get_path('input.conf') -> '/home/ndeb/.mplayer/input.conf'
Can't open input config file /home/ndeb/.mplayer/input.conf: No such file
or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such
file or directory
Falling back on default (hardcoded) input config
get_path('VIDEO_TS.VOB.conf') -> '/home/ndeb/.mplayer/VIDEO_TS.VOB.conf'

Playing /mnt/linux_home/ndeb/movies/VIDEO_TS.VOB
Not an URL!
[file] File size is 27813888 bytes
STREAM: [file] /mnt/linux_home/ndeb/movies/VIDEO_TS.VOB
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x8415100
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x8415100
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x8415100
Checking for REAL
DEMUXER: freeing demuxer at 0x8415100
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x8415100
DEMUXER: freeing demuxer at 0x8415aa0
Searching demuxer type for filename
/mnt/linux_home/ndeb/movies/VIDEO_TS.VOB ext: .VOB
Trying demuxer 2 based on filename extension
system stream synced at 0xD (0)!
==> Found video stream: 0
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO:  MPEG2  720x480  (aspect 2)  29.97 fps  4587.2 kbps (573.4 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.97  ftime:=0.0334
get_path('sub/') -> '/home/ndeb/.mplayer/sub/'
get_path('default.sub') -> '/home/ndeb/.mplayer/default.sub'
X11 opening display: :0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0" => local
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports STAYS_ON_TOP state.
Disabling DPMS
DPMSDisable stat: 1
Opening video filter: [eq brightness=60 contrast=0]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
Trying filter chain: eq vo
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale eq vo
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Audio: no sound
Freeing 0 unused audio chunks
Starting playback...
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
Trying filter chain: eq vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (720x480->720x540,flags=1,'MPlayer',0x32315659)
REQ: flags=0x437  req=0x0
VO: [xv] 720x480 => 720x540 Planar YV12  [fs]
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
[x11] NET style stay on top ( layer 1 ). Using state
_NET_WM_STATE_STAYS_ON_TOP.
using Xvideo port 89 for hw scaling
[xv-fs] dx: 0 dy: 0 dw: 1600 dh: 1200
[xv] dx: 0 dy: 0 dw: 1600 dh: 1200
*** [eq] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
Trying filter chain: eq vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (720x480->720x540,flags=1,'MPlayer',0x32315659)
REQ: flags=0x437  req=0x0
VO: [xv] 720x480 => 720x540 Planar YV12  [fs]
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
using Xvideo port 89 for hw scaling
[xv-fs] dx: 0 dy: 0 dw: 1600 dh: 1200
[xv] dx: 0 dy: 0 dw: 1600 dh: 1200
*** [eq] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
*** [vo] Exporting mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
get_path('subfont.ttf') -> '/home/ndeb/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
[xv] dx: 0 dy: 0 dw: 1600 dh: 1200%
[xv-fs] dx: 0 dy: 0 dw: 1600 dh: 1200
==> Found subtitle: 0%  0.0% 0 0 0%
*** [eq] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
==> Found audio stream: 128% 0 0 0%
uninit video: libmpeg2  0.0% 0 0 0%
DEMUXER: freeing demuxer at 0x8415aa0
DEMUXER: freeing sh_video at 0x84164b8
DEMUXER: freeing sh_audio at 0x842a600
Successfully enabled DPMS
vo: uninit ...

Exiting... (Quit)



More information about the MPlayer-users mailing list