[MPlayer-users] buggy -vop crop

Georgi Georgiev chutz at chubaka.homeip.net
Sat May 4 04:30:02 CEST 2002


It all started when I wanted to play a bit with mencoder. Figured the problem is better visible with mplayer (though it is there with mencoder as well).

mplayer -vop crop=710:480:0:0 file.mpeg

The file I am playing is a short (132MB ~ 4min) file I previously ripped from a DVD. Original size - 720x480.
I guess the output of mplayer also matters so there it goes as well. I think this is the interesting part:

Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
video_out->init(720x480->720x540,flags=0,'MPlayer',0x32315659)
crop->config() called
REQ: flags=0x437  req=0x400  
VO: [xv] 720x470 => 720x540 Planar YV12 

I would also like to mention crop seemed to be fine when the width of the crop was 720 (and was playing with the height) . Actually after a little more playing, it seems like for example crop works or not at these values for width:
 50 not readable
100 bad
150 not readable
200 perfect
250 not readable
300 bad
350 not readable
400 perfect
450 not readable
500 bad
550 not readable
600 perfect
650 not readable
700 bad

"not readable" means that the text (the title of the song - my mpeg is actually a clip) is not readable, because the image is skewed too much to the right. "bad" means that the orientation was right, even the colors were somewhat fine but there was something like an extra pinky layer being skewed on top. "perfect" means it was behaving the way it should have.

I am running RedHat 7.2, and therefore compiling with gcc 3.0.4. 2.4.9 kernel. libc-2.2.4.so. X 4.1.0. GNU ld version 2.11.90.0.8 (with BFD 2.11.90.0.8). as - same as ld.

Do you really need all that hardware info?

___________________________
$ mplayer -vop crop=710:480:0:0 pearl_harbor_soundtrack.mpeg  -verbose 1


MPlayer CVS-020503-22:46-3.0.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU vendor name: AuthenticAMD  max cpuid level: 1
CPU: Advanced Micro Devices Athlon K7 (Type: 6, Stepping: 2)
extended cpuid-level: 6
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with features: MMX MMX2 3DNow 3DNowEx
Reading /home/chutz/.mplayer/codecs.conf: 34 audio & 91 video codecs
CommandLine: '-vop' 'crop=710:480:0:0' 'pearl_harbor_soundtrack.mpeg' '-verbose' '1'
get_path('font/font.desc') -> '/home/chutz/.mplayer/font/font.desc'
Font /home/chutz/.mplayer/font/font.desc loaded successfully! (7052 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Linux RTC init error in ioctl (rtc_pie_on): Permission denied
Using usleep() timing
get_path('input.conf') -> '/home/chutz/.mplayer/input.conf'
Parsing input config file /home/chutz/.mplayer/input.conf
Input config file /home/chutz/.mplayer/input.conf parsed : 51 binds
Playing pearl_harbor_soundtrack.mpeg
Not an URL!
File size is 138657792 bytes
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x8330b60  
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x8330b60  
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x8330b60  
Checking for MOV
DEMUXER: freeing demuxer at 0x8330b60  
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x8330b60  
Checking for REAL
DEMUXER: freeing demuxer at 0x8330b60  
DEMUXER: freeing demuxer at 0x8330b60  
DEMUXER: freeing demuxer at 0x8330b60  
DEMUXER: freeing demuxer at 0x8330b60  
DEMUXER: freeing demuxer at 0x8330b60  
DEMUXER: freeing demuxer at 0x8330b60  
system stream synced at 0xD (0)!
==> Found video stream: 0
Detected MPEG-PS file format!
==> Found audio stream: 128
Searching for sequence header... OK!
VIDEO:  MPEG2  720x480  (aspect 2)  29.97 fps  10000.0 kbps (1250.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.97  ftime:=0.0334
get_path('sub/') -> '/home/chutz/.mplayer/sub/'
Detected audio codec: [a52] drv:14 (AC3-liba52)
Initializing audio codec...
Selecting Audio Decoder: [liba52] AC3-liba52
dec_audio: Allocating 3840 bytes for input buffer
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer
Using 3DNowEx optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  384.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
Using MMX optimized resampler
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 48000->192000
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1600x1200 with depth 24 and 32 bits/pixel (":0.0" => local display)
Opening video filter 'crop' with args '710:480:0:0'...
Crop: 710 x 480, 0 ; 0
==========================================================================
Opening Video Decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480, Mpeg PES  
[PP] Sorry, postprocessing is not available
vo_debug: query(Mpeg PES) returned 0x0 (i=0) 
Couldn't find matching colorspace - retrying with -vop scale...
SwScale: -1 x -1
vo_debug: query(Mpeg PES) returned 0x0 (i=0) 
Sorry, selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening Video Decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
VDec: vo config request - 720 x 480, Planar YV12  
[PP] Sorry, postprocessing is not available
vo_debug: query(Planar YV12) returned 0x437 (i=0) 
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
video_out->init(720x480->720x540,flags=0,'MPlayer',0x32315659)
crop->config() called
REQ: flags=0x437  req=0x400  
VO: [xv] 710x480 => 720x540 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: 720 dh: 540
Disabling DPMS
stat: 1
crop->config() return 1
Detected video codec: [mpeg12] drv:1 prio:0 (MPEG 1 or 2)
==========================================================================
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
vo_xv: get: XV_BRIGHTNESS = 0
vo_xv: assume: XV_BRIGHTNESS = 0
vo_xv: get: XV_CONTRAST = 4096
vo_xv: assume: XV_CONTRAST = 0
vo_xv: get: XV_SATURATION = 4096
vo_xv: assume: XV_SATURATION = 0
vo_xv: get: XV_HUE = 0
vo_xv: assume: XV_HUE = -1000
AO: [oss] 48000Hz Stereo Signed 16-bit (Little-Endian)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
ao2: 48000 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 48000 Hz samplerate (requested: 48000)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
Start playing...
*** [crop] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
[xv] dx: 6 dy: 19 dw: 720 dh: 540
*** [crop] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
*** [vo] Exporting mp_image_t, 710x480x12bpp YUV planar, 511200 bytes
*** [crop] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
A:   7.3 V:   5.3 A-V:  2.013 ct:  0.317  147/147  55% 69%  7.2% 106 0 0%
*** free_stream() called ***
Successfully enabled DPMS

Exiting... (Quit)

-- 
Chutz <chutz at chubaka.homeip.net>
--------------------------------
Nothing succeeds like -- failure. (contributed by Chris Johnston)




More information about the MPlayer-users mailing list