Por Lucas, fundador de FixMyVideos · Actualizado el

Repair a Corrupted 3GP Video From an Old Phone

A .3gp file from an old phone that no player will open has, most of the time, lost one small part: the index the phone writes when you press stop. If the battery died, the memory card was pulled or the phone crashed while recording, that index was never written. The pictures and the sound are usually all still there. Players just have no way to find them.

The other common source is card recovery software. Files it brings back from a formatted or damaged card often lose their names, and they often contain pieces of other files mixed in. Both cases can often be repaired.

What is inside a 3GP file

3GP is the phone version of the MP4 format. The file starts with a short label (the bytes ftyp followed by a brand such as 3gp4 or 3gp5), then holds two big parts:

ftyp   "this is a 3GP file"
mdat   the recording: pictures and sound, one after the other
moov   the index: where each picture starts, how long it lasts, which codec

Phones of that era recorded the picture in H.263 or MPEG-4 Part 2, and the sound in AMR, a speech codec at 8000 samples a second. They wrote the pictures and the sound in turns: a few pictures, then a block of sound, then a few more pictures. The moov index comes last, when recording stops. Without it, a player sees a large block of bytes and no instructions.

For MPEG-4 Part 2 there is a second loss. The decoder settings, including the picture size, live inside that index. So the file loses both its map and the key to read the pictures.

What to try first, for free

  1. Open it in VLC. VLC reads 3GP natively and is more tolerant than the phone's own gallery or QuickTime. If VLC plays it to the end, the file is not damaged. You only need a player or a conversion, see the section on intact files below.
  2. Ask ffprobe. ffprobe yourfile.3gp on a file with no index answers "moov atom not found" (what that error means). That is the case this page is about.
  3. Look at the first bytes. xxd yourfile.3gp | head -1 on a Mac or Linux (HxD on Windows). A 3GP shows 66 74 79 70 33 67 70 (ftyp3gp) near the start. If the file is nothing but 00 00 00 00, there is no recording in it, whatever its size; our no valid MP4 found page lists the signatures of other formats.
  4. Keep the original and look for other copies. Old phone videos often exist twice: on the card and in a backup, a computer folder, an old message. If a recovery tool produced the file, run it again with other settings or try a second tool: it may find a cleaner copy. And never record or save anything new on that card, every write can overwrite what is left.

How a 3GP without its index is rebuilt

The engine reads the recording itself, picture by picture, and writes a new file around it.

  • Finding the pictures. Both picture formats start each picture with a fixed start code. H.263 pictures also carry their size and a time stamp in their header, so nothing has to be guessed. MPEG-4 Part 2 pictures carry a time stamp too, but the decoder settings went with the index.
  • Rebuilding lost decoder settings. The engine tries the picture sizes phones used, in both orientations, with each set of coding tools. A candidate is kept only if a sample of 12 keyframes decodes with no decoder message at all. 320x240 and 240x320 have the same number of 16-pixel blocks, so the decoder cannot tell them apart; the pixels can, because the wrong one shows a visible grid of seams.
  • Separating sound from pictures. Each AMR frame announces its own size in a one-byte header, so the sound written between two pictures can be walked back frame by frame and cut out cleanly.
  • Putting time back. The pictures' own stamps space them. When the phone wrote a long burst of sound after a single picture, the camera had stalled while the microphone kept going, so that picture is held on screen for the length of the burst instead of letting the picture run ahead of the sound.
  • Removing foreign pieces. Memory cards store files in fixed clusters of 4 KB or more. A recovery tool that picked the wrong clusters leaves runs of another file inside a picture. Those runs start and end on a cluster boundary, so the engine tries cutting at boundaries and keeps a cut only if the picture then decodes completely clean. A picture that is damaged in its own bytes is never trimmed.

The result is delivered as an MP4 with H.264 picture and AAC sound, the most widely supported pairing, so it opens on a current phone or computer without a special player.

What came back

On a real phone recording with no index, a half-megabyte MPEG-4 Part 2 clip at 320x240 and 15 frames a second, the old engine found "no recognizable video frames". The rebuild recovered all 169 pictures and almost 16 seconds of sound. Every picture decodes, with no decoder message; three of them carry real damage in their own bytes, which the decoder covers. The phone had stalled six times during that clip. A flat-rate rebuild put the picture 4.4 seconds ahead of the sound by the end; holding the picture across each stall keeps them together. We had no healthy recording from that phone to compare against, so the stall placement is read from the file's own sound, not checked against an original.

We also check the method on files we damage ourselves, so every picture can be compared with the original:

  • A 30-second 320x240 MPEG-4 Part 2 test recording with AMR sound, its index cut off: 361 of 361 pictures back, byte for byte, with sound within 10 ms of the picture.
  • Two 30-second test recordings, one in each picture format, with 64 KB and 160 KB of another file's clusters spliced into two pictures: 450 of 450 pictures back, both foreign runs cut at their exact boundaries, every frame at 41 dB PSNR or better against the original.

When the file is intact

If VLC plays it and ffprobe lists a video and an audio stream, nothing needs rebuilding. Some current players and editors refuse H.263 and AMR, so convert it once:

ffmpeg -i yourfile.3gp -c:v libx264 -crf 18 -c:a aac -b:a 64k yourfile.mp4

That writes an H.264 and AAC MP4 and leaves the original untouched.

What cannot come back

  • Bytes that were overwritten. If the card was reused, or the recovery tool wrote zeros or another file's data over part of the recording, those pictures are gone. The engine cuts foreign runs out of a picture, but it cannot put back what was there before.
  • Some phone formats. The rebuild does not read H.263 with custom picture sizes (H.263+), MPEG-4 Part 2 using B-frames, a picture size outside the common phone list, or MPEG-4 Part 2 paired with AAC sound instead of AMR, which some later Android phones wrote. Those files get an analysis that says so; you do not pay.
  • Sound that changes mode. AMR can switch bitrate or skip silence mid-recording. The engine assumes one constant mode, so a stretch after a switch may come back without sound.
  • A file of zeros. No size or name makes up for a recording that is not in the file.

Uploading your file

Upload the 3GP as it is, without converting it first. The analysis tells you which picture and sound format it found and how many pictures it recovered. If there is something to recover you get a free 5-second preview from your own file, once you have left an email address. You pay only if the preview shows your video: €6 under 2 GB, which covers any phone recording of that era, VAT included. Uploads are deleted automatically after 48 hours.

FAQ

My old phone video says "moov atom not found". Is it lost? Usually not. That message means the index is missing, not the recording. The pictures and the sound are normally still in the file and can be read without the index, as described above.

The file came from recovery software and will not play. Can it still be fixed? Often. Recovery tools frequently get most of a file right and mix in clusters from other files. The engine finds those foreign runs inside pictures and cuts them out. What the tool overwrote or never found is gone.

Do I need another video from the same phone? Not for the formats on this page. H.263 pictures state their own size, and MPEG-4 Part 2 settings are rebuilt by trial and accepted only when the pictures decode cleanly.

Will the repaired file still be a 3GP? No. It comes back as an MP4 with H.264 picture and AAC sound, because many current players and editors no longer open H.263 or AMR. The pictures are the same; only the packaging and codec change.

What happens to my file after upload? It is used only to analyse and repair your file, and it is deleted automatically after 48 hours. The details are on the privacy page.

Related

Upload your 3GP →

Vista previa gratuita · Sin compromiso

¿Todo listo para recuperar tu vídeo?

Sube tu archivo y obtén gratis una previsualización de 5 segundos en aproximadamente un minuto. Pague solo si la previsualización le parece correcta.

Sube tu archivo →