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~~ ([GUI](#GUI) exists)
## About this fork
This fork improves the [original](https://github.com/ponchio/untrunc) in the following:
* more than 10 times faster!
* low memory usage, fixes [#30](https://github.com/ponchio/untrunc/issues/30#issuecomment-143744821)
* easier to build + automated [windows builds](https://github.com/anthwlock/untrunc/releases/latest)
* \>2GB file support
* ability to skip over unknown bytes
* generic support for all tracks with fixed-width chunks (e.g. twos/sowt)
* advanced logging system
* can stretch/shrink video to match audio duration
* compatible with new versions of ffmpeg
* handles invalid atom lengths
* supports GoPro and Sony XAVC videos
* many bugs got fixed, actively maintained
## Building
Windows users can download the latest version [here](https://github.com/anthwlock/untrunc/releases/latest).\
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 yasm wget
make FF_VER=3.3.9
sudo cp untrunc /usr/local/bin
#### GUI
The GUI is optional. It is included in the automated [windows builds](https://github.com/anthwlock/untrunc/releases/latest).\
You will need [libui](https://github.com/andlabs/libui). After that, just do
make untrunc-gui
#### CentOS 7
sudo yum -y install epel-release && sudo yum -y install git gcc-c++ yasm
git clone --depth 5 https://github.com/anthwlock/untrunc && cd untrunc
make FF_VER=3.3.9
sudo cp untrunc /usr/local/bin
## Docker container
You can use the included Dockerfile to build and execute the package as a container.\
The optional argument 'FF_VER' will be passed to `make`.
# docker build --build-arg FF_VER=3.3.9 -t untrunc .
docker build -t untrunc .
docker image prune --filter label=stage=intermediate -f
docker run -v ~/Videos/:/mnt untrunc /mnt/ok.mp4 /mnt/broken.mp4
## Snapcraft
If you have `snap`, you can use `sudo snap install --edge untrunc-anthwlock`.
[![untrunc-anthwlock](https://snapcraft.io//untrunc-anthwlock/badge.svg)](https://snapcraft.io/untrunc-anthwlock)
## 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 this software helped you please consider donating [here](https://www.paypal.me/anthwlock)!\
Donations will encourage me to keep working on this software, leading to more media being supported and better recovered files.
You might also want to consider donating to **ponchio**, see his instructions [here](https://github.com/ponchio/untrunc#helpsupport).
Thank you.
没有合适的资源?快使用搜索试试~ 我知道了~
untrunc:还原截断的mp4mov。 改进版的ponchiountrunc
共49个文件
cpp:19个
h:18个
yml:2个
5星 · 超过95%的资源 需积分: 50 5 下载量 80 浏览量
2021-04-30
22:43:06
上传
评论 1
收藏 91KB ZIP 举报
温馨提示
退缩 恢复损坏的(截断)的mp4,m4v,mov,3gp视频。 如果您有一个类似的,不中断的视频。 和一些运气。 你需要: 另一个没有损坏的视频文件 使用命令行的基本能力(存在 ) 关于这把叉子 该分叉在以下方面改进了: 快十倍以上! 低内存使用率,修复 易于构建+自动 > 2GB的文件支持 跳过未知字节的能力 对具有固定宽度的块(例如,二进制/ sowt)的所有轨道的通用支持 先进的测井系统 可以拉伸/缩小视频以匹配音频持续时间 与新版本的ffmpeg兼容 处理无效的原子长度 支持GoPro和Sony XAVC视频 许多错误已得到修复,并得到了积极维护 建造 Windows用户可以在下载最新版本。 在某些情况下,需要特定版本的ffmpeg。 Untrunc非常适合ffmpeg 3.3.9。 带有系统库 sudo apt-get install libavformat-dev
资源详情
资源评论
资源推荐
收起资源包目录
untrunc-master.zip (49个子文件)
untrunc-master
.dockerignore 71B
untrunc.pro 611B
COPYING 15KB
src
track.h 4KB
avc1
sps-info.cpp 2KB
avc-config.cpp 1KB
avc1.h 152B
nal-slice.cpp 3KB
avc-config.h 307B
sps-info.h 392B
avc1.cpp 3KB
nal.cpp 2KB
nal.h 852B
nal-slice.h 711B
common.cpp 11KB
file.cpp 6KB
track.cpp 26KB
codec.cpp 15KB
common.h 5KB
mp4.h 10KB
file.h 2KB
main.cpp 8KB
gui
win_generic.static.manifest 1KB
gui-helper.h 979B
gui.cpp 12KB
main.cpp 463B
win_resources.rc 241B
gui-helper.cpp 2KB
gui.h 1KB
atom.cpp 13KB
atom.h 3KB
AP_AtomDefinitions.h 18KB
mp4.cpp 57KB
mutual_pattern.cpp 5KB
hvc1
hvc1.h 152B
hvc1.cpp 2KB
nal-slice.cpp 526B
nal.cpp 2KB
nal.h 855B
nal-slice.h 333B
mutual_pattern.h 1KB
codec.h 1KB
Dockerfile 974B
.travis.yml 111B
snapcraft.yaml 862B
README.md 3KB
Makefile 4KB
.appveyor.yml 3KB
.gitignore 69B
共 49 条
- 1
FedAI联邦学习
- 粉丝: 20
- 资源: 4568
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1