Académique Documents
Professionnel Documents
Culture Documents
Introduction to DirectShow
playback or capture video and audio streams Support format
Advanced System Format (ASF) Motion Picture Experts Group (MPEG) Audio-Video Interleaved (AVI) MPEG Audio Layer-3 (MP3) WAV sound files
Introduction to DirectShow
automatically detects video and audio acceleration hardware Simplifies
Media playback, format conversion, capture task Provides access to the underlying stream control architecture you can create your own component to support new format
Introduction to DirectShow
Applications you can write
DVD player, video editing APs, AVI to ASF converter, MP3 players Digital video capture
Techniques
Component Object Model (COM) If you want to extend DirectShow, you need understand COM
DirectShow FAQ
What OS does DirectShow support?
Win98, Win2000, WinME, WinXP
DirectShow FAQ
What language can I use ?
DirectShow is designed for C++ VB access subset of the API Script based DVD or TV AP
DirectShow FAQ
Information
MSDN DirectX Developer Center
http://go.microsoft.com/fwlink/?LinkId=10138
Mail list
http://discuss.microsoft.com/archives/DIRECT XAV.htm
Use Net
microsoft.public.win32.programmer.directx.vi deo
FAQ
Books
Programming Microsoft DirectShow for Digital Video and Television DirectShow: Core Media Technology in Windows XP Empowers You to Create Custom Audio/Video Processing Components
FAQ
How do I build my application?
Header File Header file Dshow.h Required For All DirectShow APs
Library Files Library file Description Exports the Class ID (CLSIDs) Interface ID (IIDs) Exports the AMGetErrorText function, , link
Strmiids.lib Quartz.lib
FAQ
Detect whether DirectShow is installed?
IGraphBuilder *pGraph; HRESULT hr = CoCreateInstance (CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER, IID_IGraphBuilder, (void **) &pGraph);
Filter Graph
APs performs task by connecting chains of filters together
3
Filter Graph Manager filter graph Filter Graph Manager filter graph
When processing is completed, the application releases the Filter Graph Manager and all of the filters
Using COM
DirectX SDK
COM COM object COM interface COM lifetime C COM Macros DirectX COM Method