Re: DVB and MPEG manipulation
"FritzH" <bester@fantail.net.nz> ha scritto nel messaggio
news:OSA9AnbeIHA.4684@TK2MSFTNGP06.phx.gbl...
Can anyone point me in the direction of what I need to know to do
this? I know it has something to do with MPEG-2 streams, but I don't
know 1) how to tune the DVB card, or 2) how to get a stream out of it,
or 3) how to render MPEG-2 video to an opengl texture, or if it can
even be done.
About rendering frames to OpenGL textures, there is a NeHe's lesson:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=35
but that code loads frames from AVI files.
To manage MPEG streams, I think you may consider DirectShow.
DirectShow is heavily COM-based, so I think you need some COM smart pointers
like CComPtr to help you in that job.
(You can use CComPtr also in MFC).
I've never done DirectShow advanced programming, and I think you may try
asking DirectShow questions to a specific forum. You may try the MSDN web
forums for that purpose.
I don't know if DirectShow SDK has code samples in it (once DShow was part
of DirectX, so if you downloaded DirectX SDK you got also DirectShow
samples; but now I'm not sure if DShow is still part of DirectX SDK...)
Giovanni