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 07-09-2006   #1 (permalink)
=?Utf-8?B?TmljayBQYWxtZXI=?=
Guest


 

MediaElement Performance

I've been testing the MediaElement to play some hi-def video I've recorded
off my ATSC capture card. The video is in dvr-ms format (MPEG2) and using
VMR9 it results in about 50% CPU utilization on my computer (Athlon XP 3200)
under WinXP SP2. If I play the same video in the MediaElement it results in
100% utilization and a lot of dropped frames using the June CTP.
Will the performance get significantly better in the final release?
Would the performance be better under Vista?
If none of the above, would I be better off getting a new video card or a
new CPU to improve the playback? And what would be the minimum necessary to
play hi def video smoothly using the MediaElement?


My System SpecsSystem Spec
Old 07-12-2006   #2 (permalink)
Ed Maia [MSFT]
Guest


 

Re: MediaElement Performance

Hello Nick,

Unfortunately, we don't expect performance of the MediaElement to improve a
great deal. There is basically an added cost of the advanced compositing of
video that WPF provides. We have seen HD videos playing very well on dual
core machines with an 256MB memory video card. It is hard to say what the
bottleneck on your system is, but I would make sure your video card has
enough memory to store the video samples (which can get pretty large with HD
videos).

As a guideline, I would make sure you are not using the MediaElement inside
of a VisualBrush if not strictly necessary, and also that you are displaying
the video at its natural resolution.

Another option to explore if you really want CPU usage to be as low as
possible is to host the Windows Media Player OCX inside of WPF by means of
an HwndHost. Our SDK has a sample of this under Interop.

Hope this helps.

Thanks,
Ed

"Nick Palmer" <Nick Palmer@discussions.microsoft.com> wrote in message
news:44024C83-8409-4E82-AFA8-84F90B097C28@microsoft.com...
> I've been testing the MediaElement to play some hi-def video I've recorded
> off my ATSC capture card. The video is in dvr-ms format (MPEG2) and using
> VMR9 it results in about 50% CPU utilization on my computer (Athlon XP
> 3200)
> under WinXP SP2. If I play the same video in the MediaElement it results
> in
> 100% utilization and a lot of dropped frames using the June CTP.
> Will the performance get significantly better in the final release?
> Would the performance be better under Vista?
> If none of the above, would I be better off getting a new video card or a
> new CPU to improve the playback? And what would be the minimum necessary
> to
> play hi def video smoothly using the MediaElement?
>



My System SpecsSystem Spec
Old 07-12-2006   #3 (permalink)
=?Utf-8?B?TmljayBQYWxtZXI=?=
Guest


 

Re: MediaElement Performance

Not sure if this changes anything but I did notice something after I made my
initial post.
I am using the Nvidia PureVideo MPEG2 codec; when I play the file using the
VMR, the codec shows it is using "DirectX VA mode C (idct)" and when using
the MediaElement it shows "software YUY2". I tried the intervideo codec and
it didn't perform any better so I assume it was using software mode as well
although I don't know how to check.
So I guess my question is: Is this a bug with the MPEG2 codecs or the
MediaElement or is it by design?
I really want to be able to have a translucent UI overlay. I've developed a
work around that uses VMR9 and a custom allocator/presentor to copy the UI
(using RenderTargetBitmap) onto the D3D surface and return HTTRANSPARENT in
the WM_NCHITTEST event but it’s not ideal obviously. But I guess that will
have to do until I upgrade to a Dual Core processor

Thanks!

"Ed Maia [MSFT]" wrote:

> Hello Nick,
>
> Unfortunately, we don't expect performance of the MediaElement to improve a
> great deal. There is basically an added cost of the advanced compositing of
> video that WPF provides. We have seen HD videos playing very well on dual
> core machines with an 256MB memory video card. It is hard to say what the
> bottleneck on your system is, but I would make sure your video card has
> enough memory to store the video samples (which can get pretty large with HD
> videos).
>
> As a guideline, I would make sure you are not using the MediaElement inside
> of a VisualBrush if not strictly necessary, and also that you are displaying
> the video at its natural resolution.
>
> Another option to explore if you really want CPU usage to be as low as
> possible is to host the Windows Media Player OCX inside of WPF by means of
> an HwndHost. Our SDK has a sample of this under Interop.
>
> Hope this helps.
>
> Thanks,
> Ed
>
> "Nick Palmer" <Nick Palmer@discussions.microsoft.com> wrote in message
> news:44024C83-8409-4E82-AFA8-84F90B097C28@microsoft.com...
> > I've been testing the MediaElement to play some hi-def video I've recorded
> > off my ATSC capture card. The video is in dvr-ms format (MPEG2) and using
> > VMR9 it results in about 50% CPU utilization on my computer (Athlon XP
> > 3200)
> > under WinXP SP2. If I play the same video in the MediaElement it results
> > in
> > 100% utilization and a lot of dropped frames using the June CTP.
> > Will the performance get significantly better in the final release?
> > Would the performance be better under Vista?
> > If none of the above, would I be better off getting a new video card or a
> > new CPU to improve the playback? And what would be the minimum necessary
> > to
> > play hi def video smoothly using the MediaElement?
> >

>
>
>

My System SpecsSystem Spec
Closed Thread
Update your Vista Drivers Update Your Drivers Now!!

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
MediaElement performance admin Avalon 1 07-24-2008 11:20 PM
MediaElement object Eagle Vista Avalon 1 07-19-2007 09:28 AM
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