[MPlayer-dev-eng] VIDIX on PPC (was: Re: [MPlayer-cvslog] CVS: main/vidix/drivers nvidia_vid.c, 1.24, 1.25)

Diego Biurrun diego at biurrun.de
Wed Sep 7 10:16:38 CEST 2005


On Wed, Sep 07, 2005 at 07:01:31AM +0200, Sascha Sommer wrote:
> 
> On Tuesday 06 September 2005 22:21, Diego Biurrun wrote:
> > Moving this thread to dev-eng where I believe it is more appropiate...
> >
> > On Sat, Sep 03, 2005 at 12:45:20PM +0200, Sascha Sommer wrote:
> > > On Saturday 03 September 2005 12:27, Sascha Sommer CVS wrote:
> > > > Modified Files:
> > > >  nvidia_vid.c
> > > > Log Message:
> > > > initial endianess fixes
> > >
> > > Diego,
> > > can you test this when Reimars patches went in?
> >
> > It's still not working quite correctly:
> >
> > vidixlib: dlopen error: /usr/local/lib/libdha.so.1.0: undefined symbol: inb
> > vosub_vidix: Couldn't find working VIDIX driver
> > Error opening/initializing the selected video_out (-vo) device.
> >
> > After applying the "patch" below, which you came up with on LinuxTag, I
> > get a little further, but MPlayer crashes in decode_video.
> >
> 
> Could you post -v log and a backtrace?

Here's the -v log, I'm in a hurry right now, if you need the backtrace
as well, just tell me.  A problem seems to be that libdha (?) does not
detect the RAM size correctly:

[nvidia_vid] detected memory size 0 MB

If I hardcode it to 32000000 in nvidia_vid.c it suddenly works, but I
get a green window instead of the video.  If I force the VIDIX driver
via -vo xvidix:nvidia_vid.so I get the following confusing message:

vidixlib: dlopen error: /usr/local/lib/libdha.so.1.0: undefined symbol: inb

Just compare both -v logs below...

Diego




cerebus:/home/diego/src/mplayer/vanilla# ./mplayer -v -vo xvidix
/home/diego/tmp/POWERLEAGUEHAMSTER.mpg 
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale

MPlayer dev-CVS-050618-15:52-3.3.5 (C) 2000-2005 MPlayer Team
AltiVec found
CPU: PowerPC

CommandLine: '-v' '-vo' 'xvidix'
'/home/diego/tmp/POWERLEAGUEHAMSTER.mpg'
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 Unoptimized OnScreenDisplay
Linux RTC init error in ioctl (rtc_irqp_set 1024): Invalid argument
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system
startup scripts.
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('POWERLEAGUEHAMSTER.mpg.conf') ->
'/root/.mplayer/POWERLEAGUEHAMSTER.mpg.conf'
Playing /home/diego/tmp/POWERLEAGUEHAMSTER.mpg.
[file] File size is 1435545 bytes
STREAM: [file] /home/diego/tmp/POWERLEAGUEHAMSTER.mpg
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
Checking for SMJPEG
Searching demuxer type for filename
/home/diego/tmp/POWERLEAGUEHAMSTER.mpg ext: .mpg
Checking for Nullsoft Streaming Video
Checking for MOV
Checking for VIVO
header block 1 size: 5
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 66724, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream (wrong packet type 5632)
LMLM4 Stream Format not found
system stream synced at 0x0 (156)!
==> Found video stream: 0
==> Found audio stream: 0
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)  
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO:  MPEG1  352x288  (aspect 8)  25.000 fps  250.0 kbps (31.2
kbyte/s)
[V] filefmt:2  fourcc:0x10000001  size:352x288  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/root/.mplayer/sub/'
get_path('default.sub') -> '/root/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using generic C decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer II, 32000 Hz 64 kbit Stereo, BPF: 288
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
AUDIO: 32000 Hz, 2 ch, s16be, 64.0 kbit/6.25% (ratio: 8000->128000)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
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/local/lib/mplayer/vidix/cyberblade_vid.so
[cyberblade] Can't find chip
vidixlib: PROBING: /usr/local/lib/mplayer/vidix/mach64_vid.so
[mach64] Can't find chip
vidixlib: PROBING: /usr/local/lib/mplayer/vidix/mga_crtc2_vid.so
[mga] probe
[mga] found 2 pci devices
[mga] Can't find chip
vidixlib: PROBING: /usr/local/lib/mplayer/vidix/mga_vid.so
[mga] probe
[mga] found 2 pci devices
[mga] Can't find chip
vidixlib: PROBING: /usr/local/lib/mplayer/vidix/nvidia_vid.so
[nvidia_vid] Found chip: NV34M [GeForce FX Go5200]
vidixlib: /usr/local/lib/mplayer/vidix/nvidia_vid.so probed o'k
vidixlib: will use /usr/local/lib/mplayer/vidix/nvidia_vid.so driver
vidixlib: Attempt to initialize driver at: 0xeb3fc34
[nvidia_vid] arch 30 register base 0x30130000
[nvidia_vid] detected memory size 0 MB
[nvidia_vid] unable to setup MTRR: Function not implemented
[nvidia_vid] video mode: 16x770 at 32
vidixlib: '/usr/local/lib/mplayer/vidix/nvidia_vid.so'successfully
loaded
VIDIX: Description: NVIDIA RIVA OVERLAY DRIVER
VIDIX: Author: Sascha Sommer <saschasommer at freenet.de>
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 288 (preferred csp: Mpeg PES)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
Also try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder
libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Building audio filter chain for 32000Hz/2ch/s16be -> 0Hz/0ch/s8...
[libaf] Adding filter dummy 
[dummy] Was reinitialized: 32000Hz/2ch/s16be
[dummy] Was reinitialized: 32000Hz/2ch/s16be
ao2: 32000 Hz  2 chans  s16be
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16be (requested: s16be)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 32000 Hz samplerate (requested: 32000)
audio_setup: frags:   8/8  (4096 bytes/frag)  free:  32768
AO: [oss] 32000Hz 2ch s16be (2 B/s)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 32000Hz/2ch/s16be ->
32000Hz/2ch/s16be...
[dummy] Was reinitialized: 32000Hz/2ch/s16be
[dummy] Was reinitialized: 32000Hz/2ch/s16be
Starting playback...
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
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)
SwScaler: using unscaled Planar YV12 -> Packed YUY2 special converter
REQ: flags=0x437  req=0x0  
VO: [xvidix] 352x288 => 384x288 Packed YUY2 
VO: Description: X11 (VIDIX)
VO: Author: Alex Beregszaszi
Using colorkey: ff00
[nvidia_vid] set colorkey 0xff00
[xvidix] dcx: 320 dcy: 240 dx: 0 dy: 0 dw: 384 dh: 288
called vixConfigPlayback
[nvidia_vid] setting up a 384x288-320x240 video window (src 352x288),
format 0x32595559
vosub_vidix: using 3 buffer(s)


MPlayer interrupted by signal 11 in module: decode_video
- 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.
Uninit audio filters...
[libaf] Removing filter dummy 
uninit audio: mp3lib
uninit video: libmpeg2
vo: uninit ...








cerebus:/home/diego/src/mplayer/vanilla# ./mplayer -v -vo
xvidix:nvidia_vid.so /home/diego/tmp/POWERLEAGUEHAMSTER.mpg 

MPlayer dev-CVS-050618-15:52-3.3.5 (C) 2000-2005 MPlayer Team
AltiVec found
CPU: PowerPC

CommandLine: '-v' '-vo' 'xvidix:nvidia_vid.so'
'/home/diego/tmp/POWERLEAGUEHAMSTER.mpg'
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 Unoptimized OnScreenDisplay
Linux RTC init error in ioctl (rtc_irqp_set 1024): Invalid argument
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system
startup scripts.
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('POWERLEAGUEHAMSTER.mpg.conf') ->
'/root/.mplayer/POWERLEAGUEHAMSTER.mpg.conf'
Playing /home/diego/tmp/POWERLEAGUEHAMSTER.mpg.
[file] File size is 1435545 bytes
STREAM: [file] /home/diego/tmp/POWERLEAGUEHAMSTER.mpg
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
Checking for SMJPEG
Searching demuxer type for filename
/home/diego/tmp/POWERLEAGUEHAMSTER.mpg ext: .mpg
Checking for Nullsoft Streaming Video
Checking for MOV
Checking for VIVO
header block 1 size: 5
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 66724, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream (wrong packet type 5632)
LMLM4 Stream Format not found
system stream synced at 0x0 (156)!
==> Found video stream: 0
==> Found audio stream: 0
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)  
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO:  MPEG1  352x288  (aspect 8)  25.000 fps  250.0 kbps (31.2
kbyte/s)
[V] filefmt:2  fourcc:0x10000001  size:352x288  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/root/.mplayer/sub/'
get_path('default.sub') -> '/root/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using generic C decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer II, 32000 Hz 64 kbit Stereo, BPF: 288
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
AUDIO: 32000 Hz, 2 ch, s16be, 64.0 kbit/6.25% (ratio: 8000->128000)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
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
Disabling DPMS
DPMSDisable stat: 1
vidixlib: dlopen error: /usr/local/lib/libdha.so.1.0: undefined symbol: inb
vosub_vidix: Couldn't find working VIDIX driver
Error opening/initializing the selected video_out (-vo) device.

uninit audio: mp3lib
vo: uninit ...

Exiting... (End of file)




More information about the MPlayer-dev-eng mailing list