Sohaib
28th August 2006, 13:09
Hi:
I am trying to write an MPEG1 decoder...
I was wondering if anyone knew how to parse video information from a .mpg, or .m1v or .m4v stream -- I can get info on bitrates and aspect ratio but I dont know how to read off the length of the file in frames or seconds (or milliseconds).
Also, is there a good source that I can look at online for the structure of various headers that exist in these files?
I already have core decode functions working for the most part - its just really annoying that I dont know how long a video is/might be when I start playing it.
Any help would be greatly appreciated... thanks
I am trying to write an MPEG1 decoder...
I was wondering if anyone knew how to parse video information from a .mpg, or .m1v or .m4v stream -- I can get info on bitrates and aspect ratio but I dont know how to read off the length of the file in frames or seconds (or milliseconds).
Also, is there a good source that I can look at online for the structure of various headers that exist in these files?
I already have core decode functions working for the most part - its just really annoying that I dont know how long a video is/might be when I start playing it.
Any help would be greatly appreciated... thanks