How to convert a video to live photo on MacOS?
What?
这是一个把视频转换为live photo的工具。
- 前提
- MacOS 系统
- ffmpeg 工具
- Python 3.8+
- 首先 安装下 pypi 包
pip install -U video2live
- 然后运行命令
video2live ./inifity.mp4 output
- 转换后的结果会放到指定目录下,同时默认会导入到照片中合成
Why?
最近很 多社交平台都开始支持live图格式,而且之前看别人把非常炫酷的延时视频制作为live图,感觉非常有趣,所以就想着写个工具来玩玩。
How?
- 使用 moviepy 提取视频的第一帧图片作为封面
- 使用 ffmpeg 把视频转为mov格式
- 最终用 makelive 为 mov 和 jpeg 添加 metadata 信息,导出为同名但不同格式的文件。
- 最后使用 apple 脚本,把文件导入到照片中合成。
项目地址
欢迎 star 和 fork video2live
Metadata
Release files for video2live 0.0.7
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 |
|---|---|---|---|---|
| video2live-0.0.7.tar.gz | 4.5 kB | Without provenance | Details for video2live-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| video2live-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for video2live-0.0.7-py3-none-any.whl |
Total release size: 9.6 kB
Release files / video2live-0.0.7.tar.gz
| Download URL | video2live-0.0.7.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f56c78613c6190dc0c509abedee5bb10c3b3894672f65bedcd1c17585057943
|
|
BLAKE2b-256 checksum How to use checksums |
9626217031c0a8fba53cb9d99699ff3473183087e198534621c2be83d91887b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / video2live-0.0.7-py3-none-any.whl
| Download URL | video2live-0.0.7-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91bcafabee8f54d584dc901033a6c5bfe9ccf951ec748d6279721dfdb3e89653
|
|
BLAKE2b-256 checksum How to use checksums |
b71b1b721daf0cadf24f77042d511e924146506ef2617eb61ec92e6b5f400160
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for video2live 0.0.7
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.