The FLV timestamp field is only 24 bits. A stream will hit this in less than 5 hours, starting from a timestamp of 0. In this case, write out the timestamp as an extended field for type-0 chunks (type0 is the only output chunk type that is supported right now).