Google Answers Logo
View Question
 
Q: MPEG file header information ( No Answer,   2 Comments )
Question  
Subject: MPEG file header information
Category: Computers > Programming
Asked by: mpg_man-ga
List Price: $40.00
Posted: 22 Jun 2005 02:42 PDT
Expires: 06 Jul 2005 23:00 PDT
Question ID: 535776
I was interested in finding the total duration of an mpeg video file
and other information,
I understand that this can be done by looking at the frame headers of
the file but I donot know how to go about looking/accessiing the frame
headers of the file.

P.S I have used mpeg parser and similar programs but need the source
code or how to do it
Answer  
There is no answer at this time.

Comments  
Subject: Re: MPEG file header information
From: bananarchy-ga on 22 Jun 2005 06:33 PDT
 
With an MPEG, you probably won't be able to extract length from a
header... the file format is designed so that groups of frames can be
extracted and played independently.  (See
http://www.dv.co.yu/mpgscript/mpeghdr.htm for a more in-depth
explanation)  What that means is that unless the file's author
voluntarily included some sort of meta-information, there's no
guarantee that length or other file attributes are included within the
file.  Other formats require the use of that type of header, but not
most versions of MPEG.
Subject: Re: MPEG file header information
From: weelink-ga on 22 Jun 2005 14:43 PDT
 
Maybe this will help:

http://www.wotsit.org/download.asp?f=mpeg

It is the file format for mpeg video files. It gives you every
information you need to calculate the duration.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy