I would like to learn how to show video from a tv capture card using directshow.net in the most
simplistic form. I dont care about audio or anything fancy, I just want to be comfortable with the basics
and move on from there.
All the examples I have tried on the net do not work. I am using DirectX 11 with a Hauppauge
WinTV-HVR-1250 in visual studio 2010 (C#).
Any help with this would be greatly appreciated.
Have you tried the CaptureTest sample from http://www.LimeGreenSocks.com/DShow? It isn't a "simple" example, but I have used it with a Hauppauge card before.
I did get this to compile, but no matter what setting I choose, it gives me a green screen or a red screen.
Is that because I am receiving a digital signal and the program was written for a analog?
What kind of signal do you receives (Analog NTSC or Digital ATSC) ?
Because they are handled differently in DirectShow...
I assume Digital ATSC since everything is digital now.
OK, So the best sample for you is DTVViewer from the sample package.
It demonstrate how to use BDA but be warned that it only handle DVB-T and DVB-S so you must add the ATSC tunning part (should not be difficult once you have understand how things works).
Be also warned that since we never had the chance to have a tester with ATCS hardware,
most ATSC tunning interfaces are untested so you must work with a complete build of the library (see the readme file).
Before coding anything, try to build a graph in GraphEdit (or GraphStudioNext). This is important to understand how the graph is built.
This link is a little outdated but the main concepts are describe: http://msdn.microsoft.com/en-us/library/windows/desktop/dd695314%28v=vs.85%29.aspx
If you want to see examples of digital tuning code pick up the source code for EPG Collector (here on SF).
It tunes DVB-S/T/C and ATSC. It's all in the module BDAGraph1.cs in the EPG Collector - DirectShow project. It's fairly involved but you should be able to see the steps and the tuning parameters you need to set for ATSC.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.