Windows Vista Beta | WinVistaBeta.com - Message | MediaElement performance

September 07, 2008  
Subject: MediaElement performance
Group: microsoft.public.windows.developer.winfx.avalon
Date: 6/4/2008 6:26:28 PM
From: "admin@5inet.net" [Email Address Protection]

Hello,

I'm new in using WPF, however I did a video player by WPF recently, it
works perfectly. but there are few problems.

1. When I trying to play a wmv file about 20Mb, the video not very
smoothly, stop-continue-stop... but the same file is playing very well
in WMP.

2. The color in my video player also is not same with WMP. wmp is more
clear than my own player.

3. A strange thing is a video file. this video file is a normal AVI
file and it can be played well in WMP, but when I trying to play it
with my own player, the video separates to 2 frame vertically!

The most important thing is the performance, the first point. I would
like to know if MediaElement uses the same core with WMP, why they
have different performances and different video rendering...

It's very grateful anyone helps.

Back
Subject: Re: MediaElement performance
Group: microsoft.public.windows.developer.winfx.avalon
Date: 7/24/2008 9:20:50 PM
From: "xYrus" [Email Address Protection]

Did you install the KB938660 hotfix or Vista SP1? If you are using XP, try
to disable the AllowTransparency flag on your WPF Window, if you have it
activated.

The issue is the following: DirectX9's GetDC method does not support alpha
channels. This can make the framework switch to software rendering mode.
It's a known problem and there is a hotfix for DX10 which is also included
in SP1. DX9 is simply not able to render rich content using layered windows.

In the case that you are not using AllowTransparency - please double check
the complexity of your XAML code which presents the MediaPlayer element.
Also make sure that you are not using any BitmapEffects for the MediaPlayer
element or one of it's parents.


<admin@5inet.net> schrieb im Newsbeitrag
news:bafec257-9c49-4b03-88c0-4c7ea41ec707@w1g2000prd.googlegroups.com...
> Hello,
>
> I'm new in using WPF, however I did a video player by WPF recently, it
> works perfectly. but there are few problems.
>
> 1. When I trying to play a wmv file about 20Mb, the video not very
> smoothly, stop-continue-stop... but the same file is playing very well
> in WMP.
>
> 2. The color in my video player also is not same with WMP. wmp is more
> clear than my own player.
>
> 3. A strange thing is a video file. this video file is a normal AVI
> file and it can be played well in WMP, but when I trying to play it
> with my own player, the video separates to 2 frame vertically!
>
> The most important thing is the performance, the first point. I would
> like to know if MediaElement uses the same core with WMP, why they
> have different performances and different video rendering...
>
> It's very grateful anyone helps.


Back