PDA

View Full Version : Video decoding using codec installed in windows


Fe++
17th September 2009, 09:11
Hi,
I want to ask any information about how windows media player and other MS-system media player decode mpeg stream using the codec installed in the system. I'm usually to use libavcodec api of ffmpeg in not-MS world, but now i necessarily use dynamic binding to codecs installed in the OS(if is possible). There is any standard api that I can use for access at this codec? There is any open source project that i can use as reference that use that video codec call design? If you know also any resource that can help me it's very appreciated. Many Thanks.
Best Regards

talen9
17th September 2009, 13:40
DirectShow API (http://en.wikipedia.org/wiki/DirectShow)

Fe++
17th September 2009, 18:54
Thanks, for manipulate frame i have to implement a transform filter using .net framework. Many thanks.

Midzuki
17th September 2009, 22:38
No, you don't have to use the dot NET framework.
DirectShow is a couple of years older than the "wannabe Java" from Microsoft. :devil:

JonE
18th September 2009, 12:08
Whilst I believe it is possible to write a transform filter in .NET it really isn't to be recommended (refer comments by various MVPs in the Microsoft Microsoft DirectX Video newsgroup (http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.win32.programmer.directx.video&lang=en&cr=US)). Nothing to do with C++ vs .NET personal prefferences, rather DirectShow uses C++ and it is way easier to implement the stuff in the native language.

Using the transform filter in a graph is a different matter thanks to the group responsible for the DirectShow.Net library (http://directshownet.sourceforge.net/) which sorts out all the scary .NET interop that would be required.

TTFN,
Jon