[MPlayer-users] xvidix not working with Mach64
klchxbec
klchxbec at yahoo.com
Wed Apr 16 07:58:10 CEST 2003
Hello,
I'm trying to make MPlayer-0.90rc5 with xvidix work on
my Mach64 264VT card. I had some problem making the
mach64 vidix driver find out the mmio base. But this
fixed it:
diff for vidix/driver/mach64_vid.c:
- if((mach64_mmio_base =
map_phys_mem(pci_info.base2,0x4000))==(void *)-1)
return ENOMEM;
+ if((mach64_mmio_base =
map_phys_mem(pci_info.base0+0x7ff000,0x4000))==(void
*)-1) return ENOMEM;
+ mach64_mmio_base = (void
*)((caddr_t)mach64_mmio_base + 0xc00 - 0x400);
This change detected my video mode and video ram
correctly, so I guess the change is ok.
But still, the video output is only green/blue snow on
the lower 1/3rd of the display. XFree86-4.1.0 with
XaaNoPixmapCache. Compiler is gcc-2.95.3. -nosound has
no effect. I have 1MB video ram. -vo vesa works fine.
Can someone help me fix this ? If you can share mach64
chip documentation with me that'll be great.
# mplayer -vo xvidix -vcd 2 -ss 00:30:00 -v -v
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /home/guest/local/share/locale
MPlayer 0.90rc5-3.0.2 (C) 2000-2003 Arpad Gereoffy
(see DOCS)
CPU: Intel Pentium P54C (Family: 5, Stepping: 6)
Detected cache-line size is 32 bytes
CPUflags: MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0
SSE2: 0
Compiled for x86 CPU with extensions:
Reading config file
/home/guest/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 /home/guest/local/etc/mplayer/codecs.conf: 50
audio & 136 video codecs
CommandLine: '-vo' 'xvidix' '-vcd' '2' '-ss'
'00:30:00' '-v' '-v'
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:
/home/guest/local/share/mplayer/font/font.desc
Using X86 Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
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
/home/guest/local/etc/mplayer/input.conf : No such
file or directory
Falling back on default (hardcoded) input config
get_path('VCD track 2.conf') -> '/root/.mplayer/VCD
track 2.conf'
[[[init getch2]]]
Playing VCD track 2
track 01: adr=1 ctrl=4 format=2 00:02:00 mode: 0
track 02: adr=1 ctrl=4 format=2 00:14:00 mode: 0
VCD start byte position: 0x253C08 end: 0x2EC4CE44
s->pos=0 newpos=253C08 new_bufpos=253C08 buflen=0
Checking for YUV4MPEG2
Failed: YUV4MPEG2
DEMUXER: freeing demuxer at 0x834d920
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x834d920
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x834d920
Checking for REAL
DEMUXER: freeing demuxer at 0x834d920
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x834d920
Searching demuxer type for filename VCD track 2 ext:
(null)
Checking for MOV
DEMUXER: freeing demuxer at 0x83470f8
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x83470f8
s->pos=25451C newpos=0 new_bufpos=4 buflen=0
stream_seek: WARNING! Can't seek to 0x4 !
DEMUXER: freeing demuxer at 0x83470f8
s->pos=0 newpos=253C08 new_bufpos=253C08 buflen=0
DEMUXER: freeing demuxer at 0x83470f8
s->pos=25451C newpos=0 new_bufpos=0 buflen=0
DEMUXER: freeing demuxer at 0x83470f8
s->pos=0 newpos=253C08 new_bufpos=253C08 buflen=0
s->pos=25451C newpos=0 new_bufpos=0 buflen=0
DEMUXER: freeing demuxer at 0x83470f8
s->pos=0 newpos=253C08 new_bufpos=253C08 buflen=0
Checking for PVA
Failed: PVA
DEMUXER: freeing demuxer at 0x83470f8
system stream synced at 0x264C6B (0)!
not layer-3
not layer-3
not layer-3
not layer-3
==> Found video stream: 0
MPEG-PS file format detected.
==> Found audio stream: 0
Searching for sequence header... OK!
VIDEO: MPEG1 352x288 (aspect 8) 25.00 fps 1120.0
kbps (140.0 kbyte/s)
[V] filefmt:2 fourcc:0x10000001 size:352x288
fps:25.00 ftime:=0.0400
get_path('sub/') -> '/root/.mplayer/sub/'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for
output buffer
mp3lib: using Pentium optimized decore!
MP3lib: init layer2&3 finished, tables done
.MPEG 1.0, Layer II, 44100 Hz 224 kbit Stereo, BPF:
731
Channels: 2, copyright: No, original: Yes, CRC: No,
emphasis: 0
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)
==========================================================================
No vidix driver name provided, probing available ones!
X11 opening display: :0.0
vo: X11 color mask: FFFF (R:F800 G:7E0 B:1F)
vo: X11 running at 800x600 with depth 16 and 16 bpp
(":0.0" => local display)
[x11] Unknown wm type...
Disabling DPMS
DPMSDisable stat: 1
vosub_vidix: vidix_preinit((null)) was called
vidixlib: PROBING:
/home/guest/local/lib/mplayer/vidix/cyberblade_vid.so
[cyberblade] Can't find chip
vidixlib: PROBING:
/home/guest/local/lib/mplayer/vidix/mach64_vid.so
[mach64] Found chip: 264VT [Mach64 VT]
vidixlib:
/home/guest/local/lib/mplayer/vidix/mach64_vid.so
probed o'k
vidixlib: will use
/home/guest/local/lib/mplayer/vidix/mach64_vid.so
driver
vidixlib: Attempt to initialize driver at: 0x404cccd0
[mach64] version 0.90rc5-3.0.2
[mach64] Video memory = 1Mb
[mach64] Planar YUV formats are not supported :(
[mach64] *** Begin of DRIVER variables dump ***
[mach64] mach64_mmio_base=0x404d1800
[mach64] mach64_mem_base=0x40519000
[mach64] mach64_overlay_off=00000000
[mach64] mach64_ram_size=00100000
[mach64] video mode: 800x600 at 16
[mach64] *** Begin of OV0 registers dump ***
[mach64] OVERLAY_SCALE_INC = 00000000
[mach64] OVERLAY_Y_X_START = 00000000
[mach64] OVERLAY_Y_X_END = 00000000
[mach64] OVERLAY_SCALE_CNTL = 04000000
[mach64] OVERLAY_EXCLUSIVE_HORZ = 00000000
[mach64] OVERLAY_EXCLUSIVE_VERT = 00000000
[mach64] OVERLAY_TEST = 0DAA0000
[mach64] SCALER_BUF_PITCH = 00000000
[mach64] SCALER_HEIGHT_WIDTH = 00000000
[mach64] SCALER_BUF0_OFFSET = 00000000
[mach64] SCALER_BUF0_OFFSET_U = 00000000
[mach64] SCALER_BUF0_OFFSET_V = 00000000
[mach64] SCALER_BUF1_OFFSET = 00000000
[mach64] SCALER_BUF1_OFFSET_U = 00000000
[mach64] SCALER_BUF1_OFFSET_V = 00000000
[mach64] SCALER_H_COEFF0 = 00000000
[mach64] SCALER_H_COEFF1 = 00000000
[mach64] SCALER_H_COEFF2 = 00000000
[mach64] SCALER_H_COEFF3 = 00000000
[mach64] SCALER_H_COEFF4 = 00000000
[mach64] SCALER_COLOUR_CNTL = 00000000
[mach64] SCALER_THRESHOLD = 00000000
[mach64] VIDEO_FORMAT = 00000000
[mach64] VIDEO_CONFIG = 00000000
[mach64] VIDEO_SYNC_TEST = 00000000
[mach64] VIDEO_SYNC_TEST_B = 00000000
[mach64] *** End of OV0 registers dump ***
vidixlib:
'/home/guest/local/lib/mplayer/vidix/mach64_vid.so'successfully
loaded
VIDIX: Description: BES driver for Mach64/3DRage cards
VIDIX: Author: Nick Kurshev and Michael Niedermayer
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video
passthrough
VDec: vo config request - 352 x 288 (preferred csp:
Mpeg PES)
Trying filter chain: vo
vosub_vidix: query_format was called: 4d504553 (Mpeg
PES)
vo_debug: query(Mpeg PES) returned 0x0 (i=0)
Could not find matching colorspace - retrying with
-vop scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
vo_debug: query(Mpeg PES) returned 0x0 (i=0)
The selected video_out device is incompatible with
this codec.
vosub_vidix: query_format was called: 4d504553 (Mpeg
PES)
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video
decoder v2.0
libmpeg2: No accelerated IDCT transform found
libmpeg2: No accelerated motion compensation found
VDec: vo config request - 352 x 288 (preferred csp:
Planar YV12)
Trying filter chain: vo
vosub_vidix: query_format was called: 32315659 (Planar
YV12)
vo_debug: query(Planar YV12) returned 0x0 (i=0)
vosub_vidix: query_format was called: 30323449 (Planar
I420)
vo_debug: query(Planar I420) returned 0x0 (i=1)
vosub_vidix: query_format was called: 56555949 (Planar
IYUV)
vo_debug: query(Planar IYUV) returned 0x0 (i=2)
Could not find matching colorspace - retrying with
-vop scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
vosub_vidix: query_format was called: 42475220 (BGR
32-bit)
scale: query(BGR 32-bit) -> 3
vosub_vidix: query_format was called: 42475220 (BGR
32-bit)
vo_debug: query(Planar YV12) returned 0x475 (i=0)
vosub_vidix: query_format was called: 42475220 (BGR
32-bit)
scale: query(BGR 32-bit) -> 3
vosub_vidix: query_format was called: 42475220 (BGR
32-bit)
vo_debug: query(Planar I420) returned 0x475 (i=1)
vosub_vidix: query_format was called: 42475220 (BGR
32-bit)
scale: query(BGR 32-bit) -> 3
vosub_vidix: query_format was called: 42475220 (BGR
32-bit)
vo_debug: query(Planar IYUV) returned 0x475 (i=2)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie
aspect.
VO Config
(352x288->384x288,flags=0,'MPlayer',0x32315659)
vosub_vidix: query_format was called: 42475220 (BGR
32-bit)
scale: query(BGR 32-bit) -> 3
vosub_vidix: query_format was called: 42475220 (BGR
32-bit)
SwScale: scaling 352x288 Planar YV12 to 352x288 BGR
32-bit
1.000
|
1.000
|
No accelerated colorspace conversion found
SwScaler: using unscaled Planar YV12 -> BGR 32-bit
special converter
vosub_vidix: query_format was called: 42475220 (BGR
32-bit)
REQ: flags=0x437 req=0x0
VO: [xvidix] 352x288 => 384x288 BGR 32-bit
VO: Description: X11 (VIDIX)
VO: Author: Alex Beregszaszi
vosub_vidix: query_format was called: 42475220 (BGR
32-bit)
[xvidix] dcx: 418 dcy: 405 dx: 0 dy: 0 dw: 384 dh: 288
vosub_vidix: vidix_init() was called
src_w=352 src_h=288 dest_x_y_w_h = 418 405 384 288
format=BGR 32-bit dest_bpp=16 vid_w=800 vid_h=600
vosub_vidix: query_format was called: 42475220 (BGR
32-bit)
[mach64] ecp: 0
[mach64] vertical stretching not supported
vosub_vidix: using 1 buffer(s)
[mach64] *** Begin of DRIVER variables dump ***
[mach64] mach64_mmio_base=0x404d1800
[mach64] mach64_mem_base=0x40519000
[mach64] mach64_overlay_off=00090000
[mach64] mach64_ram_size=00100000
[mach64] video mode: 800x600 at 16
[mach64] *** Begin of OV0 registers dump ***
[mach64] OVERLAY_SCALE_INC = 0EAA1000
[mach64] OVERLAY_Y_X_START = 01A20195
[mach64] OVERLAY_Y_X_END = 032202B5
[mach64] OVERLAY_SCALE_CNTL = C0000003
[mach64] OVERLAY_EXCLUSIVE_HORZ = 00000000
[mach64] OVERLAY_EXCLUSIVE_VERT = 00000000
[mach64] OVERLAY_TEST = 0DAA0000
[mach64] SCALER_BUF_PITCH = 00000000
[mach64] SCALER_HEIGHT_WIDTH = 01600120
[mach64] SCALER_BUF0_OFFSET = 00000000
[mach64] SCALER_BUF0_OFFSET_U = 00000000
[mach64] SCALER_BUF0_OFFSET_V = 00000000
[mach64] SCALER_BUF1_OFFSET = 00000000
[mach64] SCALER_BUF1_OFFSET_U = 00000000
[mach64] SCALER_BUF1_OFFSET_V = 00000000
[mach64] SCALER_H_COEFF0 = 00000000
[mach64] SCALER_H_COEFF1 = 00000000
[mach64] SCALER_H_COEFF2 = 00000000
[mach64] SCALER_H_COEFF3 = 00000000
[mach64] SCALER_H_COEFF4 = 00000000
[mach64] SCALER_COLOUR_CNTL = 00000000
[mach64] SCALER_THRESHOLD = 00000000
[mach64] VIDEO_FORMAT = 00060000
[mach64] VIDEO_CONFIG = 00000000
[mach64] VIDEO_SYNC_TEST = 00000000
[mach64] VIDEO_SYNC_TEST_B = 00000000
[mach64] *** End of OV0 registers dump ***
[xvidix] window properties: pos: 418x405, size:
384x288
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or
2 (libmpeg2))
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit ->
44100Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=44100Hz, nch = 2,
format = 0x00000001 and bps = 2
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little
endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
ao2: 44100 Hz 2 chans Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit
(Little-Endian) (requested: Signed 16-bit
(Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested:
44100)
audio_setup: frags: 64/64 (1024 bytes/frag) free:
65536
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2
bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/16bit ->
44100Hz/2ch/16bit...
[dummy] Was reinitialized, rate=44100Hz, nch = 2,
format = 0x00000001 and bps = 2
[dummy] Was reinitialized, rate=44100Hz, nch = 2,
format = 0x00000001 and bps = 2
Starting playback...
decaudio: minlen=65536 maxlen=65536 declen=65536
(max=70144)
decaudio: decoding 60928 bytes, max: 65536 (4608)
decaudio: decoding 56320 bytes, max: 60928 (4608)
decaudio: decoding 51712 bytes, max: 56320 (4608)
decaudio: decoding 47104 bytes, max: 51712 (4608)
decaudio: decoding 42496 bytes, max: 47104 (4608)
decaudio: decoding 37888 bytes, max: 42496 (4608)
decaudio: decoding 33280 bytes, max: 37888 (4608)
decaudio: decoding 28672 bytes, max: 33280 (4608)
decaudio: decoding 24064 bytes, max: 28672 (4608)
decaudio: decoding 19456 bytes, max: 24064 (4608)
decaudio: decoding 14848 bytes, max: 19456 (4608)
decaudio: decoding 10240 bytes, max: 14848 (4608)
decaudio: decoding 5632 bytes, max: 10240 (4608)
decaudio: decoding 1024 bytes, max: 5632 (4608)
decaudio: declen=65536 out=65536 (max 65536)
. telecine = 1.0 -2.500
*** [scale] Allocating mp_image_t, 352x288x12bpp YUV
planar, 152064 bytes
(imgfmt: 32315659, planes: 40619040,40637f40,40631c40
strides: 352,176,176, chroma: 176x144, shift: h:1,v:1)
mpeg2: [P] 0x8347df0
[xvidix] dcx: 418 dcy: 405 dx: 0 dy: 0 dw: 384 dh: 288
[xvidix] window properties: pos: 418x405, size:
384x288
A: 0.8 V: 0.0 A-V: 0.787 ct: 0.000 1/ 1 0%
0% 0.0% 0 0 0%.s->pos=27B780 newpos=F2CDEC0
new_bufpos=F2CE000 buflen=0
not layer-3
not layer-3
decaudio: minlen=65536 maxlen=65536 declen=65536
(max=70144)
decaudio: decoding 65536 bytes, max: 70144 (4608)
decaudio: decoding 60928 bytes, max: 65536 (4608)
decaudio: decoding 56320 bytes, max: 60928 (4608)
decaudio: decoding 51712 bytes, max: 56320 (4608)
decaudio: decoding 47104 bytes, max: 51712 (4608)
decaudio: decoding 42496 bytes, max: 47104 (4608)
decaudio: decoding 37888 bytes, max: 42496 (4608)
decaudio: decoding 33280 bytes, max: 37888 (4608)
decaudio: decoding 28672 bytes, max: 33280 (4608)
decaudio: decoding 24064 bytes, max: 28672 (4608)
decaudio: decoding 19456 bytes, max: 24064 (4608)
decaudio: decoding 14848 bytes, max: 19456 (4608)
decaudio: decoding 10240 bytes, max: 14848 (4608)
decaudio: decoding 5632 bytes, max: 10240 (4608)
decaudio: decoding 1024 bytes, max: 5632 (4608)
decaudio: declen=65536 out=65536 (max 65536)
. telecine = 1.0 -2.500
*** [scale] Allocating mp_image_t, 352x288x12bpp YUV
planar, 152064 bytes
(imgfmt: 32315659, planes: 4063f040,4065df40,40657c40
strides: 352,176,176, chroma: 176x144, shift: h:1,v:1)
mpeg2: [P] 0x83481d0
*** [vo] Allocating mp_image_t, 352x288x32bpp BGR
packed, 405504 bytes
(imgfmt: 42475220, planes: 40665040,0,0 strides:
1408,0,0, chroma: 0x0, shift: h:0,v:0)
vosub_vidix: vidix_draw_image() was called
vosub_vidix: vidix_draw_osd() was called
OSD chg: 3 V: no pb:0
OSD chg: 2 V: no pb:0
vosub_vidix: vidix_flip_page() was called
A:1447.9 V: 0.8 A-V:1447.089 ct: 0.100 2/ 2
0% 0% 0.0% 0 0 0%.
# lspci -vv
00:11.0 Multimedia audio controller: C-Media
Electronics Inc CM8738 (rev 10)
Subsystem: C-Media Electronics Inc
CMI8738/C3DX PCI Audio Device
Control: I/O+ Mem- BusMaster+ SpecCycle-
MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr-
DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (500ns min, 6000ns max)
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at 6000 [size=256]
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+
AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0
PME-
00:13.0 VGA compatible controller: ATI Technologies
Inc 264VT [Mach64 VT] (rev 08) (prog-if 00 [VGA])
Control: I/O+ Mem+ BusMaster- SpecCycle-
MemWINV- VGASnoop+ ParErr- Stepping+ SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr-
DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Region 0: Memory at e0000000 (32-bit,
non-prefetchable) [size=16M]
Region 1: I/O ports at 6100 [size=256]
Expansion ROM at <unassigned> [disabled]
[size=64K]
kernel: 2.4.7-10 with RedHat 7.2
__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
More information about the MPlayer-users
mailing list