PyFFclip
PyFFclip 是一个基于FFmpeg命令行实现的Python库,可以用于处理视频编解码、组合剪辑等操作。
安装
你可以使用pip安装PyFFclip:
pip install py-ffclip
使用
- 获取视频时长
from ffclip import FFVideoClip
clip = FFVideoClip("input.mp4")
print(clip.duration)
clip.write_video("output.mp4",fps=30,codec="libx264")
- 组合剪辑
from ffclip import FFVideoClip, FFImageClip, FFTextClip, FFCompositeVideoClip
clip1 = FFImageClip("input1.png")
bg_video = FFVideoClip("input2.mp4")
text1 = FFTextClip("Hello world!", fontsize=60, color="green", size=(500, 500)).set_duration(5).alpha(0.1)
composite_clip = FFCompositeVideoClip([bg_video, clip1, text1])
composite_clip.write_video("out.mp4")
Metadata
Release files for py-ffclip 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py_ffclip-0.0.2.tar.gz | 18.6 kB | Without provenance | Details for py_ffclip-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_ffclip-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for py_ffclip-0.0.2-py3-none-any.whl |
Total release size: 43.6 kB
Release files / py_ffclip-0.0.2.tar.gz
| Download URL | py_ffclip-0.0.2.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7024efbdbb2f14090b1c451160203c6b9098387264166acb1e7a95a221942428
|
|
BLAKE2b-256 checksum How to use checksums |
9971138ce1e97692836230f0ee5f4ccae91ff61e77b11f510e1d93343c664e55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / py_ffclip-0.0.2-py3-none-any.whl
| Download URL | py_ffclip-0.0.2-py3-none-any.whl |
|---|---|
| Size | 25.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34b66b3317ad0f0f673420e985114b32f4331b665d3db19f22fc834d1b1f4c02
|
|
BLAKE2b-256 checksum How to use checksums |
39554ac85e68ee3e96688e268407583099dd3f9ed918f88db42771c75dc824a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for py-ffclip 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.