Click here to Skip to main content
15,898,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: messy function that calculates values Pin
David Crow13-May-04 5:30
David Crow13-May-04 5:30 
GeneralRe: messy function that calculates values Pin
vividtang14-May-04 2:27
vividtang14-May-04 2:27 
GeneralAlpha-channel in the bitmap Pin
Eugene Pustovoyt12-May-04 22:23
Eugene Pustovoyt12-May-04 22:23 
GeneralRe: Alpha-channel in the bitmap Pin
Christopher Lloyd13-May-04 2:17
Christopher Lloyd13-May-04 2:17 
GeneralRe: Alpha-channel in the bitmap Pin
Eugene Pustovoyt13-May-04 2:56
Eugene Pustovoyt13-May-04 2:56 
GeneralRe: Alpha-channel in the bitmap Pin
Christopher Lloyd13-May-04 3:13
Christopher Lloyd13-May-04 3:13 
General//Need help in Directshow programming Pin
12-May-04 22:14
suss12-May-04 22:14 
GeneralRe: //Need help in Directshow programming Pin
Christopher Lloyd13-May-04 2:41
Christopher Lloyd13-May-04 2:41 
First, do you have any experience programming DirectShow - it's not trivial!

To work with an analogue input device is really no different to using a digital device. If you enumerate the available video capture devices you analogue card should be in the list. If it isn't then you don't have a WDM driver for the card and you can't use it with DirectShow.

Having found your device you'll need to add it to a filter graph and then check whether it's analogue input pin is connected to a video cross bar filter - this allows you to select which video input (on a multiple input card) you'll be taking the signal from (S-Video in your case).

You'll then need to set the cross bar to connect your chosen input pin to the cross bar output pin that's connected to the filter representing your device.

After this a call to GraphBuilder RenderStream for the capture pin on the capture filter will build the rest of the filter graph and you'll be able to render the output.

Of course there are LOTS of other things to consider and lots of other things you could do - such as recording to a file etc. The DirectX SDK has good documentation on DirectShow but be prepared to invest some time and effort - you won't be able to put somehting together quickly.

By the way, to better understand filter graphs you can try playing with GraphEdt.exe which is part of the SDK. In fact this is probably a good place to start with your capture card - try this:
1. Run graphedt
2. Select Graph|Insert filters
3. Open the Video capture sources list
4. Double click your capture card
5. Close the Insert filter dialog
6. Right click the capture pin on the filter and select Render Pin
7. Play the graph - you should see you video in a window.
Note: You may need to play with the video cross bar filter if it's present in the graph.

Good luck, Chris
GeneralRe: //Need help in Directshow programming Pin
lonely_life13-May-04 15:59
lonely_life13-May-04 15:59 
GeneralSystem Lock Pin
Arnav12-May-04 21:38
Arnav12-May-04 21:38 
GeneralRe: System Lock Pin
bikram singh12-May-04 22:25
bikram singh12-May-04 22:25 
GeneralRe: System Lock Pin
David Crow13-May-04 5:36
David Crow13-May-04 5:36 
Generalproblem about tray icon Pin
benben12-May-04 21:32
benben12-May-04 21:32 
GeneralRe: problem about tray icon Pin
DaFrawg13-May-04 1:21
DaFrawg13-May-04 1:21 
GeneralVB to VC++ Coding Function Pin
rasha200312-May-04 20:52
rasha200312-May-04 20:52 
GeneralRe: VB to VC++ Coding Function Pin
bikram singh12-May-04 22:17
bikram singh12-May-04 22:17 
GeneralRe: VB to VC++ Coding Function Pin
rasha200312-May-04 22:43
rasha200312-May-04 22:43 
GeneralRe: VB to VC++ Coding Function Pin
jmkhael13-May-04 3:30
jmkhael13-May-04 3:30 
GeneralRe: VB to VC++ Coding Function Pin
rasha200314-May-04 3:38
rasha200314-May-04 3:38 
GeneralVRML within Visual C++ MFC Application Pin
vadharah12-May-04 20:26
sussvadharah12-May-04 20:26 
GeneralRe: VRML within Visual C++ MFC Application Pin
David Chamberlain13-May-04 3:58
David Chamberlain13-May-04 3:58 
Questionhow to access variable from the another dialog box Pin
shiva shankar12-May-04 19:57
shiva shankar12-May-04 19:57 
AnswerRe: how to access variable from the another dialog box Pin
Maxwell Chen12-May-04 20:08
Maxwell Chen12-May-04 20:08 
AnswerRe: how to access variable from the another dialog box Pin
22491712-May-04 21:01
22491712-May-04 21:01 
AnswerRe: how to access variable from the another dialog box Pin
V.12-May-04 23:31
professionalV.12-May-04 23:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.