2019-02-02 19:43:21 +01:00
2019-02-02 19:43:21 +01:00
2019-02-01 08:46:20 +01:00
2018-06-07 14:38:04 +02:00
2013-05-16 21:25:23 +02:00
2019-02-02 19:43:21 +01:00
2019-02-02 19:43:21 +01:00
2019-02-01 08:55:36 +01:00
2019-02-01 08:55:36 +01:00
2019-02-01 08:46:20 +01:00
2019-02-01 08:46:20 +01:00
2018-01-13 12:46:12 +01:00
2019-02-01 08:46:20 +01:00
2019-02-02 19:43:21 +01:00
2019-02-02 19:43:21 +01:00
2019-02-01 08:46:20 +01:00
2019-02-02 19:43:21 +01:00
2019-02-02 19:43:21 +01:00
2019-01-28 08:22:20 +01:00
2019-01-17 18:15:23 +01:00
2018-06-05 15:12:11 +02:00
2019-01-17 18:15:23 +01:00
2019-01-17 18:15:23 +01:00
2019-02-01 11:45:33 +01:00
2018-06-30 15:31:26 +02:00
2019-01-17 18:15:23 +01:00
2019-01-17 18:15:23 +01:00
2019-02-01 08:55:36 +01:00

Untrunc

Restore a damaged (truncated) mp4, m4v, mov, 3gp video. Provided you have a similar not broken video. And some luck.

You need:

  • Another video file which isn't broken
  • Basic ability to use a command line

Building

In certain cases a specific version of ffmpeg is needed. Untrunc works great with ffmpeg 3.3.9.

with system libraries

sudo apt-get install libavformat-dev libavcodec-dev libavutil-dev
# get the source code
make
sudo cp untrunc /usr/local/bin

with local libraries

Just use following commands, make will do the rest for you.

sudo apt-get install libva-dev liblzma-dev libx11-dev libbz2-dev zlib1g-dev yasm pkg-config wget
make FF_VER=3.3.9
sudo cp untrunc /usr/local/bin

Using

You need both the broken video and an example working video (ideally from the same camera, if not the chances to fix it are slim).

Run this command in the folder where you have unzipped and compiled Untrunc but replace the /path/to/... bits with your 2 video files:

./untrunc /path/to/working-video.m4v /path/to/broken-video.m4v

Then it should churn away and hopefully produce a playable file called broken-video_fixed.m4v.

That's it you're done!

(Thanks to Tom Sparrow for providing the guide)

Help/Support

Reporting issues

Use the -v parameter for a more detailed output. Both the healthy and corrupt file might be needed to help you.

Donation

If you managed to recover the video, help me to find time to keep working on this software and make other people happy. If you didn't, I need more corrupted samples to improve the program and I might solve the issue, who knows... so write me.

Donations can be made at my page, http://vcg.isti.cnr.it/~ponchio/untrunc.php, and promptly converted into beer.

Thank you.

S
Description
Restore a truncated mp4/mov. Improved version of ponchio/untrunc
Readme
2.4 MiB
Languages
C++ 89.9%
C 7.5%
Makefile 2%
Dockerfile 0.4%
QMake 0.2%