Sixer wrote:
> Hi,
>
> I've been trying to get DirectFB working at resolutions
> at or near 1024x768, so I can play high res videos
> accelerated.
>
> I'm using Xebian 2.4.23 on an Xbox system.
>
> DirectFB 0.9.24 compiles and installs without errors.
> I have pasted my dfbinfo at the bottom of this message.
>
> When I try and play something while the videomode is set to 1024x768,
> DirectFB outputs:
>
> (*) parsing config file '/etc/directfbrc'.
>
> ---------------------- DirectFB v0.920 ---------------------
> (c) 2000-2002 convergence integrated media GmbH
> (c) 2002-2003 convergence GmbH
> -----------------------------------------------------------
>
> (*) Single Application Core. (with MMX support) (2005-01-31 07:23)
> (*) DirectFB/misc/memcpy: using MMXEXT optimized memcpy()
> (*) DirectFB/InputDevice: IMPS/2 Mouse 0.9 (convergence integrated
> media GmbH)
> (*) DirectFB/InputDevice: Keyboard 0.9 (convergence integrated media
> GmbH)
> (*) MMX detected and enabled
> (*) DirectFB/GraphicsDevice: nVidia RIVA TNT/TNT2/GeForce 0.2
> (convergence integrated media GmbH)
> (*) DirectFB/Layer: Enabled 'FBDev Primary Layer'.
> [...]
> DirectFB: Config entered [1024x768]
> [...]
> DirectFB: Config - layer 1
> DirectFB: Config - switching layer to exclusive mode
> DirectFB: Config - changing layer configuration (size)
> (!!!) *** CAUTION [reallocation of video instance failed]
> *** ../../../src/core/surfaces.c (1044)
> (!) DirectFB/Core/layers: Reallocation of layer surface failed!
> DirectFB: ConfigError in layer configuration (size)
> (#) DirectFBError [MPlayer - Layer size change.]: Out of video memory!
> DirectFB: Layer reports format:201007
> DirectFB: Desired pixelformat: 8100c0b
> DirectFB: Config - changing layer configuration (format)
> DirectFB: Double buffering is active
> DirectFB: Requested field parity: Don't care
> DirectFB: Config - flipping = 1
> DirectFB: Config - surface size = 640x480
> DirectFB: Config finished [10000x7526] - [640x480]
> (!) [ 2047: 0.000] --> Caught signal 11 (at 0x42ec5000, invalid
> address) <--
> ... and mplayer dies.
>
> The syntax I use to start playing:
> mplayer -vo directfb -ao alsa moviefile.avi -screenw 1024 -screenh 768
>
> When I do not supply the screenh and screenw, things go fine:
>
> (*) parsing config file '/etc/directfbrc'.
>
> ---------------------- DirectFB v0.9.20 ---------------------
> (c) 2000-2002 convergence integrated media GmbH
> (c) 2002-2003 convergence GmbH
> -----------------------------------------------------------
>
> (*) Single Application Core. (with MMX support) (2005-01-31 07:23)
> (*) DirectFB/misc/memcpy: using MMXEXT optimized memcpy()
> (*) DirectFB/InputDevice: IMPS/2 Mouse 0.9 (convergence integrated
> media GmbH)
> (*) DirectFB/InputDevice: Keyboard 0.9 (convergence integrated media
> GmbH)
> (*) MMX detected and enabled
> (*) DirectFB/GraphicsDevice: nVidia RIVA TNT/TNT2/GeForce 0.2
> (convergence integrated media GmbH)
> (*) DirectFB/Layer: Enabled 'FBDev Primary Layer'.
> [...]
> DirectFB: Config entered [624x352]
> DirectFB: With requested format: Planar YV12
> [...]
> DirectFB: Config - layer 1
> DirectFB: Config - switching layer to exclusive mode
> DirectFB: Config - changing layer configuration (size)
> DirectFB: Layer reports format:201007
> DirectFB: Desired pixelformat: 8100c0b
> DirectFB: Config - changing layer configuration (format)
> DirectFB: Double buffering is active
> DirectFB: Requested field parity: Don't care
> DirectFB: Config - flipping = 1
> DirectFB: Config - surface size = 624x352
> DirectFB: Config finished [10000x7522] - [624x352]
> .. and the video plays without problems.
>
> Obviously it runs out of memory trying to set the screen size at or
> near 1024x768.
> fbdev however works fine with the same mplayer parameters.
>
>
> My question:
> Do I need to configure something else in order for DirectFB to work
> with mplayer playing at higher resolutions?
XBox has too less video memory (4MB) to use 1024x768 with double
buffering. Either disable double-buffering in MPlayer or use a lower
resolution. It should be also possible to increase the aumount of memory
reserved for video to 8MB from the kernel, but I don't known exactly how.
> Also, why do I see DirectFB 0.9.20 instead of 0.9.24 when starting
> mplayer? dfbinfo outputs 0.9.24.
>
Probably you have two versions of DirectFB installed and MPlayer is
linked to the older one.
--
Regards,
Claudio Ciccani
[EMAIL PROTECTED]
http://directfb.org
http://sf.net/projects/php-directfb
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users