Skip to main content
GameDev.net gamedev.net
🔒 Locked

Directshow capture

Started by _Daniel_ Jan 2, 2004 at 12:17 PM 5 replies 750+ views
Original Post
_Daniel_
_Daniel_
I just want to capture video from a camera, and save clips to files without stop the graph (Im using the preview while capturing video), how to do it? (I dont want to stop the graph) thanks, and sorry for my bad english
mdias
mdias
The "Sample Grabber" filter is your friend...

Hope I helped...


Kam1kaz3
mdias
mdias
Yes it can... unless you want to recompress the data you get from the sample grabber. If you do want to recompress the data to an AVI file etc you''ll have to create a filter of your own, so you can pause the data flow for on pin and continuing passing the data to the video renderer.

You''d have to do something like this:

// assuminh your source file is an AVI... (You can do it whether it is an AVI or not)

File Reader --> AVI Splitter --> MY FILTER --> Video Renderer
\
\-> Video Encoder --> Avi Muxer --> File Writer



Kam1kaz3
mdias
mdias
Yup, AP is right...
Then you can just use the filter''s interfaces to control whether a pin should de broadcasting data or not...

How could I forget that that filter existed???

*Smacks his head into the wall*


Kam1kaz3

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.