mickeyboss123 / haxevideo

Automatically exported from code.google.com/p/haxevideo
0 stars 0 forks source link

RTMP Extended timestamps #36

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
RTMP header timestamps are 24bit 1000th's of seconds. This gives a maximum
time stamp of 16777215, or 4hrs 39 minutes 37.215 seconds. The RTMP spec
(available at
http://www.adobe.com/devnet/rtmp/pdf/rtmp_specification_1.0.pdf ) specifies
that for timestamps of 0xFFFFFF or greater, the time stamp field in the
header (types 0, 1 and 2) should be set to 0xFFFFFF and an extended time
stamp field is "added" at the end of the regular header (big-endian 32 bit)

In testing, I've also found that the extended time stamp is sent for an
RTMP type 3 header where the "implied" time stamp is 0xFFFFFF or greater,
which to me is counter-intuitive as a type 3 header implies no change in
the time stamp

Original issue reported on code.google.com by jaroma...@gmail.com on 6 Sep 2009 at 7:41