Easily cut the video by moviepy
Project description
介绍
使用python来剪辑视频!
借助moviepy这个库
github repo:
https://github.com/chunleili/cut_video
安装
你可以使用
pip install cut_video
来下载。(推荐,因为还会在你系统内安装同名的命令行工具)
或者直接clone这个repo
用法
在当前文件夹下
-
你需要提供mp4视频: full.mp4
-
你需要在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 这三个时间片段, 保留剩下的。
结果在 final.mp4当中
假如你使用pip的方式安装,只需要运行
cut_video
即可
其他运行方式
你还可以运行python脚本的方式来运行
python cut_video.py
或者如果你安装了jupyter,也可以运行ipython脚本
cut_video.ipynb
视频教程
请见视频教程
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cut_video-0.0.10.tar.gz.
File metadata
- Download URL: cut_video-0.0.10.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8420ed09d815f6766fe8e9c1f7276d53b3cebb286857d13196c242c2eb47145
|
|
| MD5 |
6f0195d93176fe1dbc88c0c2de62e5a3
|
|
| BLAKE2b-256 |
796424ff2d55a772633c1dded101c1c76ae1351f05e41e5840134f537b8118e5
|
File details
Details for the file cut_video-0.0.10-py3-none-any.whl.
File metadata
- Download URL: cut_video-0.0.10-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
971ebc86059ee6e1777b0bd3554576ac5dbe0f1e68056d23e991156506fc670c
|
|
| MD5 |
5192365a7fb1d5b7427a70ec50274a89
|
|
| BLAKE2b-256 |
0f089192aed4cb0047a092bdbdadb161ef9c114a23fbdb2bbf36398dda2d5601
|