6CN Address encoder and decoder

Encoding

Address to encode in Origin at Packet.net Sunnyvale format:
  1. Stream Type:
  2. Service ID:
  3. Content Descriptor:
    1. Show/Serie ID:
    2. Episode ID:
  4. Chunk Descriptor:
    1. Profile:
    2. Duration (sec):
    3. Sequence number:

Decoding

Address to decode: