Skip to main content

Convert videos to iOS Live Photos

Project description

How to convert a video to live photo on MacOS?

What?

这是一个把视频转换为live photo的工具。

  1. 前提
  • MacOS 系统
  • ffmpeg 工具
  • Python 3.8+
  1. 首先 安装下 pypi 包
pip install -U video2live
  1. 然后运行命令
video2live ./inifity.mp4 output

  1. 转换后的结果会放到指定目录下,同时默认会导入到照片中合成

Why?

最近很 多社交平台都开始支持live图格式,而且之前看别人把非常炫酷的延时视频制作为live图,感觉非常有趣,所以就想着写个工具来玩玩。

How?

  1. 使用 moviepy 提取视频的第一帧图片作为封面
  2. 使用 ffmpeg 把视频转为mov格式
  3. 最终用 makelive 为 mov 和 jpeg 添加 metadata 信息,导出为同名但不同格式的文件。
  4. 最后使用 apple 脚本,把文件导入到照片中合成。

项目地址

欢迎 star 和 fork video2live

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

video2live-0.0.7.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

video2live-0.0.7-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file video2live-0.0.7.tar.gz.

File metadata

  • Download URL: video2live-0.0.7.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for video2live-0.0.7.tar.gz
Algorithm Hash digest
SHA256 9f56c78613c6190dc0c509abedee5bb10c3b3894672f65bedcd1c17585057943
MD5 9f7a96666d86abdf6327ac02b0c270cb
BLAKE2b-256 9626217031c0a8fba53cb9d99699ff3473183087e198534621c2be83d91887b3

See more details on using hashes here.

File details

Details for the file video2live-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: video2live-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for video2live-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 91bcafabee8f54d584dc901033a6c5bfe9ccf951ec748d6279721dfdb3e89653
MD5 7c6efe5178c5d4acc7929fab5e6e5ced
BLAKE2b-256 b71b1b721daf0cadf24f77042d511e924146506ef2617eb61ec92e6b5f400160

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page