Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

MediaElement performance

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 06-04-2008   #1 (permalink)
admin
Guest


 

MediaElement performance

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.

My System SpecsSystem Spec
Old 07-24-2008   #2 (permalink)
xYrus
Guest


 

Re: MediaElement performance

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@xxxxxx> schrieb im Newsbeitrag
news:bafec257-9c49-4b03-88c0-4c7ea41ec707@xxxxxx
Quote:

> 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.
My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
MediaElement object Eagle Vista Avalon 1 07-19-2007 09:28 AM
MediaElement Performance =?Utf-8?B?TmljayBQYWxtZXI=?= Avalon 2 07-12-2006 05:41 PM
MediaElement using MediaClock smolyn@gmail.com Avalon 0 03-17-2006 11:03 AM
MediaElement - app crashes when MediaElement is used MueMeister Avalon 2 01-31-2006 06:59 AM
RE: MediaElement - app crashes when MediaElement is used Mark Lawrence Avalon 0 01-31-2006 06:59 AM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51