Forum archive - MPEG 1 - Can't parse stream

http://www.supermediastore.com/



Forum Archive Home -> Programming -> MPEG 1 - Can't parse stream



MPEG 1 - Can't parse stream

Fr3d posted 2009 Oct 18 19:20
Hello people,

I'm a newbie in mpeg files but i need to write a program to parse one. All was going smoothly when i got to one part where the hex dump of the mpeg stream looks like this:

... 00 00 01 00, 02 , 00 00 01 E0, ....

As you can see, separated by commas are the start codes for a Frame and a Video stream. What i don't get is that 02 in the middle, i mean wasn't it supposed to be followed by more 3 or 4 bytes? I suppose the answer is no because the mpeg file can be loaded into any mpeg player or inspector .

So my question is simples: What is happening here? I need to get the frame number and type, but i can't do that since the header has only one byte.....

Appreciate your help.




Login/Register to our forum to be able to post here.








Replay Media Catcher lets you record ANY streaming video and save on your computer! More info or download trial!
About   Advertise   Forum Archive   RSS Feeds   Statistics