Log in

View Full Version : Video length in H.264


biggestone
23rd March 2005, 13:07
Hi guys,

I've been looking at some H.264 video samples and comparing them to the specifications. But one thing I can't find is how the video length is encoded; or put another way, how does the player determine the play length to display?

Is it calculated based upon bitrate and file size, or is there some other mechanism? Any help in this would be much appreciated.

Thanks

communist
23rd March 2005, 13:15
Huh? I guess:
amount of frames / specified fps = duration

buzzqw
23rd March 2005, 14:05
header ?

BHH

LordRPI
26th March 2005, 20:43
I'm no expert on AVC/H.264, but I'm sure the container it is stored in should have that info... except if it's raw h.264

biggestone
28th March 2005, 09:53
Well the unfortunate news; it's raw.

That why I can't look to the MPEG or AVI standards. I just can't see where it's mentioned in the H.264 standards.

Thanks

akupenguin
28th March 2005, 17:41
Raw H.264 is a stream. There is no duration recorded. For that matter, I can't think of any video or audio compression format that writes the duration in the compressed stream, they all depend on the container.