Advertisement

03.06.2008 at 08:21AM PST, ID: 23220064
[x]
Attachment Details

How to read an AVI DV file WITHOUT VFW (as it is deprecated), but e.g. with DirectX

Asked by lbertacco in Multimedia Programming, DirectX Graphics & Game Programming, Video Editing

Tags: Visual C++, 2005

Hi,

I'm writing a small program that reads an AVI DV file (captured from camcorder) and extracts metadata (timecode & timestamp). Currently I use the VfW interface (AVIFileOpen, AVIStreamRead,...) and everything works nicely. But when I tested it on real captured data (LARGE) I found out that VfW has a file size limit of 1GB (or maybe 2?). A typical DV Tape usually contains 1 hour of video which at 25mbps lead to an AVI file of about 13GB and VfW cannot handle it.
Looking for more info I found out that VfW is depecated, so what is the recommended way to read an AVI file nowadays???
Directshow seems to have been deprecated too, which leaves just DirectX but what DirectX functions should I use to read an AVI file ? Note that I don't want to read the video or audio stream but the metadata, so I either need some function to retrieve the metadata directly or a way to read the raw frames in DV format (and decode them myself).

In other words I need to: open avi file, check that it is in DV format, read some info (frame rate, number of frames,...), loop over all frames from first to last and for each frame retrieve timecode and timestamp.

An example would be very welcome.
Start Free Trial
 
Loading Advertisement...
 
[+][-]03.06.2008 at 08:22PM PST, ID: 21067329

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.07.2008 at 12:43AM PST, ID: 21068315

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.07.2008 at 03:38AM PST, ID: 21069072

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.07.2008 at 09:16AM PST, ID: 21072305

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.07.2008 at 09:44AM PST, ID: 21072557

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.07.2008 at 01:56PM PST, ID: 21074449

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.07.2008 at 05:29PM PST, ID: 21075446

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Multimedia Programming, DirectX Graphics & Game Programming, Video Editing
Tags: Visual C++, 2005
Sign Up Now!
Solution Provided By: Merete
Participating Experts: 2
Solution Grade: C
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628