[MPlayer-users] BUG: expand screws up image if new width/16 != 0

Stefan Recksiegel sr at particle.uni-karlsruhe.de
Thu Jan 30 15:04:15 CET 2003


Hi,

my Chrontel 7007 TVout encoder can only produce an image either too
small or too big for my TV, so I thought it would be a good idea to use
the 'too big' mode and pad the picture a bit so I would not lose too
much of the image. Padding the image vertically is no problem at all,
but when I tried to also pad it horizontally by 20 pixels at the left
and right, (the movie is 624x480)

mplayer Wallace\ and\ Gromit\ -\ A\ Close\ Shave.avi -vop expand=664:520:20:20

The image is screwed up, black squares blank out the picture in a very
strange way. I found out that using a new width which is a multiple of 16, i.e.

mplayer Wallace\ and\ Gromit\ -\ A\ Close\ Shave.avi -vop expand=672:520:24:20

works fine. This limitation of the expand routine is absolutely fine with
me, but it should produce an error for unsuitable widths, rather than a
garbled picture.

Best wishes,                    Stefan

-----------------------------

MPlayer 0.90rc2-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/sr/.mplayer/config
Reading /home/sr/.mplayer/codecs.conf: can't open '/home/sr/.mplayer/codecs.conf': No such file or dir
ectory
Reading /usr/local/etc/mplayer/codecs.conf: 49 audio & 125 video codecs
Font /home/sr/.mplayer/font/font.desc loaded successfully! (138 chars)
Failed to open /dev/rtc: Device or resource busy (mplayer should be setuid root or /dev/rtc should be 
readable by the user.)
Using usleep() timing
Can't open input config file /home/sr/.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
Setting up lirc support...
mplayer: could not connect to socket
mplayer: Permission denied
Failed opening lirc support!
You won't be able to use your remote control

Playing Wallace and Gromit - A Close Shave.avi
Detected AVI file format!
VIDEO:  [DIV3]  624x480  24bpp  23.98 fps  750.8 kbps (91.6 kbyte/s)
==========================================================================
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: 16000->192000 (128.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 1280x1024 with depth 16 and 16 bpp (":0.0" => local display)
Disabling DPMS
Opening video filter: [expand=664:520:20:20]
Expand: 664 x 520, 20 ; 20  (-1=autodetect) osd: 0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Start playing...
VDec: vo config request - 624 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 664x520 => 664x520 Planar YV12 
Successfully enabled DPMS.002 ct:  0.105   49/ 49  21% 17%  1.8% 0 0 0%

Exiting... (Quit)


************************************************************
* Stefan Recksiegel                stefan AT recksiegel.de *
* Universität Dortmund             genion +49-231-996 9835 *
* Theoretische Physik III            home +49-231-758 1394 *
* D-44221 Dortmund / Germany       mobile +49-179-750 2854 *  
************************************************************



More information about the MPlayer-users mailing list