[MPlayer-dev-eng] [BUG] MPlayer SIGSEGVs with EGA/svgalib + -vop scale
Gabucino
gabucino at mplayerhq.hu
Sat Jan 25 09:31:33 CET 2003
I have to downscale the image to 320x200 (or 640x200) to be able to display
it with my EGA card. Unfortunately lately I had to use the 'crop' filter
instead (crop=320:200) because the scale=320:200 broke. _It DID work_.. few
months ago. Debug output follows (was kinda hard to get, with just one box..)
HW: AMD K6/2 266, VIA MVP3, EGA card w. CGA display
SW: MPlayer latest CVS, svgalib 1.4.3
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-linux".
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale
(gdb) run mplayer.debug El-*.mpg -vo svga -bpp 4 -vop scale=320:200 -noaspect
MPlayer CVS-030123-06:12-2.95.4 (C) 2000-2003 Arpad Gereoffy (see DOCS)
CPU: Advanced Micro Devices K6-2 (Family: 5, Stepping: 0)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection
Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf
Failed to open /dev/rtc: Device or resource busy (mplayer should be setuid root or /dev/rtc should be readable by the user.)
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using usleep() timing
Can't open input config file /root/.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
Playing /home/gabucino/Media/Movie/El-Hazard-TV-OP.mpg
Cache fill: 0.00% (0 bytes)
Cache fill: 9.38% (49152 bytes)
Cache fill: 18.75% (98304 bytes)
Cache fill: 18.75% (98304 bytes) Searching demuxer type for filename /home/gabucino/Media/Movie/El-Hazard-TV-OP.mpg ext: .mpg
!!! trying demuxer 2 based on filename extension
MPEG-PS file format detected.
VIDEO: MPEG1 352x240 (aspect 12) 29.97 fps 1439.5 kbps (179.9 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 28000->176400 (224.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Using EGA driver.
svgalib 1.4.3
Opening video filter: [scale=320:200]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 240 (preferred csp: Mpeg PES)
The 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 MMX for IDCT transform
libmpeg2: Using 3DNOW for motion compensation
VDec: vo config request - 352 x 240 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 5
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: BICUBIC scaler, from Planar YV12 to BGR 4-bit using 3DNOW
VO: [svga] 320x200 => 320x200 BGR 4-bit
vo_svga: SVGAlib resolution: 320x200 4bpp - No video scaling
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
audio_setup: Can't open audio device /dev/dsp: Device or resource busy
SDL: Samplerate: 44100Hz Channels: Stereo Format Signed 16-bit (Little-Endian)
SDL: Unable to open audio: No available audio device
AO: [null] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Starting playback...
A: 0.8 V: 0.0 A-V: 0.785 ct: 0.000 1/ 1 0% 0% 0.0% 0 0 77%
[New Thread 1024 (LWP 11872)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 11872)]
0x40602197 in memcpy () from /lib/libc.so.6
#0 0x40602197 in memcpy () from /lib/libc.so.6
#1 0x080a2781 in putbox (x=0, y=0, w=320, h=200, buf=0x8501880 "", prog=1)
at vo_svga.c:728
#2 0x080a1f3c in draw_frame (src=0x8457e40) at vo_svga.c:507
#3 0x080e902f in put_image (vf=0x8469970, mpi=0x8457e20) at vf_vo.c:108
#4 0x080e8af1 in vf_next_put_image (vf=0x84699d0, mpi=0x8457e20) at vf.c:399
#5 0x080eaa01 in put_image (vf=0x84699d0, mpi=0x8457db8) at vf_scale.c:217
#6 0x080dca70 in decode_video (sh_video=0x844d6a8, start=0x40914008 "",
in_size=4800, drop_frame=0) at dec_video.c:329
#7 0x08073451 in main (argc=9, argv=0xbffffd94) at mplayer.c:1834
Dump of assembler code from 0x40602177 to 0x406021b7:
0x40602177 <memcpy+7>: or %cl,0xd7891045(%ebx)
0x4060217d <memcpy+13>: mov 0xc(%ebp),%esi
0x40602180 <memcpy+16>: cmp $0x7,%eax
0x40602183 <memcpy+19>: jbe 0x406021a0 <memcpy+48>
0x40602185 <memcpy+21>: mov %edx,%ecx
0x40602187 <memcpy+23>: neg %ecx
0x40602189 <memcpy+25>: and $0x3,%ecx
0x4060218c <memcpy+28>: sub %ecx,%eax
0x4060218e <memcpy+30>: cld
0x4060218f <memcpy+31>: repz movsb %ds:(%esi),%es:(%edi)
0x40602191 <memcpy+33>: mov %eax,%ecx
0x40602193 <memcpy+35>: shr $0x2,%ecx
0x40602196 <memcpy+38>: cld
0x40602197 <memcpy+39>: repz movsl %ds:(%esi),%es:(%edi)
0x40602199 <memcpy+41>: and $0x3,%eax
0x4060219c <memcpy+44>: lea 0x0(%esi,1),%esi
0x406021a0 <memcpy+48>: mov %eax,%ecx
0x406021a2 <memcpy+50>: cld
0x406021a3 <memcpy+51>: repz movsb %ds:(%esi),%es:(%edi)
0x406021a5 <memcpy+53>: mov %edx,%eax
0x406021a7 <memcpy+55>: pop %esi
0x406021a8 <memcpy+56>: pop %edi
0x406021a9 <memcpy+57>: leave
0x406021aa <memcpy+58>: ret
0x406021ab <memcpy+59>: nop
0x406021ac <memcpy+60>: lea 0x0(%esi,1),%esi
0x406021b0 <memcpy+64>: push %ebp
0x406021b1 <memcpy+65>: mov %esp,%ebp
0x406021b3 <memcpy+67>: push %edi
0x406021b4 <memcpy+68>: push %esi
0x406021b5 <memcpy+69>: push %ebx
0x406021b6 <memcpy+70>: call 0x406021bb <memcpy+75>
End of assembler dump.
--
Gabucino
MPlayer Core Team
"not sure how we will proceed here - xine's potential in the video
processing field is imho so great that i certainly don't want to miss
the chance to work into that direction." - Guenter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030125/b87f4326/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list