What are stream files?


The DataStreamer works on a stream file. The stream file contains all video, audio, and other data in a compressed and interleaved form and contains timestamps. This section explains basic concepts and terminology. Specifically:

Stream file preparation basics

Preparing the stream file involves two steps:

  1. Compressing data and creating chunk files of each type of data using the appropriate DataStreamer tools.

  2. Using the Weaver tool and a Weaver script to create a single stream file from the different chunk files. The stream file contains:


    The figure below shows an example of three files that have been merged into a single stream file with a stream header. The numbers are the timestamp associated with each data chunk. In the output stream, the shaded areas are filler placed in the stream to pad the data to the logical block size.

    Graphic cannot be displayed

    Figure 1: Three chunk files are merged to create a single stream file.

Stream file terminology

Select one of the following terms for more information:

Stream file

A file that contains interleaved data the DataStreamer library can parse and display.

You create a stream file using the Weaver tool and a Weaver script.

Chunk

An atomic packet of data of one type; the basic element of a stream.

Chunks are timestamped, some with duration. Chunks must be quad-byte aligned, Types include:

Streamblock

Streamblocks consist of interleaved chunks. Disc reads are done streamblock by streamblock.

Streamblocks must be quad-byte aligned. Streamblock size must be a multiple of media size, only one size per stream is possible. Size of streamblocks must match the buffers established by the library.

Stream time

Every chunk has a stream time, the time at which the chunk needs to be presented. Time is counted in audio folio ticks.

If you include the writemarkertable command in the script, the Weaver tool translates time into file offsets.