|
Mar
26
Written by:
Jeremiah Morrill
3/26/2008 1:02 AM
Here is a screen-shot of the VideoRendererElement I posted about yesterday. What you are seeing is a basic System.Drawing.Bitmap at 640x480, with Graphics class running FillRectange(), then FillEllipse() on it. The Bitmap's buffer is then sent to the VideoRendererElement at 30 FPS...all around 1 - 2% CPU usage.  Right now my API for the VideoRendererElement is asynchronous because I'm having COM thread apartment issues and this is just easier at the moment. Hopefully I can work around these issues. I'm just very grateful that .NET, COM and CLI/C++ integrate so nicely together! -Jer
Tags:
9 comment(s) so far...
Re: VideoRendererElement - First Milestone!
Congratulations, very well done! Although lots of people don't have a clue or use case for this, I believe it is very good news. The GUI advantages of WPF are awesome, and now they can be applied to custom rendering apps, e.g. video manipulation software. Now we can start making fullscreen WPF video applications WITH controls on top of a composed/mixed video stream. Just imagine a video player with effects with alpha blended GUI controls on screen (or PIP, webpages, etc.)
By Breakbild on
3/26/2008 1:27 AM
|
Re: VideoRendererElement - First Milestone!
Hi BreakBild,
WPF is awesome, though just asking questions like "Where's the next gen WPF video conferencing app (like iChat)?" or "Where's the WPF DVR applications?" There simply won't be any with the current WPF video-API. I know these use-case examples are pretty narrow, but it goes to show that anyone wanting to go beyond playing WMVs or AVIs are going to have a helluva time. Suppose somone had a non-DirectShow video library they wanted to use in WPF? They would either have to use a HWND host or make a DirectShow filter that wraps it. Even then, their application could not make calls to their DirectShow filter because all DShow magic happens behind the scenes.
Anyways, can't wait to finish this pig up. I'm excited to get it out in the wild!
By Jeremiah Morrill on
3/26/2008 2:06 AM
|
Re: VideoRendererElement - First Milestone!
Jeremiah, I completely agree that some sort of lower level DirectX surfaces support is a huge gap in the WPF implementation. I've researched quite a bit on this, and I hoped DirectX 10, Windows Media Foundation or WPF2 would bring the solution. Till now no action from MS.
I'll give you a bit of background on my scenario, maybe that will help you. I was (currently on hold due to WPF limitations) making a VJ application to mix multiple media streams and put some realtime effects on them. I build a DirectShow graph, and get the output as a DirectX9Surface/Texture from the WMP9 renderer (Custom allocator/presenter). Then I use this texture as a source in some shader transformations (direct3d HLSL stuff). I draw the final output on a custom direct3d window. If I look at your solution, I could get the raw data from it and feed it into your WPF element. This would give me complete control over my video + effects and display in WPF.
If I'm correct I believe your solution can be used in every Direct3D situation. You render your scene "offline", and the final frame is fed into your component. Pretty amazing!
By Breakbild on
3/26/2008 10:55 AM
|
Re: VideoRendererElement - First Milestone!
The summer update to .NET 3.5 includes pixel shader support. So I believe as long as you can get your custom video into WPF, you should be pretty much set for your VJ application.
I also saw a Mix08 session that showed off not only the pixelshaders, but Direct3D interop with no airspace issues. You can see WPF getting better and better in almost all areas, but sometimes it seems custom video is a red-headed stepchild.
-Jer
By Jeremiah Morrill on
3/26/2008 1:01 PM
|
Re: VideoRendererElement - First Milestone!
Sounds good. I remember working with Directshow also drove me crazy, so having that in a single control will ease things for a lot of developers. Keep up the good work!
By Breakbild on
3/26/2008 4:09 PM
|
Re: VideoRendererElement - First Milestone!
this is something i have been very interested in lately. thanks.
By replica fendi scarf on
1/5/2010 11:24 PM
|
|
ed hardy
ED Hardy Hoodies ED Hardy Hoodies Ed Hardy Swimwear Ed Hardy Swimwear ed hardy tops ed hardy tops ed hardy shoes ed hardy shoes ed hardy t shirt ed hardy t shirt ed hardy shirts ed hardy shirts christian audigier christian audigier ed hardy kids ed hardy kids Ed Hardy Sunglasses Ed Hardy Sunglasses ED Hardy belts ED Hardy belts ed hardy Bags ed hardy Bags ed hardy purse ed hardy purse ed hardy mens ed hardy mens ed hardy womens d hardy womens ed hardy mens shirts ed hardy mens shirts ed hardy mens tops ed hardy mens tops ed hardy mens hoodies d hardy mens hoodies ed hardy mens swim trunks ed hardy mens swim trunks ed hardy mens shoes ed hardy mens shoes ed hardy womens swimwear ed hardy womens swimwear ed hardy womens t shirt ed hardy womens t shirt ed hardy womens tops ed hardy womens tops ed hardy womens pants ed hardy womens pants ed hardy womens hoodies ed hardy womens hoodies ed hardy womens shoes ed hardy womens shoes ed hardy womens clothing ed hardy womens clothing
By ed hardy on
3/15/2010 9:21 PM
|
cheap nike shox
There are wide variety of Nike Shox for both men and women's selection.The Nike Shox Sale are best selling nowadays.Get your own Cheap Nike Shox now.It's definitely time for you to buy womens nike shox and wens nike shox, Wearing them will keep you in a perfect condition.
By nike shox on
3/16/2010 7:50 PM
|
|
|
|