On Mon, May 21, 2001 at 05:36:45PM +0200, Zdenek Kabelac wrote:
> On Mon, May 21, 2001 at 05:21:30PM +0200, Tomasz Luchowski wrote:
> > 
> > thanks, great code! I didn't realize it can help me, but it did.
> > now my audio breaks only like 5 times per minute, comparing
> > to every 5 seconds before.
> 
> What is your hardware configuration ?
> (CPU, graphics card, sound card ??)
> 
> Are you using CVS avifile-0.6 version ?
here goes the story:

I have Celeron 466 on Abit BE6-II; OS is NetBSD 1.5.1_BETA as of May 6 2001.
Sound blaster 128 PCI (eap0) and RIVA TNT2 M64.
I'm running recent avifile from cvs (home-made avifile-0.6.20010521.tar.bz2 tarball).

Everything works nice, but every 10-15 seconds there's no audio for say half of second.

Unfortunatelly aviplay hangs after I start it, so I'm using "apla" player written by
Witold J. Wnuk <[EMAIL PROTECTED]>.
Apla is available at http://zuntum.net/distfiles/apla-0.9.tar.gz
and has only been tested on NetBSD thus far (can you please test it on other OSes 
please?)
aviplay is way more functional than current version of apla, but apla at least works 
on my OS.
(then I refer to "my OS", I mean NetBSD of course :) I believe that threads problems 
disallow
aviplay to work (NetBSD doesn't handle preemptive threads properly).

I attached dmesg output, aviplay output and Makefile which I use to compile 
avifile-devel
via pkgsrc (NetBSD packages system)

-- 
/* [zuntum] [EMAIL PROTECTED] , [WWW] http://zuntum.net */
zuntum@zunpc:~> aviplay /main/divx/Romeo_Must_Die.avi
Available CPU flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov fgpat 
pse36 mmx fxsr
467.75 MHz Intel Celeron (Mendocino) (686-class) processor detected
libwin32.so.0: found 26 plugins
libmpeg_audiodec.so.0: found 1 plugin
libmp3lame_audioenc.so.0: found 1 plugin
libaudiodec.so.0: found 4 plugins
Set_LDT
Stream 0: 73646976:34766964, 160128 chunks
Cache: Adding stream 0, 160128 chunks
Stream 1: 73647561:0, 13355 chunks
Cache: Adding stream 1, 13355 chunks
Cache:   Creating cache for file descriptor: 8
Successfully initialized stream 0
Chunk table size 160128, format size 40
Successfully initialized stream 1
Chunk table size 106592896, format size 30
Successfully opened /main/divx/Romeo_Must_Die.avi. 1 video streams, 1 audio streams
Length 160128
File /main/divx/Romeo_Must_Die.avi successfully opened
2 streams
Audio in MPEG Layer-1/2 format 
src [wFormatTag=85, nChannels=2, nSamplesPerSec=44100, nAvgBytesPerSec=15963, 
nBlockAlign=1, wBitsPerSample=16, cbSize=12]
dst [wFormatTag=1, nChannels=2, nSamplesPerSec=44100, nAvgBytesPerSec=176400, 
nBlockAlign=4, wBitsPerSample=16, cbSize=0]
Subtitles: read 940 lines
Initializing registry
Using DirectShow codec: /usr/pkg/lib/win32/divx_c32.ax
Decoder is capable of YUV output ( flags 0x1 )
Video Depth 16
Loading subtitle font: ""
Failed to load font
DPMS suppport not compiled
Creating YUV overlay for width 640, height 304, fourcc 0x32595559
Fullscreen renderer: FATAL: No hardware acceleration detected! at renderer.cpp:1496
Loading subtitle font: "" 
Failed to load font
DPMS suppport not compiled
Player started 
QFont::setRawMode(): Invalid XLFD: ""
NetBSD 1.5.1_BETA (ZUNPC) #0: Sun May  6 14:37:47 CEST 2001
    zuntum@zunpc:/usr/cvs/src/sys/arch/i386/compile/ZUNPC
cpu0: Intel Celeron (Mendocino) (686-class), 467.75 MHz
total memory = 65088 KB
avail memory = 58052 KB
using 839 buffers containing 3356 KB of memory
BIOS32 rev. 0 found at 0xfb370
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX Host Bridge/Controller (rev. 0x03)
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Nvidia Corporation RIVA TNT2 Model 64 (rev. 0x11)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
atapibus0 at pciide0 channel 0
cd0 at atapibus0 drive 0: <ASUS CD-S400, , V1.20> type 5 cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: primary channel interrupting at irq 14
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
pciide0: disabling secondary channel (no drives)
Intel 82371AB USB Host Controller (PIIX4) (USB serial bus, revision 0x01) at pci0 dev 
7 function 2 not configured
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 
0x02) at pci0 dev 7 function 3 not configured
ne0 at pci0 dev 13 function 0: RealTek 8029 Ethernet
ne0: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x30] auto
ne0: Ethernet address 00:c0:df:ed:b8:ad 
ne0: interrupting at irq 11
eap0 at pci0 dev 15 function 0: Ensoniq AudioPCI 97 (rev. 0x08)
eap0: interrupting at irq 10
eap0: Crystal CS4297A codec; headphone, 20 bit DAC, 18 bit ADC, Spatializer 3D
audio0 at eap0: full duplex, mmap, independent
midi0 at eap0: AudioPCI MIDI UART
pciide1 at pci0 dev 19 function 0: Triones/Highpoint HPT366/370 IDE Controller (rev. 
0x01)
pciide1: bus-master DMA support present
pciide1: primary channel wired to native-PCI mode
pciide1: using irq 11 for native-PCI interrupt 
wd0 at pciide1 channel 0 drive 0: <ST330630A>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 29188 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 59777640 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 4 (using DMA data transfers)
pciide2 at pci0 dev 19 function 1: Triones/Highpoint HPT366/370 IDE Controller (rev. 
0x01)
pciide2: bus-master DMA support present
pciide2: primary channel wired to native-PCI mode
pciide2: using irq 11 for native-PCI interrupt
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0 
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16 
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec 
isapnp0: no ISA Plug 'n Play devices found
biomask eb65 netmask eb65 ttymask fbe7
boot device: wd0 
root on wd0a dumps on wd0b
root file system type: ffs
XFree86 aperture driver version 2.0 
Pentium Pro MTRR support enabled 
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation) 
wsmux1: connecting to wsdisplay0
IP Filter: v3.4.9 initialized.  Default = pass all, Logging = enabled

# $NetBSD$
#

DISTNAME=       avifile-0.6.20010521
CATEGORIES=     graphics
MASTER_SITES=   http://flis.utech.lublin.pl/~zuntum/distfiles/          \
                http://zuntum.net/distfiles/
EXTRACT_SUFX=   .tar.bz2

MAINTAINER=     [EMAIL PROTECTED],[EMAIL PROTECTED]
HOMEPAGE=       http://divx.euro.ru/
COMMENT=        MPEG-4 (DivX) video player library

DEPENDS+=       win32-codecs>=010122:../../graphics/win32-codecs
DEPENDS+=       SDL>=1.1.2:../../devel/SDL
DEPENDS+=       pth>=1.3.7:../../devel/pth
DEPENDS+=       automake-*:../../devel/automake

SDL_CONFIG?=    ${LOCALBASE}/bin/sdl-config

# it's dirty to hardcode /usr/X11R6, but I can't get X11PREFIX working for now.
# will fix that later
.if exists(/usr/X11R6/qt2/lib/libqt.so)
WITH_QT?=       YES
.else
WITH_QT?=       NO
.endif

.if defined (WITH_QT) && ${WITH_QT} == YES
DEPENDS+=       qt2-libs>=2.1.0:../../x11/qt2-libs
PLIST_SUBST+=   QT=''
.else
PLIST_SUBST+=   QT='@comment '
.endif

WRKSRC=         ${WRKDIR}/avifile-0.6

ONLY_FOR_PLATFORM= NetBSD-*-i386
USE_XLIB=       yes
USE_GMAKE=      yes
USE_AUTOCONF=   yes
USE_LIBTOOL=    yes
LTCONFIG_OVERRIDE=      ${WRKSRC}/ltconfig

GNU_CONFIGURE=  yes

CONFIGURE_ENV+= SDL_CONFIG="${SDL_CONFIG}"                              \
                CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include"  \
                CXXFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include"  \
                LIBS="-L${X11BASE}/lib -Wl,-R${X11BASE}/lib             \
                -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib"

CONFIGURE_ARGS+=--with-win32-path=${LOCALBASE}/lib/win32                \
                --enable-sdl                                            \
                --enable-release                                        \
                --disable-dpms

.if defined (WITH_QT) && ${WITH_QT} == YES
CONFIGURE_ARGS+=--enable-qt                                             \
                --with-qt-dir=${X11BASE}/qt2                            \
                --with-qt-includes=${X11BASE}/qt2/include               \
                --with-qt-libraries=${X11BASE}/qt2/lib

MOC?=           ${X11BASE}/qt2/bin/moc
UIC?=           ${X11BASE}/qt2/bin/uic

CONFIGURE_ENV+= MOC="${MOC}"                                            \
                UIC="${UIC}"                                            \
                LIBS+="-L${X11BASE}/qt2/lib -Wl,-R${X11BASE}/qt2/lib"
.endif

pre-configure:
        cd ${WRKSRC} && ${SH} autogen.sh

.include "../../mk/bsd.pkg.mk"

Reply via email to