We help IT Professionals succeed at work.

"DV Video" capture using StillCap sample

znakeeye
znakeeye asked
on
989 Views
Last Modified: 2013-12-08
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
Comment
Watch Question

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

Author

Commented:
Well, if you need to capture video using a DV camera, in what manner would extraction from a replayed file be helpful?

Commented:
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.

Author

Commented:
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.
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.