DirectFB - Home of the pragmatist Roadmap


[directfb-users] Re: How to make the DirectFB on top CLE266 work
Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[directfb-users] Re: How to make the DirectFB on top CLE266 work



Hi,
I'm interested in fixing mplayer vo module. If You can give more

> -----Original Message-----
> From: directfb-users-bounce@directfb.org 
> [mailto:directfb-users-bounce@directfb.org] On Behalf Of 
> Yidan(Edward) Zhou
> Sent: Monday, November 17, 2003 4:37 PM
> To: Selwyn Tang
> Cc: directfb-users@directfb.org
> Subject: [directfb-users] Re: How to make the DirectFB on top 
> CLE266 work
> 

> Exactly, my goal to use the overlay layer is to reduce cpu consumption
> of MPEG2 decoding, since CLE266 has a built-in MPEG2 decoder.
> BTW, I have tried mplayer to play back the video. Mplayer 
> only can work
> with the primary layer smoothly, and if mplayer selects the overlay
> layer what is shown on the screen is a white screen.

Do You see osd&progressbar?

Could or did you try following things?
-enable/disable direct rendering
-try to use -double switch
-set buffermode to double or triple

> 
> The following is the printed out message of mplayer
> +++++++++++++++++++++++++++++
> viapvr:~# mplayer -vo directfb -dr ./tdmpeg120.mpv
> MPlayer 1.0pre2-2.95.4 (C) 2000-2003 MPlayer Team
> 
> CPU: IDT/Centaur/VIA C3 Nehemiah (Family: 6, Stepping: 1)
> Detected cache-line size is 32 bytes
> CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
> Compiled for x86 CPU with extensions: MMX MMX2 SSE
> 
> Reading config file /usr/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 /usr/local/etc/mplayer/codecs.conf: Can't open
> '/usr/local/etc/mplayer/codecs.conf': No such file or directory
> Using built-in default codecs.conf
> font: can't open file: /root/.mplayer/font/font.desc
> font: can't open file: /usr/local/share/mplayer/font/font.desc
> Using Linux hardware RTC timing (1024Hz).
> 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
> 
> Playing ./tdmpeg120.mpv
> MPEG-ES file format detected.
> VIDEO: MPEG2 720x576 (aspect 2) 25.000 fps 9500.0 kbps 
> (1187.5 kbyte/s)
> DirectFB: Preinit entered
> 
> ---------------------- DirectFB v0.9.20 ---------------------
> (c) 2000-2002 convergence integrated media GmbH
> (c) 2002-2003 convergence GmbH
> -----------------------------------------------------------
> 
> (*) Single Application Core. (with MMX support) (2003-11-17 20:16)
> (*) DirectFB/misc/memcpy: using MMXEXT optimized memcpy()
> (*) DirectFB/InputDevice: Keyboard 0.9 (convergence 
> integrated media GmbH)
> (*) MMX detected and enabled
> (*) DirectFB/GraphicsDevice: VIA/S3G UniChrome 0.3 (-)
> (*) DirectFB/Layer: Enabled 'FBDev Primary Layer'.
> DirectFB: Keyboard init OK
> DirectFB: Preinit OK
> ==============================================================
> ============
> Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
> Could not find matching colorspace - retrying with -vop scale...
> Opening video filter: [scale]
> The selected video_out device is incompatible with this codec.
> VDecoder init failed :(
> Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder 
> libmpeg2-v0.3.1
> Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
> ==============================================================
> ============
> Audio: no sound
> Starting playback...
> VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
> DirectFB: Format query: Planar YV12
> DirectFB: Test format - layer 0 scale/pos 0
> (*) DirectFB/Layer: Enabled 'VIA CLE266 Overlay'.
> DirectFB: Test format - layer 1 scale/pos 8
> DirectFB: Test format - added layer 1 scale/pos 8
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
> VO: [directfb] 720x576 => 768x576 Planar YV12
> DirectFB: Format query: Planar YV12
> DirectFB: Test format - layer 0 scale/pos 0
> DirectFB: Test format - layer 1 scale/pos 8
> DirectFB: Test format - added layer 1 scale/pos 8
> DirectFB: Config entered [720x576]
> DirectFB: With requested format: Planar YV12
> (!!!) *** CAUTION [letting unprivileged
> IDirectFBDisplayLayer::GetSurface() call pass until cooperative level
> handling is finished] *** idirectfbdisplaylayer.c (147)
> DirectFB: Config - looking for suitable layer
> DirectFB: Test format - layer 0 scale/pos 0
> DirectFB: Test format - layer 1 scale/pos 8
> DirectFB: Test format - added layer 1 scale/pos 8
> DirectFB: Config - layer 1
> DirectFB: Config - changing layer configuration (size)
> DirectFB: Layer reports format:201007
> DirectFB: Desired pixelformat: 8100c0b
> DirectFB: Config - changing layer configuration (format)
> DirectFB: Config - flipping = 0

That's strange. Flipping should be active - maybe you didn't set correct
buffermode.

> DirectFB: Config - surface size = 720x576
> DirectFB: Frame is active.
> DirectFB: Config finished [10000x10000] - [720x576]
> New_Face failed. Maybe the font path is wrong.
> Please supply the text font file (~/.mplayer/subfont.ttf).
> subtitle font: load_sub_face failed.
> V: 4.7 117 62% 1367% 0.0% 0 0 0 % %

It look like Blit problem. Maybe CLE266 is not providing all blitting
functions -> no image on screen. Solution for this is DR + double buffering.

			JS



--
Info: To unsubscribe send a mail to ecartis@directfb.org with
"unsubscribe directfb-users" as subject.



Home | Main Index | Thread Index


directfb.org / Development / Old Archives