Solved

"DV Video" capture using StillCap sample

Posted on 2004-04-05
7
889 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
0
Comment
Question by:znakeeye
  • 3
  • 2
7 Comments
 
LVL 8

Expert Comment

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

0
 

Author Comment

by:znakeeye
Comment Utility
Well, if you need to capture video using a DV camera, in what manner would extraction from a replayed file be helpful?
0
 
LVL 8

Expert Comment

by:_corey_
Comment Utility
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.
0
 

Author Comment

by:znakeeye
Comment Utility
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.
0
 
LVL 8

Accepted Solution

by:
_corey_ earned 400 total points
Comment Utility
Ok, I don't have time right this second to layout the whole graph for you, but maybe later if/when you have more questions.

1)  That FilterCategory will have stuff to do file saving and general things.

2)  The DV Encoder is in an encoder category.  CLSID_VideoCompressorCategory

However, it's hard for me to say exactly how this should go together.  I don't know if you'll have to grab from the source, decompress, and send to the file/encoder to have it save in DV format again.

I would STRONGLY suggest using the GraphEdit tool that comes with the DirectX SDK, to get the dv source, get an 'AVI Mux' filter from DirectShow filters.  This is what you need to send the data to the 'File Writer' filter in the same category.  Don't worry about the names, they are general.

So, between the DV Source and those saving filters, you need to see what is needed to run/save it.  Typically if you try to connect the DV Source straight to the Mux, GraphEdit will attempt to fill in the blanks the best it can.

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now