Examples: Rebuilding 3GP files

The following examples show how to rebuild 3GP files:

Rebuilding a 3GP file using a playing duration limit

The following example shows how to rebuild the sample.3gp file using a playing duration of 10 seconds (10,000 milliseconds). The example puts data in a new 3GP file called sample_T10000.3gp. The data in this file can take up to 10 seconds to replay.

Command

3gpapp -r -t10000 sample.3gp sample_T10000.3gp

Returned data

3gpapp - NMS Communications 2005 - v1.0.725
REBUILDING sample.3gp INTO sample_t10000.3gp WITH AUDIO AND VIDEO
        File sample.3gp rebuilt into file sample_t10000.3gp for AUDIO AND VIDEO

GETTING FILE INFO FROM sample.3gp
        Descriptor:
          file type                      = 1 (3GP)
          format                         = 3gp5
          version                        = 512 (v5.2.0)

        Stream 0:
          stream type                    = 1 (AUDIO)
          stream id                      = 1
          stream codec                   = 1 (AMR)
          duration                       = 15980 ms
          stream data size               = 25568 bytes
          stream data rate               = 12.80 kbits/second
          sample avg rate                = 50.00 frames/second

        Stream 1:
          stream type                    = 2 (VIDEO)
          stream id                      = 2
          stream codec                   = 3 (H263)
          duration                       = 16116 ms
          stream data size               = 70723 bytes
          stream data rate               = 35.11 kbits/second
          sample avg rate                = 9.68 frames/second

GETTING FILE INFO FROM sample_t10000.3gp
        Descriptor:
          file type                      = 1 (3GP)
          format                         = 3gp5
          version                        = 512 (v5.2.0)

        Stream 0:
          stream type                    = 1 (AUDIO)
          stream id                      = 1
          stream codec                   = 1 (AMR)
          duration                       = 10000 ms
          stream data size               = 16000 bytes
          stream data rate               = 12.80 kbits/second
          sample avg rate                = 50.00 frames/second

        Stream 1:
          stream type                    = 2 (VIDEO)
          stream id                      = 2
          stream codec                   = 3 (H263)
          duration                       = 9976 ms
          stream data size               = 43542 bytes
          stream data rate               = 34.92 kbits/second
          sample avg rate                = 10.02 frames/second

Rebuilding a 3GP file using a size limit

The following example shows how to rebuild the sample.3gp file using a size limit of 50000 bytes. The example puts data in a new 3GP file called sample_S50000.3gp. It limits the size of this file to 50000 bytes.

Command

3gpapp -r -s50000 sample.3gp sample_S50000.3gp

Returned data

3gpapp - NMS Communications 2005 - v1.0.725
REBUILDING sample.3gp INTO sample_S50000.3gp WITH AUDIO AND VIDEO
        File sample.3gp rebuilt into file sample_S50000.3gp for AUDIO AND VIDEO

GETTING FILE INFO FROM sample.3gp
        Descriptor:
          file type                      = 1 (3GP)
          format                         = 3gp5
          version                        = 512 (v5.2.0)

        Stream 0:
          stream type                    = 1 (AUDIO)
          stream id                      = 1
          stream codec                   = 1 (AMR)
          duration                       = 15980 ms
          stream data size               = 25568 bytes
          stream data rate               = 12.80 kbits/second
          sample avg rate                = 50.00 frames/second

        Stream 1:
          stream type                    = 2 (VIDEO)
          stream id                      = 2
          stream codec                   = 3 (H263)
          duration                       = 16116 ms
          stream data size               = 70723 bytes
          stream data rate               = 35.11 kbits/second
          sample avg rate                = 9.68 frames/second

GETTING FILE INFO FROM sample_S50000.3gp
        Descriptor:
          file type                      = 1 (3GP)
          format                         = 3GP6
          version                        = 256 (v6.1.0)

        Stream 0:
          stream type                    = 1 (AUDIO)
          stream id                      = 1
          stream codec                   = 1 (AMR)
          duration                       = 7980 ms
          stream data size               = 12768 bytes
          stream data rate               = 12.80 kbits/second
          sample avg rate                = 50.00 frames/second

         Stream 1:
          stream type                    = 2 (VIDEO)
          stream id                      = 2
          stream codec                   = 3 (H263)
          duration                       = 7707 ms
          stream data size               = 33324 bytes
          stream data rate               = 34.59 kbits/second
          sample avg rate                =  9.99 frames/second