[MPlayer-users] [Bugreport]

Dominik Mierzejewski dominik at rangers.eu.org
Sat May 11 19:11:02 CEST 2002


Problem description:

When using vo xv, apparently MPlayer's xv window remembers its last size
and position and always rescales video output to that size, ignoring
video stream resolution and aspect. -x, -y, -xy parameters have no effect.
When using vo x11, the window itself still remembers the last size and
position, but the video output is not rescaled (which is ok).
When using SDL, the output window behaves normally, i.e. it has the size
of the movie so the video is not rescaled. -x, -y, -xy parameters have no
effect either.
In both xv and SDL case resizing the window manually using mouse rescales
the video to fill the window, ignoring aspect.

I observed the same behaviour on both my current Riva TNT and ATI 3D Rage
Pro (using GATOS driver for XFree 4.1.0). My friend with Riva TNT2 M64
doesn't have that problem and also I didn't have this problem on another
ATI Rage128 Pro card.

However, in fullscreen mode the video stream aspect ratio is preserved.

HTH. If you need any more details, please say so.

System Information

* Linux distribution:
Red Hat 7.2

* kernel version:
uname -a
Linux rathann.rangers.eu.org 2.4.19-pre8 #3 sob maj 4 21:59:00 CEST 2002 i686 unknown

* libc version:
ls -l /lib/libc[.-]*
-rwxr-xr-x    1 root     root      1285788 kwi  2 18:58 /lib/libc-2.2.4.so
lrwxrwxrwx    1 root     root           13 kwi 14 11:23 /lib/libc.so.6 -> libc-2.2.4.so

* X version:
X -version
XFree86 Version 4.1.0 (Red Hat Linux release: 4.1.0-15) / X Window System
(protocol Version 11, revision 0, vendor release 6510)
Build Operating System: Linux 2.4.7-0.13.1smp i686 [ELF] 
Build Host: stripples.devel.redhat.com
Module Loader present

sawfish --version
sawfish version 0.38

* gcc and ld versions:
gcc3 -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.0.4/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib
Thread model: posix
gcc version 3.0.4 (Red Hat Linux 7.2 3.0.4-1)
ld -v
GNU ld version 2.11.90.0.8 (with BFD 2.11.90.0.8)

* binutils version:
as --version
GNU assembler 2.11.90.0.8

Hardware & drivers

* CPU info (this works on Linux only):
cat /proc/cpuinfo
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 6
model		: 3
model name	: AMD Duron(tm) processor
stepping	: 1
cpu MHz		: 700.040
cache size	: 64 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 pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips	: 1395.91

* Video card manufacturer and model, e.g.:
cat /proc/driver/nvidia/cards/0 
Model: 		 RIVA TNT
IRQ:   		 9
Video BIOS: 	 02.04.17.00
Card Type: 	 AGP

* Video driver type & version, e.g.:
nVidia 2880

* Sound card type & driver, e.g.:
Creative SB32PnP with kernel OSS drivers

mplayer -vo xv -v output showing switching to fullscreen and back:
MPlayer CVS-020511-01:18-3.0.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale
CPU vendor name: AuthenticAMD  max cpuid level: 1
CPU: Advanced Micro Devices Duron SF Spitfire (Type: 6, Stepping: 1)
extended cpuid-level: 6
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled with RUNTIME CPU Detection - warning, it's not optimal! To get best performance, recompile mplayer from sources with --disable-runtime-cpudetection
Reading /home/dominik/.mplayer/codecs.conf: can't open '/home/dominik/.mplayer/codecs.conf': Nie ma takiego pliku ani katalogu
Reading /etc/mplayer/codecs.conf: 34 audio & 92 video codecs
CommandLine:get_path('font/font.desc') -> '/home/dominik/.mplayer/font/font.desc'
 '-vo' 'xv' '-v' 'B5LotR.Rathann.divx4.sample.avi'
font: can't open file: /home/dominik/.mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Linux RTC init error in ioctl (rtc_pie_on): Brak dostępu
Using usleep() timing
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed : 50 binds
Playing B5LotR.Rathann.divx4.sample.avi
Not an URL!
File size is 7942528 bytes
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0 
Cache fill:  0,00% (0 bytes)    Detected AVI file format!
list_end=0x144
list_end=0xD4
======= AVI Header =======
us/frame: 33366  (fps=29,971)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames  total: 1799   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  480 x 272
==> Found video stream: 0
found 'bih', 40 bytes of 40
======= STREAM Header =======
Type: vids   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 299699/10000 = 29,970
Start: 0   Len: 1799
Suggested BufferSize: 26343
Quality 0
Sample size: 0
Regenerating keyframe table for DIVX 4 video
======= VIDEO Format ======
  biSize 40
  biWidth 480
  biHeight 272
  biPlanes 1
  biBitCount 24
  biCompression 1482049860='DIVX'
  biSizeImage 391680
===========================
list_end=0x144
==> Found audio stream: 1
found 'wf', 28 bytes of 20
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 8010/372 = 21,532
Start: 0   Len: 1310
Suggested BufferSize: 3720
Quality 0
Sample size: 372
Broken chunk?  chunksize=1716  (id=JUNK)
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 2
Samplerate: 44100
avg byte/sec: 8010
Block align: 372
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [0] [1] [0] [74] [1] [0] [0] [59] [0] 
list_end=0x78B8D8
Found movie at 0x80C - 0x78B8D8
Reading INDEX block, 1930 chunks for 1799 frames
Broken chunk?  chunksize=0  (id=idx1)
Reading INDEX block, 1930 chunks for 1799 frames
AVI index offset: 0x808 (movi=0x80C idx0=0x4 idx1=0xE94)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video length=7892838
VIDEO:  [DIVX]  480x272  24bpp  29,97 fps  1051,9 kbps (128,4 kbyte/s)
[V] filefmt:3  fourcc:0x58564944  size:480x272  fps:29,97  ftime:=0,0334
get_path('sub/') -> '/home/dominik/.mplayer/sub/'
Detected audio codec: [divx] drv:4 (DivX audio (WMA))
Initializing audio codec...
Selecting Audio Decoder: [acm] Win32 ACM audio decoder
======= Win32 (ACM) AUDIO Codec init =======
Audio codec opened OK! ;-)
Input format:
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 2
Samplerate: 44100
avg byte/sec: 8010
Block align: 372
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [0] [1] [0] [74] [1] [0] [0] [59] [0] 
Output fmt:
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 2
Samplerate: 44100
avg byte/sec: 176400
Block align: 4
bits/sample: 16
cbSize: 0

Loading DLL: 'divxa32.acm'
Loaded divxa32.acm to address 0x1c200000
Audio ACM output buffer min. size: 16384
Audio ACM input buffer min. size: 744
INFO: Win32/ACM audio codec init OK!
dec_audio: Allocating 1488 bytes for input buffer
dec_audio: Allocating 16384 + 65536 = 81920 bytes for output buffer
AUDIO: srate=44100  chans=2  bps=2  sfmt=0x10  ratio: 8010->176400
==========================================================================
X11 opening display: :0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bits/pixel (":0" => local display)
Opening Video Decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
libavcodec: CPU flags: mmx mmxext 3dnow
Detected video codec: [ffodivx] drv:5 prio:0 (FFmpeg MPEG-4)
==========================================================================
[PP] Sorry, postprocessing is not available
AutoQ: setting quality to 0
vo_xv: get: XV_DOUBLE_BUFFER = 1
vo_xv: assume: XV_DOUBLE_BUFFER = 2000
vo_xv: get: XV_COLORKEY = 66046
vo_xv: assume: XV_COLORKEY = 31
vo_xv: get: XV_AUTOPAINT_COLORKEY = 1
vo_xv: assume: XV_AUTOPAINT_COLORKEY = 2000
AO: [oss] 44100Hz Stereo Signed 16-bit (Little-Endian)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Start playing...
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:  16/16  (4096 bytes/frag)  free:  65536
VDec: vo config request - 480 x 272, Planar YV12  
looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
[PP] Sorry, postprocessing is not available
vo_debug: query(Planar YV12) returned 0x437 (i=0) 
Movie-Aspect is undefined - no prescaling applied.
video_out->init(480x272->480x272,flags=0,'MPlayer',0x32315659)
VO: [xv] 480x272 => 480x272 Planar YV12 
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de>
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 60 for hw scaling
vo_xv: reset gamma correction
[xv] dx: 0 dy: 0 dw: 480 dh: 272
*** [vo] Exporting mp_image_t, 480x272x12bpp YUV planar, 195840 bytes
Disabling DPMS
stat: 1
[xv] dx: 0 dy: 0 dw: 641 dh: 481
A:   0,2 V:   0,0 A-V:  0,207 ct:  0,000    1/  1   0%  0%  0,0% 0 0 94%
A:   0,2 V:   0,0 A-V:  0,178 ct:  0,003    2/  2   0%  0%  0,0% 1 0 94%
A:   0,2 V:   0,1 A-V:  0,149 ct:  0,007    3/  3   0%  0%  0,0% 1 0 94%
A:   0,2 V:   0,1 A-V:  0,118 ct:  0,010    4/  4   0%  0%  0,0% 1 0 94%
A:   0,2 V:   0,1 A-V:  0,097 ct:  0,013    5/  5   0%  0%  0,0% 1 0 94%
A:   0,2 V:   0,2 A-V:  0,078 ct:  0,017    6/  6   0%  0%  0,0% 1 0 94%
A:   0,3 V:   0,2 A-V:  0,051 ct:  0,020    7/  7   0%  0%  0,0% 1 0 94%
A:   0,3 V:   0,2 A-V:  0,025 ct:  0,023    8/  8   0%  0%  0,0% 1 0 94%
A:   0,3 V:   0,3 A-V:  0,022 ct:  0,025    9/  9   0%  0%  0,0% 1 0 94%
A:   0,3 V:   0,3 A-V:  0,019 ct:  0,027   10/ 10   0%  0%  0,0% 1 0 94%
A:   0,3 V:   0,3 A-V:  0,015 ct:  0,028   11/ 11   0%  0%  0,0% 1 0 94%
A:   0,4 V:   0,4 A-V:  0,022 ct:  0,030   12/ 12   0%  0%  0,0% 1 0 94%
A:   0,4 V:   0,4 A-V:  0,018 ct:  0,032   13/ 13   0%  0%  0,0% 1 0 94%
XXX initial  v_pts=0,400  a_pos=7440 (0,929) 
A:   0,4 V:   0,4 A-V:  0,015 ct:  0,034   14/ 14   0%  0%  0,0% 1 0 94%
A:   0,5 V:   0,5 A-V:  0,012 ct:  0,035   15/ 15   0%  0%  0,0% 1 0 94%
A:   0,5 V:   0,5 A-V:  0,008 ct:  0,036   16/ 16  39%  0%  1,7% 1 0 94%
A:   0,5 V:   0,5 A-V:  0,015 ct:  0,037   17/ 17  37%  0%  1,9% 1 0 94%
A:   0,6 V:   0,6 A-V:  0,012 ct:  0,038   18/ 18  35%  0%  2,0% 1 0 94%
A:   0,6 V:   0,6 A-V:  0,008 ct:  0,039   19/ 19  33%  0%  2,2% 1 0 94%
A:   0,6 V:   0,6 A-V:  0,005 ct:  0,040   20/ 20  31%  0%  2,0% 1 0 94%
A:   0,7 V:   0,7 A-V:  0,011 ct:  0,041   21/ 21  30%  0%  2,2% 1 0 94%
A:   0,7 V:   0,7 A-V:  0,008 ct:  0,042   22/ 22  29%  0%  2,3% 1 0 94%
A:   0,7 V:   0,7 A-V:  0,005 ct:  0,042   23/ 23  28%  0%  2,2% 1 0 94%
A:   0,8 V:   0,8 A-V:  0,004 ct:  0,042   24/ 24  28%  0%  2,3% 1 0 94%
A:   0,8 V:   0,8 A-V:  0,011 ct:  0,043   25/ 25  27%  1%  2,4% 1 0 94%
A:   0,8 V:   0,8 A-V:  0,007 ct:  0,044   26/ 26  27%  1%  2,3% 1 0 94%
A:   0,9 V:   0,9 A-V:  0,004 ct:  0,045   27/ 27  26%  1%  2,3% 1 0 94%
A:   0,9 V:   0,9 A-V:  0,000 ct:  0,045   28/ 28  26%  1%  2,4% 1 0 94%
A:   0,9 V:   0,9 A-V:  0,007 ct:  0,045   29/ 29  25%  2%  2,3% 1 0 93%
A:   1,0 V:   1,0 A-V:  0,013 ct:  0,047   30/ 30  25%  2%  2,4% 1 0 93%
[xv] dx: 0 dy: 0 dw: 1024 dh: 768
[xv-fs] dx: 0 dy: 94 dw: 1024 dh: 580
A:   1,0 V:   1,0 A-V:  0,020 ct:  0,049   31/ 31  24%  2%  2,6% 1 0 93%
A:   1,0 V:   1,0 A-V: -0,003 ct:  0,048   32/ 32  24%  2%  2,5% 1 0 93%
A:   1,1 V:   1,1 A-V:  0,004 ct:  0,049   33/ 33  23%  2%  2,5% 1 0 93%
A:   1,1 V:   1,1 A-V:  0,000 ct:  0,049   34/ 34  23%  2%  2,5% 1 0 93%
A:   1,1 V:   1,1 A-V: -0,003 ct:  0,048   35/ 35  23%  3%  2,6% 1 0 93%
A:   1,2 V:   1,2 A-V:  0,004 ct:  0,049   36/ 36  22%  3%  2,5% 1 0 93%
A:   1,2 V:   1,2 A-V: -0,002 ct:  0,049   37/ 37  22%  3%  2,6% 1 0 93%
A:   1,2 V:   1,2 A-V: -0,003 ct:  0,048   38/ 38  22%  3%  2,6% 1 0 93%
A:   1,3 V:   1,3 A-V:  0,004 ct:  0,049   39/ 39  22%  3%  2,7% 1 0 93%
A:   1,3 V:   1,3 A-V:  0,000 ct:  0,049   40/ 40  22%  3%  2,6% 1 0 93%
A:   1,3 V:   1,3 A-V: -0,003 ct:  0,048   41/ 41  21%  3%  2,7% 1 0 93%
A:   1,4 V:   1,4 A-V:  0,004 ct:  0,049   42/ 42  21%  3%  2,7% 1 0 93%
A:   1,4 V:   1,4 A-V:  0,000 ct:  0,049   43/ 43  21%  3%  2,7% 1 0 93%
[xv] dx: 0 dy: 0 dw: 641 dh: 481
A:   1,5 V:   1,4 A-V:  0,051 ct:  0,052   44/ 44  21%  3%  2,9% 1 0 93%
A:   1,5 V:   1,5 A-V:  0,027 ct:  0,055   45/ 45  21%  3%  2,8% 1 0 93%
A:   1,5 V:   1,5 A-V:  0,002 ct:  0,055   46/ 46  21%  3%  2,8% 1 0 92%
A:   1,5 V:   1,5 A-V: -0,006 ct:  0,054   47/ 47  20%  3%  2,7% 1 0 92%
A:   1,6 V:   1,6 A-V: -0,009 ct:  0,054   48/ 48  20%  3%  2,7% 1 0 92%
A:   1,6 V:   1,6 A-V: -0,003 ct:  0,053   49/ 49  20%  3%  2,8% 1 0 92%
A:   1,6 V:   1,6 A-V: -0,006 ct:  0,053   50/ 50  20%  3%  2,7% 1 0 92%
A:   1,7 V:   1,7 A-V: -0,009 ct:  0,052   51/ 51  20%  3%  2,8% 1 0 92%
A:   1,7 V:   1,7 A-V: -0,003 ct:  0,051   52/ 52  19%  3%  2,8% 1 0 92%
A:   1,7 V:   1,7 A-V: -0,006 ct:  0,051   53/ 53  19%  3%  2,8% 1 0 92%
A:   1,8 V:   1,8 A-V:  0,001 ct:  0,051   54/ 54  19%  3%  2,8% 1 0 92%
A:   1,8 V:   1,8 A-V: -0,003 ct:  0,051   55/ 55  19%  3%  2,8% 1 0 92%
A:   1,8 V:   1,8 A-V: -0,006 ct:  0,050   56/ 56  19%  3%  2,9% 1 0 92%
A:   1,9 V:   1,9 A-V:  0,000 ct:  0,050   57/ 57  19%  2%  2,8% 1 0 92%
A:   1,9 V:   1,9 A-V: -0,003 ct:  0,050   58/ 58  19%  2%  2,8% 1 0 92%
Exiting... (Quit)

*** free_stream() called ***
Successfully enabled DPMS
vo: uninit ...

-- 
MPlayer RPMs: http://msp-190.man.olsztyn.pl/~dominik/mplayer.html
"The Universe doesn't give you any points for doing things that are easy."
        -- Sheridan to Garibaldi in Babylon 5:"The Geometry of Shadows"
Dominik 'Rathann' Mierzejewski <rathann(at)rangers.eu.org>




More information about the MPlayer-users mailing list