On Thu, Apr 29, 2004 at 07:19:01AM +0200, Denis Oliver Kropp wrote: > Quoting Ville Syrj�l�: > > On Wed, Apr 28, 2004 at 06:59:43PM -0400, Rob wrote: > > > 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? > > > > G200 doesn't support YV12 (separate U and V planes). I think what it > > supports is called NV12 (U and V pixels interleaved in a single plane). > > mga_vid converts between the formats in the driver. I don't want to add > > such hacks to the DirectFB driver. We could add NV12 support to the driver > > but I don't think any mplayer codecs support that format directly so the > > codecs would have to use YV12 and a filter would need to convert the image > > to NV12. > > What about using the packed YUV format DSPF_YUY2 that is supported by the G200 > and implemented in the driver. > > Conversion from planar to packed is faster than from YUV to RGB. > Another advantage would be hardware scaling.
Yes YUY2 should work. It sounds like vo_directfb could do a better job choosing the pixelformat. I believe it should be possible to force the pixelformat with -vf format=yuy2 option. vo_dfbmga will use YUY2 on G200 without any options. In fact it's the only format supported because the G200 BES doesn't handle RGB formats. I'm not sure which would actually be faster YUY2 or NV12. Some codecs may output YUY2 directly thus avoiding any conversions but NV12 would have less data to copy. If the codec would only output YV12 conversion to NV12 should be faster because it wouldn't involve scaling. NV12 might be an interesting experiment if nothing more :) -- Ville Syrj�l� [EMAIL PROTECTED] http://www.sci.fi/~syrjala/ -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
