Link to home
Start Free TrialLog in
Avatar of znakeeye
znakeeye

asked on

"DV Video" capture using StillCap sample

Hi!

I'm playing around with the StillCap sample in the DX9 SDK. I'm most interested in the capturing feature in that sample application. Unfortunately the captured video in StillCap, is extremely huge. Basically, what I need is this:
1. Capture video to disk using the same interfaces as in the StillCap sample.
2. The video must not be compressed too much (using DivX and similar is NOT acceptable).

I have got a sample file generated with a well-known video editing software. The format is "DV Video Encoder (768x576)".
Thus, I need to tell DX to capture the video stream using the DV Video Encoder. Exactly how would you modify the StillCap sample to accomplish this? Please note that I'm using a DV Camera for this, so the format should be compatible.

Any help is greatly appreciated. A working modification of the StillCap sample (capturing to disk using the DV Video Encoder) will be rewarded at once.

Thanks in advance!
Chris, Sweden
Avatar of _corey_
_corey_

The GrabBitmaps sample has more comprehensive code used for extracting from a replayed file, instead of a live feed moniker like StillCap does.

Avatar of znakeeye

ASKER

Well, if you need to capture video using a DV camera, in what manner would extraction from a replayed file be helpful?
Ah, from it streaming.  So you'll want to use the decoder.

That's really not that bad.  You   see how it setups the graph, and how it finds the source moniker.

Well, you need to find the decoder filter and add it to the graph.  You can find it by enumerating a category the same way the source is enumerated.  I believe the category is probably CLSID_LegacyAmFilterCategory  which has everything in the DirectShow Filters list if you open up GraphEdit.
Just to be sure that we're talking about the same thing, I'll explain more detailly what I want to do.
I want to connect a camera to the IEEE-port. When this camera is connected and chosen as the video input device in this StillCap application, I want to capture the video to an avi-file (DV Video-format). Sort of a live recording. The important thing here, is the DV-format (pure MPEG is by far too space insefficient).

I'll take a look at the CLSID_LegacyAmFilterCategory and see if I can get this working. Thanks for your comments.
ASKER CERTIFIED SOLUTION
Avatar of _corey_
_corey_

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial