Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to read date/time stamp within AVI file

Status
Not open for further replies.

klaushorst

Programmer
Feb 6, 2002
5
FR
Hello,
how can I get the date/time stamp out of an AVI with the DV Codec? I'm using the MS VFW API.

Thanks
-Klaus-
 
There are functions given for AVI file handling in SDK ..why don't you try with them..
 
Check out the MSDN for the folowing index "AviFile Functions", u will find some Windows SDK AVI functions.
If u simply want to read the date/time of the avi file u may use GetFileInformationByHandle, if u have a handle for your file. s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Hi,
maybe my question was not clear enough :(

I don't want to know the simple date/time of a file.

What I want to know is: How can I get the date/time stamp of a frame within an AVI file with a DV Codec.

An AVI is an Audio Video (multimedia) File, which contains audio stream(s) and video streams (s). The video stream contains frames (i.e. 25 frames/sec PAL format). These frames are compressed. This is done with the DV Codec. Somewhere inside of the compressed frames (maybe in the header) is a date/time stamp of each frame and I want to know, how can I get this information.

Regards
-Klaus-
 
I have studied all the API functions for AVI file, but there seam not to be any timestamp for each stream in the AVI File. Are u sure there is such thing.

Or maybe there is and MS does not want us to know.
U can look also at aviedit and aviview samples from the samples directory of a MSDN.

Greetings, s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
@IONELBURTAN
Thank you for your effort.
I'm absolut sure that there is somewhere a time/date information in the stream; it's something special of the DV Codec. Maybe I have to check all the header/data of the AVI.

Regards
-Klaus-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top