[MPlayer-advusers] BUG: vidix is broken in r22963

Andrew Savchenko Bircoph at list.ru
Tue Apr 10 10:39:58 CEST 2007


Hi,

In recent 22963 revision vidix is broken on nVidia card, mplayer 
segfaults with signal 11 in preinit_libvo when trying to use vidix 
video output. Crash occurs likewise for both xvidix and cvidix, so 
only xvidix case is described below. I use internal vidix.

Here is the mplayer's output:
******************************************************
# ./mplayer -vo xvidix 
-v /home/collaborative/video/anime/slayers/serial\ 
slayers/The_Slayers-ep_14.rm -sub slayers\ tv14.srt -subdelay 
154.0 -vc rv20
MPlayer dev-SVN-r22963-4.0.2 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) XP 3200+ (Family: 6, Model: 10, Stepping: 0)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
get_path('codecs.conf') -> '/root/.mplayer/codecs.conf'
Reading /root/.mplayer/codecs.conf: Can't open 
'/root/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: This codecs.conf is too 
old and incompatible with this MPlayer release! at line 6
Using built-in default codecs.conf.
Configuration: --language=en --enable-menu --enable-xmms 
--enable-largefiles --enable-fbdev --disable-tv --disable-dvbhead 
--disable-lirc --enable-debug=3
CommandLine: '-vo' 'xvidix' '-v' 
'/home/collaborative/video/anime/slayers/serial 
slayers/The_Slayers-ep_14.rm' '-sub' 'slayers tv14.srt' 
'-subdelay' '154.0' '-vc' 'rv20'
init_freetype
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/root/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/root/.mplayer/input.conf'
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
get_path('The_Slayers-ep_14.rm.conf') -> 
'/root/.mplayer/The_Slayers-ep_14.rm.conf'

Playing /home/collaborative/video/anime/slayers/serial 
slayers/The_Slayers-ep_14.rm.
get_path('sub/') -> '/root/.mplayer/sub/'
[file] File size is 42338576 bytes
STREAM: [file] /home/collaborative/video/anime/slayers/serial 
slayers/The_Slayers-ep_14.rm
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
REAL file format detected.
real: Header size: 18
real: Header object version: 1
real: File version: 0
Chunk: PROP (504f5250) (size: 0x32, offset: 0x12)
First index chunk offset: 0x285b646
First data chunk offset: 0x18e
Flags (b): [save allowed] [perfect play (more buffers)]
Chunk: MDPR (5250444d) (size: 0xa4, offset: 0x44)
Found new stream (id: 0)
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
==> Found audio stream: 0
[real] Audio stream found, -aid 0
Found audio stream!
version: 5
 00 00
 2E 72 61 35
 00 00 00 00
 00 05
header size: 70
coded_frame_size: 558
 00 44 1D 80
 00 03 AA B7
 00 03 AA B7
sub_packet_h: 16
frame_size: 558
sub_packet_size: 93
 00 00
 00 00 56 22 00 00
 00 00
samplerate: 22050, channels: 1
 01 07 00
 00
audio fourcc: cook (6b6f6f63)
======= WAVE Format =======
Format Tag: 28515 (0x6F63)
Channels: 1
Samplerate: 22050
avg byte/sec: 4014
Block align: 93
bits/sample: 16
cbSize: 8
Unknown extra header dump: [1] [0] [0] [2] [2] [0] [0] [18]
==========================================================================
### skipping 0 bytes of codec info
Chunk: MDPR (5250444d) (size: 0x70, offset: 0xe8)
Found new stream (id: 1)
Stream description: Video Stream
Stream mimetype: video/x-pn-realvideo
==> Found video stream: 1
[real] Video stream found, -vid 1
video fourcc: RV20 (30325652)
### skipping 0 bytes of codec info
Chunk: CONT (544e4f43) (size: 0x2c, offset: 0x158)
Chunk: DATA (41544144) (size: 0x285b4c2, offset: 0x184)
Packets in file: 75454
Reading index table from index chunk (42317382)
size: 7020 bytes
entries: 500
stream_id: 0
next_header_pos: 42324402
Reading index table from index chunk (42324402)
size: 20 bytes
entries: 1011
stream_id: 1
next_header_pos: 0
Auto-selected RM audio ID = 0
Auto-selected RM video ID = 1
VIDEO:  RV20 [01001020,38880000]  320x240  (aspect 0.00)  30.00 fps
AUDIO:  cook [6B6F6F63]
VIDEO:  [RV20]  320x240  24bpp  30.000 fps    0.0 kbps ( 0.0 
kbyte/s)
[V] filefmt:11  fourcc:0x30325652  size:320x240  fps:30.00  
ftime:=0.0333
Clip info:
 name: Slayers Episode 14
 author: Lost
 copyright: 1999
File not found: 'slayers tv14.srt'
Failed to open slayers tv14.srt.
Cannot load subtitles: slayers tv14.srt
get_path('sub/') -> '/root/.mplayer/sub/'
No vidix driver name provided, probing available ones (-v option 
for details)!
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => 
local display)
[x11] Detected wm supports layers.
[x11] Using workaround for Metacity bugs.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports FULLSCREEN state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
vidixlib: PROBING: cyberblade
[cyberblade] Can't find chip
vidixlib: PROBING: mach64
[mach64] Can't find chip
vidixlib: PROBING: mga
[mga] probe
[mga] found 18 pci devices
[mga] Can't find chip
vidixlib: PROBING: mga_crtc2
[mga] probe
[mga] found 18 pci devices
[mga] Can't find chip
vidixlib: PROBING: nvidia
[nvidia_vid] Found chip: nForce2 AGP (different version?)
[nvidia_vid] Device is disabled, ignoring
[nvidia_vid] Found chip: nForce2 AGP
vidixlib: nvidia probed o'k
vidixlib: will use nvidia driver
vidixlib: Attempt to initialize driver at: 0x8122c80
[nvidia_vid] arch 10 register base 0xffffffff


MPlayer interrupted by signal 11 in module: preinit_libvo
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace 
and
  disassembly. Details in 
DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in 
your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. 
We can't and
  won't help unless you provide this information when reporting a 
possible bug.
vo: uninit ...
******************************************************

It is backtrace:
******************************************************
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208252736 (LWP 2058)]
0x08122d71 in nv_init () at nvidia_vid.c:487
487             return VID_RD32 (chip->PFB, 0x20C) & 0xFFF00000;
(gdb) bt
#0  0x08122d71 in nv_init () at nvidia_vid.c:487
#1  0x0811f494 in vdlOpen (path=0x867b150 
"/usr/local/lib/mplayer/vidix/", name=0x0, cap=0,
    verbose=1) at vidixlib.c:67
#2  0x0811543c in vidix_preinit (drvname=0x0, server=0x8862fa0) at 
vosub_vidix.c:720
#3  0x08113b25 in preinit (arg=0x0) at vo_xvidix.c:488
#4  0x080e5481 in init_best_video_out (vo_list=0x8a7b030) at 
video_out.c:305
#5  0x080b9af4 in reinit_video_chain () at mplayer.c:1897
#6  0x080bb5f7 in main (argc=11, argv=0xbff338f4) at mplayer.c:3217
******************************************************

With r22701 everything is fine, here is it's output for comparision 
(some messages are in russian, but you got the point):
******************************************************
# mplayer -vo xvidix 
-v /home/collaborative/video/anime/slayers/serial\ 
slayers/The_Slayers-ep_14.rm -sub slayers\ tv14.srt -subdelay 
154.0 -vc rv20
MPlayer dev-SVN-r22701-4.0.2 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) XP 3200+ (Family: 6, Model: 10, Stepping: 0)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Скомпилировано для x86 CPU со следующими расширениями: MMX MMX2 
3DNow 3DNowEx SSE
get_path('codecs.conf') -> '/root/.mplayer/codecs.conf'
Читаю '/root/.mplayer/codecs.conf': Не могу открыть 
'/root/.mplayer/codecs.conf': No such file or directory
Читаю '/etc/mplayer/codecs.conf': 108 аудио & 227 видео кодеков
Configuration: --bindir=/usr/bin --datadir=/usr/share 
--libdir=/usr/lib --mandir=/usr/share/man --confdir=/etc/mplayer 
--language=ru,en --enable-menu --enable-xmms --enable-largefiles 
--enable-fbdev --disable-tv --disable-dvbhead --disable-lirc
Командная строка: '-vo' 'xvidix' '-v' 
'/home/collaborative/video/anime/slayers/serial 
slayers/The_Slayers-ep_14.rm' '-sub' 'slayers tv14.srt' 
'-subdelay' '154.0' '-vc' 'rv20'
init_freetype
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/share/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/root/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/root/.mplayer/input.conf'
Can't open input config file /root/.mplayer/input.conf: No such 
file or directory
Can't open input config file /etc/mplayer/input.conf: No such file 
or directory
Falling back on default (hardcoded) input config
get_path('The_Slayers-ep_14.rm.conf') -> 
'/root/.mplayer/The_Slayers-ep_14.rm.conf'

Воспроизведение /home/collaborative/video/anime/slayers/serial 
slayers/The_Slayers-ep_14.rm.
get_path('sub/') -> '/root/.mplayer/sub/'
[file] File size is 42338576 bytes
STREAM: [file] /home/collaborative/video/anime/slayers/serial 
slayers/The_Slayers-ep_14.rm
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Обнаружен REAL формат файла!
real: Header size: 18
real: Header object version: 1
real: File version: 0
Chunk: PROP (504f5250) (size: 0x32, offset: 0x12)
First index chunk offset: 0x285b646
First data chunk offset: 0x18e
Flags (b): [save allowed] [perfect play (more buffers)]
Chunk: MDPR (5250444d) (size: 0xa4, offset: 0x44)
Found new stream (id: 0)
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
==> Нашёл аудиопоток: 0
[real] Audio stream found, -aid 0
Found audio stream!
version: 5
header size: 70
coded_frame_size: 558
sub_packet_h: 16
frame_size: 558
sub_packet_size: 93
samplerate: 22050, channels: 1
audio fourcc: cook (6b6f6f63)
======= WAVE Format =======
Format Tag: 28515 (0x6F63)
Channels: 1
Samplerate: 22050
avg byte/sec: 4014
Block align: 93
bits/sample: 16
cbSize: 8
Unknown extra header dump: [1] [0] [0] [2] [2] [0] [0] [18]
==========================================================================
### skipping 0 bytes of codec info
Chunk: MDPR (5250444d) (size: 0x70, offset: 0xe8)
Found new stream (id: 1)
Stream description: Video Stream
Stream mimetype: video/x-pn-realvideo
==> Нашёл видеопоток: 1
[real] Video stream found, -vid 1
video fourcc: RV20 (30325652)
### skipping 0 bytes of codec info
Chunk: CONT (544e4f43) (size: 0x2c, offset: 0x158)
Chunk: DATA (41544144) (size: 0x285b4c2, offset: 0x184)
Packets in file: 75454
Reading index table from index chunk (42317382)
size: 7020 bytes
entries: 500
stream_id: 0
next_header_pos: 42324402
Reading index table from index chunk (42324402)
size: 20 bytes
entries: 1011
stream_id: 1
next_header_pos: 0
Auto-selected RM audio ID = 0
Auto-selected RM video ID = 1
VIDEO:  RV20 [01001020,38880000]  320x240  (aspect 0.00)  30.00 fps
AUDIO:  cook [6B6F6F63]
VIDEO:  [RV20]  320x240  24bpp  30.000 fps    0.0 kbps ( 0.0 
kbyte/s)
[V] filefmt:11  fourcc:0x30325652  size:320x240  fps:30.00  
ftime:=0.0333
Информация о клипе:
 name: Slayers Episode 14
 author: Lost
 copyright: 1999
Файл не найден: 'slayers tv14.srt'
Не могу открыть slayers tv14.srt.
Не могу загрузить субтитры: slayers tv14.srt
get_path('sub/') -> '/root/.mplayer/sub/'
No vidix driver name provided, probing available ones (-v option 
for details)!
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => 
local display)
[x11] Detected wm supports layers.
[x11] Using workaround for Metacity bugs.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports FULLSCREEN state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
vidixlib: PROBING: /usr/lib/mplayer/vidix/mga_vid.so
[mga] probe
[mga] found 18 pci devices
[mga] Can't find chip
vidixlib: PROBING: /usr/lib/mplayer/vidix/nvidia_vid.so
[nvidia_vid] Found chip: NV6 [Vanta]
vidixlib: /usr/lib/mplayer/vidix/nvidia_vid.so probed o'k
vidixlib: will use /usr/lib/mplayer/vidix/nvidia_vid.so driver
vidixlib: Attempt to initialize driver at: 0x8260b0
[nvidia_vid] arch 4 register base 0xb7173000
[nvidia_vid] detected memory size 16 MB
[nvidia_vid] MTRR set up
[nvidia_vid] video mode: 1024x768 at 32
vidixlib: '/usr/lib/mplayer/vidix/nvidia_vid.so'successfully loaded
[VO_SUB_VIDIX] Описание: NVIDIA RIVA OVERLAY DRIVER.
[VO_SUB_VIDIX] Автор: Sascha Sommer <saschasommer at freenet.de>.
==========================================================================
Форсирован видеокодек: rv20
Открываю декодер видео: [realvid] RealVideo decoder
realvideo codec id: 0x20100001  sub-id: 0x00008838
opening shared obj '/usr/lib/codecs/drv2.so.6.0'
INFO: RealVideo codec init OK!
Выбран видеокодек: [rv20] vfm: realvid (Linux RealPlayer 8 RV20 
decoder)
==========================================================================
==========================================================================
Открываю декодер аудио: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Захватываю 192000 + 65536 = 257536 байт(а/ов) для буфера 
вывода.
FFmpeg's libavcodec audio codec
INFO: libavcodec init OK!
AUDIO: 22050 Hz, 1 ch, s16le, 32.1 kbit/9.10% (ratio: 4014->44100)
Выбран аудиокодек: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
==========================================================================
Построение цепочки аудиофильтра для 22050Hz/1ch/s16le -> 
0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 22050Hz/1ch/s16le
[dummy] Was reinitialized: 22050Hz/1ch/s16le
ao2: 22050 Hz  1 chans  s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 1 channels (requested: 1)
audio_setup: using 22050 Hz samplerate (requested: 22050)
audio_setup: frags:   8/8  (4096 bytes/frag)  free:  32768
AO: [oss] 22050Hz 1ch s16le (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Построение цепочки аудиофильтра для 22050Hz/1ch/s16le -> 
22050Hz/1ch/s16le...
[dummy] Was reinitialized: 22050Hz/1ch/s16le
[dummy] Was reinitialized: 22050Hz/1ch/s16le
Начало воcпроизведения...
VDec: запрос vo config - 320 x 240 (предпочтимое цветовое 
пространство: Planar I420)
Trying filter chain: vo
Не могу найти подходящее цветовое пространство - попытаюсь с -vf 
scale...
Открываю видео фильтр: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
VDec: использую Planar I420 в качестве выходного csp (не 0)
Movie-Aspect - 1.33:1 - премасштабирую для коррекции соотношения 
сторон фильма.
VO Config (320x240->320x240,flags=0,'MPlayer',0x30323449)
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 5 -> 4
[swscaler @ 0x88b82e0]SwScaler: BICUBIC scaler, from yuv420p to 
yuyv422 using MMX2
[swscaler @ 0x88b82e0]SwScaler: using 4-tap MMX scaler for 
horizontal luminance scaling
[swscaler @ 0x88b82e0]SwScaler: using 4-tap MMX scaler for 
horizontal chrominance scaling
[swscaler @ 0x88b82e0]SwScaler: using n-tap MMX scaler for vertical 
scaling (BGR)
[swscaler @ 0x88b82e0]SwScaler: 320x240 -> 320x240
REQ: flags=0x437  req=0x0
VO: [xvidix] 320x240 => 320x240 Packed YUY2
VO: Description: X11 (VIDIX)
VO: Author: Alex Beregszaszi
Using colorkey: ff00
[nvidia_vid] set colorkey 0xff00
[xvidix] dcx: 352 dcy: 264 dx: 0 dy: 0 dw: 320 dh: 240
called vixConfigPlayback
[nvidia_vid] setting up a 320x240-352x264 video window (src 
320x240), format 0x32595559
vosub_vidix: using 3 buffer(s)
[xvidix] window properties: pos: 352x264, size: 320x240
*** [scale] Exporting mp_image_t, 320x240x12bpp YUV planar, 115200 
bytes
*** [vo] Allocating mp_image_t, 320x240x16bpp YUV packed, 153600 
bytes
get_path('subfont.ttf') -> '/root/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
[xvidix] dcx: 352 dcy: 264 dx: 0 dy: 0 dw: 320 dh: 240
[xvidix] window properties: pos: 352x264, size: 320x240
Uninit audio filters...-0.008 ct: -0.013  10/ 10 17%  1%  0.3% 0 0
[libaf] Removing filter dummy
деинициализация аудио: ffmpeg
деинициализация видео: realvid
vo: uninit ...

Выходим... (Выход)
******************************************************

Obviously it is regression by recent vidix changes, probably 
conversion to static lib.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-advusers/attachments/20070410/fffcff18/attachment.pgp>


More information about the MPlayer-advusers mailing list