Jiri and others: Using the mplayer -v option yields the output below (options passed on the commandline are "-vo directfb -dr"). Enabling -dr did actually result in the movie being displayed (thanks for the tip).
I also tried using the -vo dfbmga option as suggested by someone but got the error: (*) DirectFB/Graphics: Matrox G200 0.7 (convergence integrated media GmbH) Can't get CRTC2 layer - Not supported! Error opening/initializing the selected video_out (-vo) device. I agree that there should be some "basic service" to (quickly) translate between pixel formats so that apps can supply whatever format they wish. But I don't know if it should be in directfb or some external lib. It actually makes me appreciate the directx media framework which lets you plug in filters anywhere in the graph to easily convert formats =) As I remember the gstreamer project was trying to do something like this, maybe we could borrow their code... And Ville, Microsoft defines the NV12 format as: "A format in which all Y samples are found first in memory as an array of unsigned char with an even number of lines (possibly with a larger stride for memory alignment), followed immediately by an array of unsigned char containing interleaved Cb and Cr samples (such that if addressed as a little-endian WORD type, Cb would be in the LSBs and Cr would be in the MSBs) with the same total stride as the Y samples. This is the preferred 4:2:0 pixel format." If its preferred by MS it could atleast be supported by directfb =) Thanks, -Rob ========================================================================== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 480 x 480 (preferred csp: Mpeg PES) Trying filter chain: vo 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 The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0 libmpeg2: Using MMXEXT for IDCT transform libmpeg2: Using MMXEXT for motion compensation VDec: vo config request - 480 x 480 (preferred csp: Planar YV12) Trying filter chain: vo DirectFB: Format query: Planar YV12 DirectFB: Test format - layer 0 scale/pos 0 DirectFB: Test format - layer 1 scale/pos 8 DirectFB: Format query: Planar I420 DirectFB: Test format - layer 0 scale/pos 0 DirectFB: Test format - layer 1 scale/pos 8 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 DirectFB: Format query: BGR 32-bit DirectFB: Test format - layer 0 scale/pos 0 DirectFB: Test format - added layer 0 scale/pos 0 DirectFB: Test format - layer 1 scale/pos 8 DirectFB: Format query: BGR 32-bit DirectFB: Test format - layer 0 scale/pos 0 DirectFB: Test format - added layer 0 scale/pos 0 DirectFB: Test format - layer 1 scale/pos 8 DirectFB: Format query: BGR 32-bit DirectFB: Test format - layer 0 scale/pos 0 DirectFB: Test format - added layer 0 scale/pos 0 DirectFB: Test format - layer 1 scale/pos 8 DirectFB: Format query: BGR 32-bit DirectFB: Test format - layer 0 scale/pos 0 DirectFB: Test format - added layer 0 scale/pos 0 DirectFB: Test format - layer 1 scale/pos 8 DirectFB: Format query: BGR 32-bit DirectFB: Test format - layer 0 scale/pos 0 DirectFB: Test format - added layer 0 scale/pos 0 DirectFB: Test format - layer 1 scale/pos 8 DirectFB: Format query: BGR 32-bit DirectFB: Test format - layer 0 scale/pos 0 DirectFB: Test format - added layer 0 scale/pos 0 DirectFB: Test format - 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 Config (480x480->640x480,flags=0,'MPlayer',0x32315659) DirectFB: Format query: BGR 32-bit DirectFB: Test format - layer 0 scale/pos 0 DirectFB: Test format - added layer 0 scale/pos 0 DirectFB: Test format - layer 1 scale/pos 8 DirectFB: Format query: BGR 32-bit DirectFB: Test format - layer 0 scale/pos 0 DirectFB: Test format - added layer 0 scale/pos 0 DirectFB: Test format - layer 1 scale/pos 8 Using MMX2 for colorspace transform SwScaler: using unscaled Planar YV12 -> BGR 32-bit special converter DirectFB: Format query: BGR 32-bit DirectFB: Test format - layer 0 scale/pos 0 DirectFB: Test format - added layer 0 scale/pos 0 DirectFB: Test format - layer 1 scale/pos 8 REQ: flags=0x7 req=0x0 VO: [directfb] 480x480 => 640x480 BGR 32-bit VO: Description: Direct Framebuffer Device VO: Author: Jiri Svoboda [EMAIL PROTECTED] VO: Comment: v 2.0 (for DirectFB version >=0.9.13) DirectFB: Format query: BGR 32-bit DirectFB: Test format - layer 0 scale/pos 0 DirectFB: Test format - added layer 0 scale/pos 0 DirectFB: Test format - layer 1 scale/pos 8 DirectFB: Config entered [480x480] DirectFB: With requested format: BGR 32-bit DirectFB: Config - find suitable layer DirectFB: Test format - layer 0 scale/pos 0 DirectFB: Test format - added layer 0 scale/pos 0 DirectFB: Test format - layer 1 scale/pos 8 DirectFB: Config - layer 0 DirectFB: Layer reports format:200801 DirectFB: Desired pixelformat: 400c03 DirectFB: Config - set layer config (format) DirectFB: Config - flipping = 1 DirectFB: Config - surface size = 640x480 DirectFB: Frame is active. DirectFB: Config finished [640x480] - [480x480] Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2)) ========================================================================== > Can You send me mplayer -v log? I'd like to now which error and why is > produced... > The correct format should be nogitiated automatically and in case of g200 > it > should be YUY2. > Just tip - typical reason for black screen with only OSD is that -dr is > not > enabled in mplayer. > > JS > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Rob >> Sent: Thursday, April 29, 2004 1:00 AM >> To: [EMAIL PROTECTED] >> Subject: [directfb-dev] No YV12 love on G200? >> >> I've got an old G200 lying around and I am trying to setup a >> mythtv/directfb box using it. >> >> But before I even started doing that I tried a test using >> mplayer with the >> -vo directfb option and could not get it to work. It gave an >> error saying >> YV12 was not supported and switched to using the software YV12->RGB >> converter but still just displayed a black screen (although >> the OSD shows >> up fine...). >> >> Looking through the code I noticed a comment saying that the >> G200 does not >> support YV12 or I420 which seems odd to me. This is because >> previously >> I've used the mplayer -vo mga option which does not require >> the software >> converter and to me from a quick look through the mplayer >> code it seems to >> display the YV12 natively (ie no conversion in the driver). >> >> So I'm just wondering why mplayer's mga_vid driver can >> support YV12 on my >> G200 but directfb does not? Am I missing something? >> >> Thanks, >> -Rob Lippert >> >> >> -- >> Info: To unsubscribe send a mail to [EMAIL PROTECTED] with >> "unsubscribe directfb-dev" as subject. >> > > > -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
