Examples: Using hint track capabilities

The hint tracks feature allows a streaming server to create RTP streams from a 3GP file without requiring the server to know anything about the media type, compression, or payload format. The following examples show how to use hint tracks capabilities:

Creating a 3GP file with hint tracks

The following example shows how to create a 3GP file with hint tracks. A hint track will be added for each media stream.

Command

3gpapp –q -c newsample.3gp sample.namr sample.n263

Returned data

3gpapp - NMS Communications 2007 - v1.0.725
Adding RTP hint track.
CREATING newsample.3gp FROM sample.namr AND sample.n263
Reading data from file: sample.namr
BufferSize=91117, total read 91117 bytes
91117 bytes read in file: sample.namr
67808 bytes written in from file sample.namr to file: newsample.3gp
67808 bytes written in from file sample.namr to file: newsample.3gp
Reading data from file: sample.n263
BufferSize=234549, total read 234549 bytes
234549 bytes read in file: sample.n263
231429 bytes written in from file sample.n263 to file: newsample.3gp
231429 bytes written in from file sample.n263 to file: newsample.3gp

Using hint tracks from a 3GP file to packetize media data

The following example shows how to use hint tracks from a 3GP file to packetize media data.

Command

3gpapp –Q –e newsample.3gp newsample

Returned data

3gpapp - NMS Communications 2007 - v1.0.725
Using RTP hint track.
EXTRACT from newsample.3gp INTO newsample.xxx FOR AUDIO AND VIDEO
91117 bytes copied to file: newsample.namr
Total: 1401609 bytes copied to file: newsample.namr
234549 bytes copied to file: newsample.n263
Total: 234549 bytes copied to file: newsample.n263