# Examples: Using SDP capabilities

The SDP feature allows an application to store and retrieve SDP information. The following examples show how to use SDP capabilities:

- Creating a 3GP file with SDP information

- Extracting SDP information from a 3GP file

## Creating a 3GP file with SDP information

The following example shows how to create a 3GP file with SDP information.

#### Command

3gpapp –p in.sdp -c newsample.3gp sample.namr sample.n263

#### Returned data

3gpapp - NMS Communications 2007 - v1.0.725
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

## Extracting SDP information from a 3GP file

The following example shows how to extract SDP information from a 3GP file.

#### Command

3gpapp –P out.sdp –e newsample.3gp newsample

#### Returned data

3gpapp - NMS Communications 2007 - v1.0.725
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

The user may check the SDP information in the file out.sdp.