4

My phone ran out of space when recording a video. I have the 3gp file, but cannot open it. Any hints on how to open it an convert it into a working file?

Lloyd
  • 143
  • 1
  • 1
  • 4

1 Answers1

2

Try using ffmpeg and see if it can copy the file to another container - maybe only the container is broken. 3GP should be easy to convert to MP4.

ffmpeg -i input.3gp -c copy output.mp4
slhck
  • 223,558
  • 70
  • 607
  • 592
  • It gives a "header not found" error : – Lloyd May 03 '11 at 14:00
  • FFmpeg version SVN-r10635, Copyright (c) 2000-2007 Fabrice Bellard, et al. libavutil version: 49.5.0 libavcodec version: 51.44.0 libavformat version: 51.14.0 built on Oct 1 2007 15:21:19, gcc: 3.4.6 20060404 (Red Hat 3.4.6-8) [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb7f5dda0]mov: header not found !!! (err:0, moov:0, mdat:0) pos:36 simon.3gp: Error while opening file – Lloyd May 03 '11 at 14:01
  • 1
    Hm. Can you try with `-er 4` to enable error concealment? – slhck May 03 '11 at 14:27
  • Oh, and you have tried VLC, have you? – slhck May 03 '11 at 14:33
  • Yes I have tried VLC. And the `-er 4` option results in "Output file does not contain any stream" – Lloyd May 11 '11 at 12:55
  • @Lloyd Meh, if it can't even find the appropriate headers your file will proabably be too damaged. – slhck May 11 '11 at 13:26
  • Cool. Thanks for the options though. – Lloyd May 11 '11 at 18:57
  • Journeyman - why did you revert my edit? – Hashim Aziz Jan 11 '20 at 01:51
  • 1
    @Hashim It's fine, I reverted it to yours. Perhaps adding a description of *why* you changed it would have helped. Sometimes there are reservations w.r.t. “technical” edits, which AFAICT are more frequent on Stack Overflow. – slhck Jan 11 '20 at 18:12