Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qquanwei/repair-mp4-timeline
https://github.com/qquanwei/repair-mp4-timeline
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/qquanwei/repair-mp4-timeline
- Owner: Qquanwei
- Created: 2024-03-23T13:40:48.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-04-06T16:23:42.000Z (9 months ago)
- Last Synced: 2024-04-06T17:29:07.261Z (9 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# repair-mp4-timeline
使用 ffmpeg 重编码视频文件,修复时间轴缺失。(仅在Windows上进行过测试)
主要解决:下载视频文件拖动播放会模糊,无法快速定位视频。
## 使用步骤
1. 下载 ffmpeg 并添加到环境变量中
一般 ffmpeg 使用 gyan 网站提供的即可,下载速度较快。https://www.gyan.dev/ffmpeg/builds/
2. 安装 node v18 及以上版本
2. 克隆工程到本地,并安装依赖
```
git clone https://github.com/Qquanwei/repair-mp4-timelinecd repair-mp4-timeline
npm i --registry=https://registry.npmmirror.com
```3. 使用本工具对mp4进行批量修复,**修复会覆盖原始文件,请谨慎**
```
node repaire-mp4-timeline.js.js /some/path/*.mp4
```将 /some/path/*.mp4 替换成实际路径即可,支持正则匹配多个文件。