1 Star 0 Fork 0

wangzhankun/untrunc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Use the .pro file if you already have qtcreator installed, otherwise you can compile by command line (no dependencies).

g++  -o moovfirst main.cpp file.cpp atom.cpp log.cpp



Moovfirst changes the order of the atoms in an mp4 or a mov such that
the moov atom (the index of the video) is at the beginning.

Moovfirst takes two parameters, the input file and the output file (must be different).

This program has not been extensively tested, especially on large files, so TEST the output video before removing the original one.


for m in *.mp4;
do
./moovfirst "$m" "${m%.mp4}"_stream.mp4;
done;


If you feel confident add a mv to replace the original:

for m in *.mp4;
do
./moovfirst "$m" tmp.mp4;
mv tmp.mp4 "${m%.mp4}"_stream.mp4;
done;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangzhankun/untrunc.git
git@gitee.com:wangzhankun/untrunc.git
wangzhankun
untrunc
untrunc
master

搜索帮助