View Full Version : Mpeg header infos
Nemini
8th March 2003, 00:11
Hi all,
Does anyone know how to retrieve mpeg (1 & 2) header infos (total frames, width x heigth, ecc..) using Microsoft API?
tnx
Byez
Well, MPEGs dont really have like one header to say how long the film is. They have sequence headers put in to give the width & height. But to know the exact length you have to parse the entire file.
The closest youll get to find out what you need using Microsoft API is DirectShow (to get the length of file). Download my sourcecode for MPEGDecoder off my site and look at the MPEGInfo.cpp theres a function in there to get the file length using directshow.
-Nic
Nemini
8th March 2003, 14:46
Ok, I've downloaded it.
I'm not skilled in directshow programming (this would be my first time) but I've seen your code and I've realized i need some header files to compile correctly. Well, at least one of 'em (once compiled)
reports a list of streams.h error.
As I don't use Visual C++ but Borland C++ Builder, should I have special borland headers or anything similar?
P.S. I've downloaded the complete DirectX 9 SDK too, hope it may help.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.