[MPlayer-users] mplayer -fs video has strange offset margins
Dennis Nezic
dennisn at dennisn.dyndns.org
Fri Mar 27 15:46:56 CET 2009
On Fri, 27 Mar 2009 10:05:51 -0400, Dennis Nezic wrote:
> On Thu, 26 Mar 2009 16:13:03 -0400, Dennis Nezic wrote:
> > Currently, with my MPlayer 29040-4.3.2, when I try to play a video
> > fullscreen (ie via -fs), it is offset from the top and left,
> > sometimes by as much as a quarter of my screen's length.
> >
> > However, it works in gmplayer
>
> Testing a few other mplayer builds, I found:
>
> 29040: Doesn't work
> 28734: Doesn't work
> 28058: Works!
Actually, with r28058, the problem still seems to exist with -vo gl ...
but not with xv gl2 or sdl.
Also, with -vo x11 (no video scaling), the video isn't centered
properly ... it would appear that videos with width/height ratios
greater than or equal to about 16/9 (1.77) there seems to be an x-axis
offset (left margin), while for the others, a y-axis offset (a top
margin) ... though I haven't been able to find one (in -vo x11) where
both x and y offsets exist. I'm sure this is somehow related to my -vo
xv problem :b.
With 28058 (at least), where only -vo gl suffers from this offset
problem (ie -vo gl2 works), here are some of their differences:
buggy -vo gl:
...
Trying filter chain: scale vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (368x208->368x208,flags=0,'MPlayer',0x32315659)
[swscaler @ 0xc41d40]using unscaled yuv420p -> rgb32 special converter
REQ: flags=0x64B7 req=0x0
VO: [gl] 368x208 => 368x208 BGRA
VO: Description: X11 (OpenGL)
VO: Author: Arpad Gereoffy <arpi at esp-team.scene.hu>
...
[gl] Creating 512x256 texture...
[gl] Resize: 368x209
*** [scale] Allocating mp_image_t, 368x208x12bpp YUV planar, 114816
bytes
*** [vo] Allocating mp_image_t, 368x208x32bpp BGR packed, 306176 bytes
[gl] Resize: 368x209
*** [scale] Allocating mp_image_t, 368x208x12bpp YUV planar, 114816
bytes
[VD_FFMPEG] DRI failure.0.092 ct: 0.000 0/ 0 ??% ??% ??,?% 1 0 94%
*** [scale] Exporting mp_image_t, 368x208x12bpp YUV planar, 114816 bytes
...................... ### ME GOING TO FULLSCREEN AND BACK ### .....
[gl] Resize: 1412x800
[gl] Resize: 368x209
working -vo gl2:
...
Trying filter chain: scale vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (368x208->368x208,flags=0,'MPlayer',0x32315659)
[swscaler @ 0xc41d40]using unscaled yuv420p -> bgr24 special converter
REQ: flags=0x7 req=0x0
VO: [gl2] 368x208 => 368x208 BGR 24-bit
VO: Description: X11 (OpenGL) - multiple textures version
VO: Author: Arpad Gereoffy & Sven Goethel
...
[gl2] OpenGL Driver Information:
vendor: DRI R300 Project,
renderer Mesa DRI R300 20060815 TCL,
version 1.3 Mesa 7.4
[gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is
ok!)
[gl2] Creating 1x1 textures of size 512x256 ...
[gl2] antialiasing off
[gl2] bilinear linear
[gl2] Using image_bpp=24, image_bytes=3,
gl_bitmap_format=GL_BGR, gl_bitmap_type=GL_UNSIGNED_BYTE,
rgb_size=24 (8,8,8), a_sz=8,
gl_internal_format=GL_RGBA8
[gl2] Resize: 368x209
*** [scale] Allocating mp_image_t, 368x208x12bpp YUV planar, 114816
bytes
*** [vo] Allocating mp_image_t, 368x208x24bpp BGR packed, 229632
bytes
[gl2] Resize: 368x209
*** [scale] Allocating mp_image_t, 368x208x12bpp YUV planar, 114816
bytes
[VD_FFMPEG] DRI failure.0.095 ct: 0.000 0/ 0 ??% ??% ??,?% 1
0 94%
*** [scale] Exporting mp_image_t, 368x208x12bpp YUV planar,
114816 bytes
...................... ### ME GOING TO FULLSCREEN AND BACK ### .....
[gl2] Resize: 1412x800
[gl2] Resize: 368x209
I'm not sure how informative that is :b .... notable differences that I
can see is that the working gl2 has:
[swscaler @ 0xc41d40]using unscaled yuv420p -> bgr24 special converter
VO: [gl2] 368x208 => 368x208 BGR 24-bit
while the offset gl has:
[swscaler @ 0xc41d40]using unscaled yuv420p -> rgb32 special converter
VO: [gl] 368x208 => 368x208 BGRA
More information about the MPlayer-users
mailing list