sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.7k stars 639 forks source link

Microsoft Media Foundation for Windows Phone 8 sample using SharpDX #99

Closed bytfx closed 11 years ago

bytfx commented 11 years ago

Hi

i'm new to using Microsoft media foundation. I noticed this sample which I found quite intriguing for WP8.

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj207074(v=vs.105).aspx

I noticed there is a SHarpDX.MediaFoundation library, can this be used for WP* as well to create the equivalent of this project.

I have been using and exploring media player framework although this project is quite good I found it does not give me a frame by frame capability i.e. save all frames locally on WP8 whilst Video is playing. More like a frame grabber.

my approach is if I can send the texture rendered in the WINRT project above to a cuberender in SharpDX then I can create bitmaps from the rendered textured videos. Is this possible?

Pls advice??

ArtiomCiumac commented 11 years ago

Not sure if I understood correctly your idea, but here is what I am thinking: Try to implement everything in C#, in this way the project will be much simpler. Check all interfaces used in tutorial above and make sure they are present in SharpDX for WP8. If yes - start to implement it step-by-step. If something is missing - feel free to open an issue or contribute with a fix.

bytfx commented 11 years ago

Hi

Yes, this is what I meant, however is it possible to use IMFSourceReader and WIC factory n To sharpDX to create and save bitmaps locally?

-----Original Message----- From: "Artiom Ciumac" notifications@github.com Sent: ‎6/‎28/‎2013 11:20 AM To: "sharpdx/SharpDX" SharpDX@noreply.github.com Cc: "bytfx" abamidel@gmail.com Subject: Re: [SharpDX] Microsoft Media Foundation for Windows Phone 8 sampleusing SharpDX (#99)

Not sure if I understood correctly your idea, but here is what I am thinking: Try to implement everything in C#, in this way the project will be much simpler. Check all interfaces used in tutorial above and make sure they are present in SharpDX for WP8. If yes - start to implement it step-by-step. If something is missing - feel free to open an issue or contribute with a fix. — Reply to this email directly or view it on GitHub.

ArtiomCiumac commented 11 years ago

According to http://sharpdx.org/forum/4-general/1255-direct2d-on-windows-phone-8 and http://social.msdn.microsoft.com/Forums/wpapps/en-US/a326eef8-d058-422c-8eb7-7c470258183e/how-to-use-direct2d-in-windows-phone-8-app WIC is not available on WP8 platform, therefore to save bitmaps locally you will need to find a different solution.

bytfx commented 11 years ago

Right, thanks for the quick and detailed response.

It looks like Microsoft messed up on this one. Waiting for windows blue looks like the only easy viable option.

I've been looking at different approaches to resolving this issue and everytime there's a dead end.

DirectX for WP8 doesn't have the methods so SharpDx wouldn't , was just optimistic....

-----Original Message----- From: "Artiom Ciumac" notifications@github.com Sent: ‎6/‎28/‎2013 1:16 PM To: "sharpdx/SharpDX" SharpDX@noreply.github.com Cc: "bytfx" abamidel@gmail.com Subject: Re: [SharpDX] Microsoft Media Foundation for Windows Phone 8 sampleusing SharpDX (#99)

According to http://sharpdx.org/forum/4-general/1255-direct2d-on-windows-phone-8 and http://social.msdn.microsoft.com/Forums/wpapps/en-US/a326eef8-d058-422c-8eb7-7c470258183e/how-to-use-direct2d-in-windows-phone-8-app WIC is not available on WP8 platform, therefore to save bitmaps locally you will need to find a different solution. — Reply to this email directly or view it on GitHub.

ArtiomCiumac commented 11 years ago

I am closing the issue for now. If you will have more questions - feel free to ask here or on http://www.sharpdx.org/forum