Introduction
3GP is the video file of third-generation mobile phones, defined by the 3rd Generation
Partnership Project (3GPP). Phones of the 2000s recorded video and sent picture
messages as .3gp files. A sister format from 3GPP2, used on CDMA networks,
has the extension .3g2.
The files are small and low in resolution. The video is usually H.263, MPEG-4 Part 2 or H.264, and the audio AMR or AAC.
Structure
3GP is built on the ISO base media file format, like MP4.
The file is a sequence of boxes, each a 32-bit big-endian size and a four-letter type.
The ftyp box at the start names a 3GPP brand such as 3gp4,
3gp5 or 3gp6 (3g2a for 3GPP2), then
moov describes the tracks and mdat holds the media.
The rules are in 3GPP TS 26.244. The reference pages cover the brands and profiles, the sample entries for AMR, H.263, EVS and the other 3GPP codecs, the asset metadata boxes, and track selection, sample groups and fragment adjustment. Everything else is as in MP4.
Not described
The pages follow 3GPP TS 26.244 Release 19 (read through itecspec.com clause pages, because the ETSI PDF could not be rendered here) and the MP4 Registration Authority lists.
Known, not yet covered
- Reference: clause 9a (stereoscopic video), clause 11 (extended presentation), clause 12 (MSR key message tracks and protection description) and clauses 14 to 17 (timed metadata sample formats such as video orientation, location, quality and orientation) of TS 26.244.
- Reference: the structure of the
3gagbox (AnnexGstruc, defined in TS 26.234), the bit layout of theivcfIVASFormatStruc, the per-operation-point repetition inavcb, the quality metrics sample entry code and the DIMS entry. - Reference: the 3GPP2 sample entries
sevc,sqcpandssmv(3GPP2 C.S0050). - Viewer: the explorer reads 3GPP and 3GPP2 files with the same plugin as MP4 (a major brand that starts
3gp,3g2,3ge,3gg,3gh,3gm,3gr,3gsor3gt). It readsdamr,dawp,d263,bitr,tx3gwith itsftab, the asset boxes (titl,dscp,cprt,perf,auth,gnre,albm,yrrc,kywd,rtng,clsf,loci),tseland the AAC, AMR narrowband, AMR wideband and H.264 tracks (AMR and AMR-WB sound is decoded bit for bit as the 3GPP reference decoders do; see AMR). It shows the text oftx3gsamples but not their style boxes. It does not readthmb,orie,tfad,tfma,3gagor the sample entries of the 3GPP timed metadata. It does not decode AMR-WB+, EVS or EVRC speech, or any picture (H.263 and H.264 are named, not drawn).
Unknown
- Reference: how the pan value of
orieis packed (the table says a bit and a 32-bit integer, the text says 16.15), and whether thelocicoordinates are signed (they must be to describe all positions); the standard is unclear on both.
Links
Software
- VLC media player – free media player that plays 3GP and 3G2 files (Windows, macOS, Linux, mobile)
- mpv – free, minimal media player (Windows, macOS, Linux)
- HandBrake – free video converter that turns old phone videos into MP4 (Windows, macOS, Linux)
- FFmpeg – command-line tools that read, write and convert 3GP (Windows, macOS, Linux)
- GPAC and MP4Box – tools that inspect and build ISO base media files, including 3GP (Windows, macOS, Linux)
Developers
- libavformat – FFmpeg’s container library, which reads and writes 3GP (C)
- mp4box.js – reads ISO base media files in the browser (JavaScript)
Reference
- 3GPP – publisher of the 3GP specification, TS 26.244