MPEG-1 length how?
-
How can I retrieve an information about length (either in time or frames) from MPEG-1 file? I mean raw, without using any tools, not DirectX too. The problem is that using DirectX and some other SDK, I'm getting different results, since I've seen in the past that DirectX had several bugs (when working with MPEGs), I can't say for sure which one is right. The difference I get is 24 frames (25 fps, which is almost a second). Thanx Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
How can I retrieve an information about length (either in time or frames) from MPEG-1 file? I mean raw, without using any tools, not DirectX too. The problem is that using DirectX and some other SDK, I'm getting different results, since I've seen in the past that DirectX had several bugs (when working with MPEGs), I can't say for sure which one is right. The difference I get is 24 frames (25 fps, which is almost a second). Thanx Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
Still haven't found an answer (if anyone know, post please), but found that DirectX still have problems and I cannot work with it if I want frame-accurate :( Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
-
Still haven't found an answer (if anyone know, post please), but found that DirectX still have problems and I cannot work with it if I want frame-accurate :( Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer
Here's some header info for the MPEG file format which should help you: 1-4 byte Sequence header In Hex 000001B3 12 bits Horizontal size In pixels 12 bits Vertical size In pixels 4 bits Pel aspect ratio 18 bits Picture rate Mind the difference between bits and bytes here. Only the sequence header is four whole bytes, the rest are all a certain amount of bits. The picture rate stands for a certain frame rate: 1 = 23.976 frames/sec 2 = 24 3 = 25 4 = 29.97 5 = 30 6 = 50 7 = 59.94 8 = 60
-
Here's some header info for the MPEG file format which should help you: 1-4 byte Sequence header In Hex 000001B3 12 bits Horizontal size In pixels 12 bits Vertical size In pixels 4 bits Pel aspect ratio 18 bits Picture rate Mind the difference between bits and bytes here. Only the sequence header is four whole bytes, the rest are all a certain amount of bits. The picture rate stands for a certain frame rate: 1 = 23.976 frames/sec 2 = 24 3 = 25 4 = 29.97 5 = 30 6 = 50 7 = 59.94 8 = 60
Yep, thanx, found this one too, but it doesn't give me an info about the length... More I'm reading, more I'm thinking that there is not actual length is written into MPEG file... :( Anyway.. Vitec (SDK) does a good work, unlike DirectX, which couldn't be used for a frame-accurate editing :( Philip Patrick Web-site: www.stpworks.com "Two beer or not two beer?" Shakesbeer