Examples: Displaying information from 3GP files

The following examples show how to display both general information and detailed information from 3GP files:

Displaying general information from a 3GP file

This example displays general information from the sample.3gp file.

Command

3gpapp -i sample.3gp

Returned data

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

Displaying detailed information from a 3GP file

This example displays detailed information from the sample.3gp file.

Command

3gpapp -d sample.3gp

Returned data

3gpapp - NMS Communications 2005 - v1.0.725
GETTING FILE INFO FROM sample.3gp
        Descriptor:
          file type                    = 1 (3GP)
          format                       = 3gp5
          version                      = 512 (v5.2.0)
-> detailed file information:
        Presentation:
          blk size                     = 28 (typ.= 28)
          creation time                = 3176198412
          duration                     = 16114 ms
          stream count                 = 2
          streams                      = 0
          [flags - reserved]           = 0x00000000
          [max bitrate - reserved]     = 0
          max interleave               = 1101 ms
         ----------------------------------------------
         Stream:
          blk size                     = 228
          * Header size                  = 64 (typ.= 64)
          stream type                  = 1 (AUDIO)
          codec                        = 1 (AMR)
          stream ID                    = 1
          creation time                = Wed Aug 25 09:20:12 2004
          [alternate group ID - rsvd]  = 0
          [switching group ID - rsvd]  = 0
          [select attributes - rsvd]   = 0
          duration                     = 15980 ms
          timescale                    = 1000 Hz
          media handler Name           = soun
          sample size                  = 32 bytes
          sample count                 = 799
          max sample size              = 0 (not available)
          byte count                   = 25568
          [flags - reserved]           = 0x00000000
          [start delay - reserved]     = 0
          => Stream data size          = 25568 bytes
          => Stream data rate          = 12.80 kbits/second
          => Sample avg rate           = 50.00 frames/second
          * Audio format size          = 12 (typ.= 12)
          channel count                = 2
          sample size                  = 16 bits
          [flags - reserved]           = 0x00000000
          * AMR mode set               = 0x0080 - 12.2 kbits/s
          mode chg period              = 0
          frames / sample              = 1
          vendor                       = VXYZ
         ----------------------------------------------
        Stream:
          blk size                     = 232
          * Header size                = 64 (typ.= 64)
          stream type                  = 2 (VIDEO)
          codec                        = 3 (H263)
          stream ID                    = 2
          creation time                = Wed Aug 25 09:20:12 2004
          [alternate group ID - rsvd]  = 0
          [switching group ID - rsvd]  = 0
          [select attributes - rsvd]   = 0
          duration                     = 16116 ms
          timescale                    = 90000 Hz
          media handler Name           = vide
          sample size                  = 0 (variable)
          sample count                 = 156
          max sample size              = 0 (not available)
          byte count                   = 70723
          [flags - reserved]           = 0x00000000
          [start delay - reserved]     = 0
          => Stream data size          = 70723 bytes
          => Stream data rate          = 35.11 kbits/second
          => Sample avg rate           = 9.68 frames/second
          * Video format size          = 16 (typ.= 16)
          width                        = 176 pixels
          height                       = 144 pixels
          layer                        = 0
          horiz resolution             = 72 dpi
          vert resolution              = 72 dpi
          [flags - reserved]           = 0x00000000
          * H263 level                 = 10
          H263 profile                 = 0
          [avg bitrate - reserved]     = 0
          [max bitrate - reserved]     = 0
          [vendor - reserved]          = VXYZ
          => Movie data size           = 94.03 kbytes
          => Movie data rate           = 5.84 kbytes/second