[MPlayer-users] fs overshoots display dimensions

Robert Henney robh at rut.org
Mon Mar 17 08:47:33 CET 2008


When playing movies without using hardware scaling, if mplayer has to make
a significant prescaling adjustment to correct the movie aspect, then 
resizing to fullscreen will overrun beyond the dimentions of the display.

I'm not certain, but the aspect correction may not be getting taken into 
consideration when calculating fullscreen size when software scaling is 
being used.  The bug is not trivial to reproduce: I think there is some
dependancy on the axial direction of the aspect correction, the video
dimentions, and the resolution of the display.  With the particular video
I tested with that has a large aspect correction, I could trigger the bug
on my widescreen display but not my 4:3 monitor.

the command line I used to generate the attached output is:

  mplayer \[Ayu\]_Umisho_Trailer_\[422574C4\].mkv -zoom -fs -msglevel statusline=0:vfilter=7

the relevant line in the attached output is this:

  [swscaler @ 0x8748af8]704x400 -> 851x478

my display is natively 800x480, and 851x478 visibly puts things that are
near the border in the video completely off the screen.
-------------- next part --------------
MPlayer dev-SVN-r26256-4.2.3 (C) 2000-2008 MPlayer Team
CPU: VIA C7-M Processor 1200MHz (Family: 6, Model: 13, Stepping: 0)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Playing [Ayu]_Umisho_Trailer_[422574C4].mkv.

[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Trailer", -vid 0
[mkv] Track ID 2: audio (A_AAC) "Trailer Audio", -aid 0, -alang jpn
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  704x400  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 704 x 400 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [x11] 704x400 => 712x400 Planar YV12  [fs] [zoom]
[swscaler @ 0x8748af8]using unscaled yuv420p -> rgb32 special converter
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 5 -> 4
[swscaler @ 0x8748af8]BICUBIC scaler, from yuv420p to rgb32 using MMX2
[swscaler @ 0x8748af8]using 4-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0x8748af8]using 4-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0x8748af8]using n-tap MMX scaler for vertical scaling (BGR)
[swscaler @ 0x8748af8]using MMX YV12->BGR32 Converter
[swscaler @ 0x8748af8]704x400 -> 712x400
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
[swscaler @ 0x8748af8]BICUBIC scaler, from yuv420p to rgb32 using MMX2
[swscaler @ 0x8748af8]using 4-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0x8748af8]using 4-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0x8748af8]using n-tap MMX scaler for vertical scaling (BGR)
[swscaler @ 0x8748af8]using MMX YV12->BGR32 Converter
[swscaler @ 0x8748af8]704x400 -> 851x478

Exiting... (Quit)


More information about the MPlayer-users mailing list