Easily cut the video by moviepy
Project description
介绍
使用python来剪辑视频!
借助moviepy这个库
github repo:
https://github.com/chunleili/cut_video
用法
首先安装moviepy
pip install moviepy
你需要提供的视频名为: full.mp4
然后在clip_to_erase.json中输入需要剪辑去掉的部分
例如
[ ["0:22", "1:14"],
["1:25", "1:30"],
["2:13", "2:25"]
]
代表我想要去掉0:22-1:14, 1:25-1:30 和2:13-2:25 这三个时间片段, 保留剩下的。
最后运行脚本
(如果是Windows,双击run.bat即可)
python cut_video.py
或者如果你安装了jupyter,也可以运行ipython脚本
cut_video.ipynb
结果在 final.mp4当中
(你也可以通过--input "full.mp4"和--output "final.pm4"来指定任意的文件名(绝对路径))
视频教程
请见视频教程
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cut_video-0.0.5.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for cut_video-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58fb80b1d4d5c33aec62eef273990e5c5ad800f72d2fdd6388de4ef6b1b41708 |
|
MD5 | 01c53b308a024a42c9004523ab2bf321 |
|
BLAKE2b-256 | 49899eff5f2843e2b723a6b1528d3c5eba446fc3dd99fad4be5716a1c17a6813 |