Subject: avifile - divx player
To: None <port-i386@netbsd.org, tech-kern@netbsd.org>
From: Tomasz Luchowski <zuntum@eik.pl>
List: port-i386
Date: 01/28/2001 19:04:18
Hello,

My system is 1.5Q/i386 built week ago.

I'm trying to get avifile working.. Shaded and I started playing with
avifile since 0.51, now  I'm trying 0.6.0-beta3. Some time author added support for FreeBSD
Shaded's patches mostly change "ifdef freebsd" to "ifdef freebsd | netbsd".
After applying these patches avifile compiles, but:


Script started on Sun Jan 28 19:44:05 2001
zuntum@zunpc:/usr/pkgsrc# aviplay /main/divx/Romeo_Must_Die.avi	

libwin32.so.0: found 20 plugins
libmpeg_audiodec.so.0: found 1 plugin
libmp3lame_audioenc.so.0: found 1 plugin
libaudiodec.so.0: found 4 plugins
Set_LDT
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
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]
File /main/divx/Romeo_Must_Die.sub not found
File /main/divx/Romeo_Must_Die.SUB not found
Trying native dll '/usr/pkg/lib/win32/divx_c32.ax'
Dump of segment table
   Name    VSz  Vaddr     SzRaw   Fileadr  *Reloc *Lineum #Reloc #Linum Char
   .text: 24e74 00001000 00025000 00000600 00000000 00000000 0000 0000 60000020
   .data: 35a34 00026000 00012800 00025600 00000000 00000000 0000 0000 c0000040
   .rsrc: 1000 0005c000 00000e00 00037e00 00000000 00000000 0000 0000 40000040
  .reloc: 1c4a 0005d000 00001e00 00038c00 00000000 00000000 0000 0000 42000040
Load addr is 64640000 (base 64640000), range 5ee00
Loading /usr/pkg/lib/win32/divx_c32.ax at 64640000, range 5ee00
/usr/pkg/lib/win32/divx_c32.ax: mmaping section .text at 0x64641000 off 600 size 25000/24e74
/usr/pkg/lib/win32/divx_c32.ax: mmaping section .data at 0x64666000 off 25600 size 12800/35a34
clearing 0x64678800 - 0x64679000
/usr/pkg/lib/win32/divx_c32.ax: mmaping section .rsrc at 0x6469c000 off 37e00 size e00/1000
clearing 0x6469ce00 - 0x6469d000
/usr/pkg/lib/win32/divx_c32.ax: mmaping section .reloc at 0x6469d000 off 38c00 size 1e00/1c4a
Debug directory ignored
Bound Import directory ignored
Import Address Table directory ignored
*******EXPORT DATA*******
Module name is DivX_c32.ax, 4 functions, 4 names
 Ord    RVA     Addr   Name
   1 00005700 0x64645700  DllCanUnloadNow
   2 00005636 0x64645636  DllGetClassObject
   3 0000395c 0x6464395c  DllRegisterServer
   4 00003964 0x64643964  DllUnregisterServer
Dumping imports list
Loading imports for KERNEL32.dll.dll
Microsoft style imports used
Loading imports for USER32.dll.dll
Microsoft style imports used
Loading imports for GDI32.dll.dll
Microsoft style imports used
Loading imports for ADVAPI32.dll.dll
Microsoft style imports used
Loading imports for ole32.dll.dll
Microsoft style imports used
Loading imports for WINMM.dll.dll
Microsoft style imports used
Loading imports for MSVCRT.dll.dll
Microsoft style imports used
Loaded module '/usr/pkg/lib/win32/divx_c32.ax' at 0x64640000, 
(/usr/pkg/lib/win32/divx_c32.ax,0x0) - START
(/usr/pkg/lib/win32/divx_c32.ax,PROCESS_ATTACH,0x0) - CALL
(DllMain)
CallTo32(entryproc=0x64645719,module=64640000,type=1,res=0x0)
Entering DllMain(DLL_PROCESS_ATTACH) for /usr/pkg/lib/win32/divx_c32.ax
(0x80f60c0,PROCESS_ATTACH,0x0) - RETURN 1
(/usr/pkg/lib/win32/divx_c32.ax,0x0) - END
Module 64640000 request
LookupHMODULE hit 80F60C0
(64640000,DllGetClassObject)
(DllGetClassObject)
SNOOP_GetProcAddress n/a
Querying value Software\IniFileMapping\Quartz\AVINoSkip\default
Initializing registry
Querying value Software\IniFileMapping\Dec\OfferIF09\default
Opening key SOFTWARE
Opening key Microsoft
Opening key Scrunch
Opening key Video
Querying value Brightness
Decoder is capable of YUV output ( flags 0x1f )
^C
^Z
Suspended
zuntum@zunpc:/usr/pkgsrc# ^D
There are suspended jobs.
zuntum@zunpc:/usr/pkgsrc# ^Dexit

Script done on Sun Jan 28 19:45:32 2001

29626 root      10    0    13M   13M sleep     0:03  0.72%  0.68% aviplay

Just freezes. Can't stop it with ctrl+c.
If it worked, we'd have first DivX player working on NetBSD.

The package I'm using is available at http://zuntum.eik.pl/pkgsrc/avifile.tar.gz
[patches/* are important]

-- 
/* [zuntum] zuntum@eik.pl , [WWW] http://zuntum.net */