I'm not quite sure if this is a problem with X, Xv, my hardware,
avifile, or me.. but I thought I'd ask here and see if anyone else has
had any similar problems. My issue is this: When playing some (not all)
DivX files using a YUV overlay X crashes after about 1 or 2 seconds of
video playback. It appears that the files that cause this are
widescreen videos. If I disable using the YUV overlay it plays fine,
albeit "jerky" in fullscreen. I'd really like to be able to use
acceleration for all of these files so, I come to you.
Here is a log of what aviplay tells me for a file that it crashes on:
-----*****-----
fs seg 0x40aea000
Available CPU flags: fpu vme de pse tsc msr mce cx8 pge mmx syscall
3dnow k6_mtrr
451.047000 MHz AMD-K6(tm) 3D+ Processor processor detected
MainAVIHeader: MicroSecPerFrame=41708 MaxBytesPerSec=0
PaddingGranularity=0 Flags=[ HAS_INDEX IS_INTERLEAVED ]
TotalFrames=118005
InitialFrames=0 Streams=2 SuggestedBufferSize=0 WxH=512x288
AVIStreamHeader: FccType=vids FccHandler=div3 Flags=[ ]
InitialFrames=0 Scale=1000 Rate=23976 Start=0 Length=118005
SuggestedBufferSize=85769 Quality=10000 SampleSize=0 Rect
l,r,t,b=0,512,0,288
AVIStreamHeader: FccType=auds FccHandler=0x0 Flags=[ ]
InitialFrames=1 Scale=1 Rate=11982 Start=0 Length=58972643
SuggestedBufferSize=59334 Quality=-1 SampleSize=1 Rect l,r,t,b=0,0,0,0
Stream 0: 0x73646976 (vids) : 0x33766964 (div3) 118005 chunks (1843.83KB)
Cache: Adding stream 0, 118005 chunks
Stream 1: 0x73647561 (auds) : 0x0 (unknown?) 117886 chunks (1841.97KB)
Cache: Adding stream 1, 117886 chunks
Cache: Creating cache for file descriptor: 7
Initialized stream 0 (Chunk table size 118005, format size 40)
Initialized stream 0 (Chunk table size 58972643, format size 30)
Successfully opened Ghost In The Shell.DivX.SD.avi
/usr/local/lib/avifile0.6/libwin32.so: found A: 13 V: 46 plugins
/usr/local/lib/avifile0.6/libmpeg_audiodec.so: found A: 1 V: 0 plugin
/usr/local/lib/avifile0.6/libmp3lame_audioenc.so: found A: 1 V: 0 plugin
/usr/local/lib/avifile0.6/libmjpeg.so: found A: 0 V: 1 plugin
/usr/local/lib/avifile0.6/libmad_audiodec.so: found A: 1 V: 0 plugin
/usr/local/lib/avifile0.6/libffmpeg.so: found A: 2 V: 5 plugins
/usr/local/lib/avifile0.6/libdivx4.so: found A: 0 V: 2 plugins
/usr/local/lib/avifile0.6/libaudiodec.so: found A: 5 V: 0 plugins
/usr/local/lib/avifile0.6/libac3pass.so: found A: 1 V: 0 plugin
Using DirectShow codec: divx_c32.ax
Decoder is capable of YUV output ( flags 0x9 )
DivX ;-) DirectShow video decoder created
Trying audio renderers: SDL,OSS,noaudio
Stream MPEG header VBR:0 Layer:3 SampleRate:44100 Bitrate:96000
SamplesPerFrame:1152 NumChannels:2 StereoMode:1 Offset:40
Audio in MPEG Layer-1/2 format
MPEG Layer-3 audio decoder created
src [wFormatTag=0x55, nChannels=2, nSamplesPerSec=44100,
nAvgBytesPerSec=11982, nBlockAlign=313, wBitsPerSample=16, cbSize=12]
dst [wFormatTag=0x01, nChannels=2, nSamplesPerSec=44100,
nAvgBytesPerSec=176400, nBlockAlign=4, wBitsPerSample=16, cbSize=0]
Video decoder thread lowered priority to 5
SDL Video driver: x11
Creating YUV overlay 512x288, fourcc 0x32595559 (YUY2)
Loading subfont: "adobe-times"
Failed to open X11 font
Direct mode is enabled
Player started
aviplay: Fatal IO error: client killed
aviplay: Fatal IO error: client killed
-----*****-----
at this point X itself crashes - here is the X server log minus resource
ranges/pci scan/etc (to tell you what kind of hardware I have, etc)
-----*****-----
XFree86 Version 4.1.0 / X Window System
(protocol Version 11, revision 0, vendor release 6510)
Release Date: 2 June 2001
If the server is older than 6-12 months, or if your card is
newer than the above date, look for a newer version before
reporting problems. (See http://www.XFree86.Org/FAQ)
Build Operating System: Linux 2.4.10 i586 [ELF]
Module Loader present
(==) Log file: "/var/log/XFree86.0.log", Time: Wed Dec 26 20:00:34 2001
(==) Using config file: "/etc/X11/XF86Config"
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) ServerLayout "NyteX"
(**) |-->Screen "Screen 1" (0)
(**) | |-->Monitor "NyteMon"
(**) | |-->Device "3dfx Voodoo 3 3500 TV"
(**) |-->Input Device "Mouse1"
(**) |-->Input Device "Keyboard1"
(**) Option "Protocol" "Standard"
(**) Option "AutoRepeat" "500 30"
(**) Option "XLeds" "1 2 3"
(**) Option "XkbRules" "xfree86"
(**) XKB: rules: "xfree86"
(**) Option "XkbModel" "pc104"
(**) XKB: model: "pc104"
(**) Option "XkbLayout" "us"
(**) XKB: layout: "us"
(==) Keyboard: CustomKeycode disabled
(**) FontPath set to
"/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/,/usr/X11R6/lib/X11/fonts/freefont/,/usr/X11R6/lib/X11/fonts/sharefont/,/usr/X11R6/lib/X11/fonts/ttf/,/usr/X11R6/lib/X11/fonts/gs-std/"
(**) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(**) ModulePath set to "/usr/X11R6/lib/modules"
(--) using VT number 7
(II) Open APM successful
(II) Module ABI versions:
XFree86 ANSI C Emulation: 0.1
XFree86 Video Driver: 0.4
XFree86 XInput driver : 0.2
XFree86 Server Extension : 0.1
XFree86 Font Renderer : 0.2
(II) Loader running on linux
(II) LoadModule: "bitmap"
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Module bitmap: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
Module class: XFree86 Font Renderer
ABI class: XFree86 Font Renderer, version 0.2
(II) Loading font Bitmap
(II) LoadModule: "xie"
(II) Loading /usr/X11R6/lib/modules/extensions/libxie.a
(II) Module xie: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
Module class: XFree86 Server Extension
ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension XIE
(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.a
(II) Module glx: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.1
(II) Loading sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /usr/X11R6/lib/modules/extensions/libGLcore.a
(II) Module GLcore: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension GLX
(II) LoadModule: "dbe"
(II) Loading /usr/X11R6/lib/modules/extensions/libdbe.a
(II) Module dbe: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
Module class: XFree86 Server Extension
ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "record"
(II) Loading /usr/X11R6/lib/modules/extensions/librecord.a
(II) Module record: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.13.0
Module class: XFree86 Server Extension
ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension RECORD
(II) LoadModule: "GLcore"
(II) Reloading /usr/X11R6/lib/modules/extensions/libGLcore.a
(II) LoadModule: "dri"
(II) Loading /usr/X11R6/lib/modules/extensions/libdri.a
(II) Module dri: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.1
(II) Loading sub module "drm"
(II) LoadModule: "drm"
(II) Loading /usr/X11R6/lib/modules/linux/libdrm.a
(II) Module drm: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension XFree86-DRI
(II) LoadModule: "extmod"
(II) Loading /usr/X11R6/lib/modules/extensions/libextmod.a
(II) Module extmod: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
Module class: XFree86 Server Extension
ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension FontCache
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) LoadModule: "v4l"
(II) Loading /usr/X11R6/lib/modules/drivers/linux/v4l_drv.o
(II) Module v4l: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 0.0.1
ABI class: XFree86 Video Driver, version 0.4
(II) LoadModule: "type1"
(II) Loading /usr/X11R6/lib/modules/fonts/libtype1.a
(II) Module type1: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
Module class: XFree86 Font Renderer
ABI class: XFree86 Font Renderer, version 0.2
(II) Loading font Type1
(II) Loading font CID
(II) LoadModule: "speedo"
(II) Loading /usr/X11R6/lib/modules/fonts/libspeedo.a
(II) Module speedo: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
Module class: XFree86 Font Renderer
ABI class: XFree86 Font Renderer, version 0.2
(II) Loading font Speedo
(II) LoadModule: "xtt"
(II) Loading /usr/X11R6/lib/modules/fonts/libxtt.a
(II) Module xtt: vendor="X-TrueType Server Project"
compiled for 4.1.0, module version = 1.3.0
Module class: XFree86 Font Renderer
ABI class: XFree86 Font Renderer, version 0.2
(II) Loading font xtt
(II) LoadModule: "tdfx"
(II) Loading /usr/X11R6/lib/modules/drivers/tdfx_drv.o
(II) Module tdfx: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
Module class: XFree86 Video Driver
ABI class: XFree86 Video Driver, version 0.4
(II) LoadModule: "mouse"
(II) Loading /usr/X11R6/lib/modules/input/mouse_drv.o
(II) Module mouse: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
Module class: XFree86 XInput Driver
ABI class: XFree86 XInput driver, version 0.2
(II) v4l driver for Video4Linux
(II) TDFX: Driver for 3dfx Banshee/Voodoo3 chipsets: 3dfx Banshee,
3dfx Voodoo3, 3dfx Voodoo5
(II) Primary Device is: PCI 01:00:0
(--) Assigning device section with no busID to primary device
(--) Chipset 3dfx Voodoo3 found
(II) Setting vga for screen 0.
(II) Loading sub module "vgahw"
(II) LoadModule: "vgahw"
(II) Loading /usr/X11R6/lib/modules/libvgahw.a
(II) Module vgahw: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 0.1.0
ABI class: XFree86 Video Driver, version 0.4
(II) Loading sub module "int10"
(II) LoadModule: "int10"
(II) Loading /usr/X11R6/lib/modules/linux/libint10.a
(II) Module int10: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
ABI class: XFree86 Video Driver, version 0.4
(II) TDFX(0): Softbooting the board (through the int10 interface).
(II) TDFX(0): Primary V_BIOS segment is: 0xc000
(II) TDFX(0): Softbooting the board succeeded.
(**) TDFX(0): Depth 16, (--) framebuffer bpp 16
(==) TDFX(0): RGB weight 565
(==) TDFX(0): Default visual is TrueColor
(**) TDFX(0): Option "SWcursor"
(--) TDFX(0): Chipset: "3dfx Voodoo3"
(--) TDFX(0): Linear framebuffer at 0xE8000000
(--) TDFX(0): MMIO registers at addr 0xE4000000
(--) TDFX(0): PIO registers at addr 0x9000
(**) TDFX(0): VideoRAM: 15784 kByte Mapping 31568 kByte
(==) TDFX(0): Using gamma correction (1.0, 1.0, 1.0)
(II) TDFX(0): NyteMon: Using hsync range of 31.50-50.00 kHz
(II) TDFX(0): NyteMon: Using vrefresh range of 50.00-90.00 Hz
(II) TDFX(0): Clock range: 12.00 to 300.00 MHz
(==) TDFX(0): DPI set to (75, 75)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/X11R6/lib/modules/libfb.a
(II) Module fb: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
ABI class: XFree86 ANSI C Emulation, version 0.1
(II) Loading sub module "xaa"
(II) LoadModule: "xaa"
(II) Loading /usr/X11R6/lib/modules/libxaa.a
(II) Module xaa: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
ABI class: XFree86 Video Driver, version 0.4
(**) TDFX(0): ShowCache Disabled
(**) TDFX(0): video key default 0x1e
(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Loading /usr/X11R6/lib/modules/libddc.a
(II) Module ddc: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
ABI class: XFree86 Video Driver, version 0.4
(II) Loading sub module "vbe"
(II) LoadModule: "vbe"
(II) Loading /usr/X11R6/lib/modules/libvbe.a
(II) Module vbe: vendor="The XFree86 Project"
compiled for 4.1.0, module version = 1.0.0
ABI class: XFree86 Video Driver, version 0.4
(II) Loading sub module "int10"
(II) LoadModule: "int10"
(II) Reloading /usr/X11R6/lib/modules/linux/libint10.a
(II) TDFX(0): initializing int10
(II) TDFX(0): Primary V_BIOS segment is: 0xc000
(II) TDFX(0): VESA BIOS detected
(II) TDFX(0): VESA VBE Version 3.0
(II) TDFX(0): VESA VBE Total Mem: 16384 kB
(II) TDFX(0): VESA VBE OEM: 3dfx Interactive, Inc.
(II) TDFX(0): VESA VBE OEM Software Rev: 2.1
(II) TDFX(0): VESA VBE OEM Vendor: 3dfx Interactive, Inc.
(II) TDFX(0): VESA VBE OEM Product: Voodoo3 3500 TV
(II) TDFX(0): VESA VBE OEM Product Rev: 210-0371-00X
(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Reloading /usr/X11R6/lib/modules/libddc.a
(II) TDFX(0): VESA VBE DDC supported
(II) TDFX(0): VESA VBE DDC Level 2
(II) TDFX(0): VESA VBE DDC transfer in appr. 8 sec.
(II) TDFX(0): VESA VBE DDC read failed
(II) do I need RAC? No, I don't.
(II) TDFX(0): WC region has to be split (0xe8000000,0x1ed4000)
(==) TDFX(0): Write-combining range (0xe8000000,0x1000000)
(==) TDFX(0): Write-combining range (0xe9000000,0x800000)
(WW) TDFX(0): Failed to set up write-combining range (0xe9800000,0x400000)
(WW) TDFX(0): Failed to set up write-combining range (0xe9c00000,0x200000)
(WW) TDFX(0): Failed to set up write-combining range (0xe9e00000,0x80000)
(WW) TDFX(0): Failed to set up write-combining range (0xe9e80000,0x40000)
(WW) TDFX(0): Failed to set up write-combining range (0xe9ec0000,0x10000)
(WW) TDFX(0): Failed to set up write-combining range (0xe9ed0000,0x4000)
(II) TDFX(0): Changing back offset from 0x00c69000 to 0x00c68000
(II) TDFX(0): Textures Memory 9.25 MB
(II) TDFX(0): Cursor Offset: [0x00000000,0x00001000)
(II) TDFX(0): Fifo Offset: [0x00001000, 0x00100000)
(II) TDFX(0): Front Buffer Offset: [0x00100000, 0x00329000)
(II) TDFX(0): Texture Offset: [0x00329000, 0x00C68000)
(II) TDFX(0): BackOffset: [0x00C68000, 0x00DE8000)
(II) TDFX(0): DepthOffset: [0x00DE9000, 0x00F69000)
(II) TDFX(0): 1279 lines of offscreen memory available for 2D and video
(II) TDFX(0): [drm] created "tdfx" driver at busid "PCI:1:0:0"
(II) TDFX(0): [drm] added 4096 byte SAREA at 0xc8959000
(II) TDFX(0): [drm] mapped SAREA 0xc8959000 to 0x44068000
(II) TDFX(0): [drm] framebuffer handle = 0xe8000000
(II) TDFX(0): [drm] added 1 reserved context for kernel
(II) TDFX(0): [drm] Registers = 0xe4000000
(II) TDFX(0): visual configs initialized
(II) TDFX(0): Using XFree86 Acceleration Architecture (XAA)
Screen to screen bit blits
Solid filled rectangles
8x8 mono pattern filled rectangles
Indirect CPU to Screen color expansion
Solid Lines
Dashed Lines
Offscreen Pixmaps
Driver provided NonTEGlyphRenderer replacement
Setting up tile and stipple cache:
32 128x128 slots
10 256x256 slots
(==) TDFX(0): Backing store disabled
(==) TDFX(0): Silken mouse enabled
(II) TDFX(0): X context handle = 0x00000003
(II) TDFX(0): [drm] installed DRM signal handler
(II) TDFX(0): [DRI] installation complete
(==) TDFX(0): Direct rendering enabled
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension LBX
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
(**) Option "Protocol" "ps/2"
(**) Mouse1: Protocol: "ps/2"
(**) Option "CorePointer"
(**) Mouse1: Core Pointer
(**) Option "Device" "/dev/misc/psaux"
(==) Mouse1: Buttons: 3
(**) Option "ZAxisMapping" "4 5"
(**) Mouse1: ZAxisMapping: buttons 4 and 5
(II) Keyboard "Keyboard1" handled by legacy driver
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
SetKbdSettings - type: 0 rate: 255 delay: 700 snumlk: 0
SetKbdSettings - Succeeded
GetModeLine - scrn: 0 clock: 64980
GetModeLine - hdsp: 1024 hbeg: 1032 hend: 1176 httl: 1344
vdsp: 768 vbeg: 771 vend: 777 vttl: 806 flags: 10
GetModeLine - scrn: 0 clock: 64980
GetModeLine - hdsp: 1024 hbeg: 1032 hend: 1176 httl: 1344
vdsp: 768 vbeg: 771 vend: 777 vttl: 806 flags: 10
Fatal server error:
Caught signal 11. Server aborting
-----*****-----
Any comments/suggestions/information would be most appreciated.
Thanks,
George
nyte at interfold dot com
_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile