Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#60 closed defect (fixed)

Scaling with -xy doesn't work with -vo gl2 or -vo gl

Reported by: luigiwalser@… Owned by: reimar
Priority: normal Component: vo
Version: HEAD Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:


The last mplayer I used was 0.91 and it worked there. That was on Mandrake
9.2 and earlier releases. I'm on Mandrake 10.0 now. Using 2.4 kernels in
both cases (2.4.26 currently). Some distro specs:

Mandrake earlier:
glibc 2.2.4
gcc 2.96

Mandrake 9.2:
glibc 2.3.2
gcc 3.3.1

Mandrake 10.0:
glibc 2.3.3
gcc 3.3.2

CPU info:
processor : 0
vendor_id : AuthenticAMD
cpu family : 5
model : 9
model name : AMD-K6(tm) 3D+ Processor
stepping : 1
cpu MHz : 451.021
cache size : 256 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 mce cx8 pge mmx syscall 3dnow k6_mtrr
bogomips : 897.84

Video card: Diamond Viper V550 16MB (I think this is a Riva TNT)
X module: nVidia 5336

Some mplayer output:
MPlayer dev-CVS-040814-00:00-3.3.2 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices K6-III Chomper 451.4 MHz (Family: 5, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX 3DNow

Reading config file /etc/mplayer/mplayer.conf
Warning unknown option cache_min at line 144
Warning unknown option cache_prefill at line 147
Reading config file /home/david/.mplayer/config
Reading /home/david/.mplayer/codecs.conf: Can't open
'/home/david/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 73 audio & 178 video codecs
font: can't open file: /home/david/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /home/david/.mplayer/input.conf: No such file or
Input config file /etc/mplayer/input.conf parsed: 53 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such device
Can't init input joystick

Playing /pub/movies/Resident Evil.avi.
Cache fill: 0.00% (0 bytes) AVI file format detected.
VIDEO: [DIV3] 576x304 24bpp 23.976 fps 890.3 kbps (108.7 kbyte/s)
Clip info:

Software: Nandub v1.0rc2

Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 20000->192000 (160.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
vo: X11 running at 1564x1173 with depth 24 and 32 bpp (":0.0" => local
Disabling DPMS
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [null] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 576 x 304 (preferred csp: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler?: using unscaled Planar YV12 -> BGR 24-bit special converter
VO: [gl2] 576x304 => 576x304 BGR 24-bit
[gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
[gl2] antialiasing off
[gl2] bilinear linear
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Successfully enabled DPMS.007 ct: 0.143 48/ 48 64% 55% 4.6% 15 0 98%%

Attachments (1)

xy_opt_fix.diff (860 bytes) - added by reimar 14 years ago.
should fix -xy option

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by reimar

should fix -xy option

comment:1 Changed 14 years ago by reimar

  • Owner changed from alex@… to Reimar.Doeffinger@…
  • Status changed from new to assigned

Please test if this patch fixes it.
btw.: I have been told that -vf dsize should be used instead of the -x -y and
-xy options. Although vf_dsize is still lacking a bit of functionality IMHO.

comment:2 Changed 14 years ago by luigiwalser@…

The patch does indeed work!

comment:3 Changed 14 years ago by reimar

  • Resolution set to fixed
  • Status changed from assigned to closed

applied to CVS.

Note: See TracTickets for help on using tickets.