.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Microsoft WPF options for playing HD Video?

Posted By:      Posted Date: October 04, 2010    Points: 0   Category :WPF
I'm writing a WPF app that needs to play HD video. As others have found MediaElement does not cope easily with HD. Windows Media Player on my machine plays the (.wmv) HD file smoothly and GraphEdit plays the file smoothly both by default and when I use EVR.

When using GraphEdit with both renderers my CPU barely goes above 30%.

When I play this video in my WPF app I barely get 3fps and it's simply unusable. I get similar non-performance when using MediaPlayer.

I know there's WPF MediaKit but, no offense to Jeremiah, I'd rather not use a solution built by individuals for a core part of this application. I'm also looking at the WMP control but MediaElement/MediaPlayer fits so nicely in with data binding and with MVVM.

What is it that's causing the MediaElement to perform so badly, and is there anything that can be done about it?

View Complete Post

More Related Resource Links

Video: Introducing Microsoft Office 2010

Learn what's new in Office 2010 and its integration with Microsoft SharePoint 2010, and discover how Business Connectivity Services (BCS) can connect both the client and server with no-code solutions. (Length: 6:26)

Video: Microsoft Office 2010 Development Tools

Visual Studio 2010, SharePoint Designer 2010, InfoPath 2010, and Access 2010 are tools a developer can use to build solutions for Office and SharePoint 2010. This video provides an introduction to these tools and how they have been greatly enhanced to support solution development. (Length: 4:38)

Video: Deploying Microsoft Office 2010 Applications

Video: Deploying Microsoft Office 2010 Applications Deploying Office Add-ins and SharePoint applications is the topic of this video. It touches on the issues that can slow adoption and the characteristics needed for enabling good deployment scenarios. It also provides an overview of SharePoint Solution (WSP) file and ClickOnce deployments. (Length: 6:14)

Video: Microsoft Office 2010 UI Customization (Custom Task Panes)

Learn about building custom task panes, one of the most widely used ways to enhance end-user productivity in Office. Developers can use custom task to bring the end user information and data from virtually any source, whether via WCF, Web services, BCS, or SharePoint Lists. (Length: 5:34)

Video: Microsoft Visio 2010 and Microsoft SharePoint Designer 2010 Workflow

Learn the specific roles Visio 2010 and SharePoint Designer 2010 play in the development process and how these tools can be used in concert to create a workflow. (Length: 13:22)

Video: Microsoft Office 2010 Client Workflow: Why Do We Need Workflow?

What are workflows and why do we need them? This video provides a foundational understanding for workflows and then discusses workflows in relation to SharePoint objects, List Items, Document Libraries, Document Sets, and Sites. (Length: 12:05)

Video: The Access Show: Demo of Microsoft Access 2010 Services and Web Databases

Ryan McMinn and Clint Covington have a big announcement for us - Access Services is new functionality as part of SharePoint 2010 that allows users to create databases with forms and reports that run in the browser. (Length: 24:00)

Playing video files in sharepoint

I uploaded Media file in sharepoint site. When click on video file, Windows media player open in my machine and got an error saying "Windows media player encountered a problem while playing a file". I have the same file in my local machine. It is playing fine. Only I have from sharepoint site.   Can some explain and solve the problem please? ItsMeSri

No sound when playing MPEG video in MediaElement

Hi, I am writing a multimedia centre using the WPF MediaElement control, the project is very mature and going really well. However I get no audio when my player plays a .MPG file. I have tried installing lots of different codec packages on my test machine but to no avail. The same files have audio when loaded in WMP but not in my WPF application. I am developing on an XP machine and on that I get sound, but on my target machine, Windows 7, no sound! Other formats such as AVI etc do not have this problem. Any ideas? Thanks in advance

Playing video's in an asset library

Hi, I've got an asset library with a bunch of video's in it. The aim is to get the videos playable in the browser. I see two possible ways to do this ootb with SharePoint 2010: a) create a corresponding publishing page for each video, add a media player web part and connect it to the video. As far as i can determine it appears as though you can't dynamically switch the source of the webpart so you need multiple webparts/pages to display all the videos, which i find abit messy. b)use the option built into the asset library where when you hover over a video you get the option to play. This method fits perfectly however when i click play, the video player stretches the video and distorts it (and also makes it run more sluggishly), and i can't seem to find a way to tell it what size to play the video at. I've used a 'Video' content type and set the 'Frame Height' and 'Frame Width' fields however it doesn't change anything. So there are 2 questions: 1) Is there any way to control the size of the player launched from the asset library? 2) Is it possible to dynamically change the source of media player webpart? e.g. webpart connection to an asset list or something along these lines?   Thanks in advance

WPF issues playing WMV video in Internet app

I have a WPF website app. I loaded a mediaelement and played a WMV video. I published the website but I can only see the video play from my machine via the website. I suspect it's just playing off the local drive? From any other computer it simply doesn't play, no errors.

Video (application/x-oleobject) not playing in Firefox,Chrome and Opera



I have a WebForm in which I need to play a video file (wmv, mpg or mpeg). Here is my code:

<object id="vid" width="320" height="240" 
style="position:relative; left:10;top:10;"
<param name="URL" value='<%=Session["videourl"]%>'/>
<param name="SendPlayStateChangeEvents" value="True" />
<param name="AutoStart" value="False" />
<param name="uiMode" value="full" />
<param name="PlayCount" value="9999" />

This works well in Internet Explorer. I get the little media player with its controls(play, stop, pause etc) and everything works fine. However, in Firefox (3.6.12), Opera, Chrome, I don't get anything, just a blank space where the media object should appear.

I did some googling and... the problem should be that, the object is an ActiveX control and only IE supports ActiveX, so thats why it only shows in IE. Well, can anyone give some suggestions to make this work in any browser (Firefox, Chrome, Opera)

Video: Using the Microsoft SharePoint 2010 SDK Help

Learn how you can use the documentation, samples, and IntelliSense files in the SharePoint SDK to help create SharePoint solutions.

Microsoft AJAX CDN

Content delivery networks (CDNs) are composed of "edge cache" servers that are strategically placed around the world at key Internet network points. These "edge cache" servers can be used to cache and deliver all types of content - including images, videos, CSS and JavaScript files.

Using a CDN can significantly improve a website's end-user performance, since it enables browsers to more quickly retrieve and download content. For example, instead of having a browser request for an image traverse all the way across the Internet to your web server to download, a CDN can instead serve the request directly from a nearby "edge cache" server that might only be a single network hop away from your customer (making it return much faster - which makes your pages load quicker).

TreeSelector : playing with generics and type inference

create a generic way to define a selection starting from a tree of objects, the most simpler way as possible.

Let's start with the beginning...
Here is a very simple little interface defining a node of the tree, basically, a value and the references to the child nodes.

Playing with Linq grouping: GroupByMany?

One of its features is grouping. Many people understand grouping like it is defined in Sql. Linq is implementing grouping quite the same way. Let's discover this syntax and how to make consecutive groups easier.

Microsoft's Collaborative Application Markup Language (CAML) Loop

discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend