Um pacote para converter vídeos em live-fotos, comum em dispositivos iOS.
Project description
Video to Live Photo Converter
Este pacote Python permite converter vídeos em live-fotos, um formato que combina uma foto estática com um curto vídeo ou gif, semelhante ao recurso Live Photos nos iPhones.
Funcionalidades
- Extrai uma foto estática de um vídeo.
- Cria um gif curto a partir de um vídeo para simular uma live-foto.
Pré-requisitos
Antes de iniciar, certifique-se de ter o Python instalado em seu sistema. Este projeto foi testado com Python 3.12.
Instalação
Clone o repositório para sua máquina local usando:
git clone https://github.com/seu-usuario/video2livephoto.git
Navegue até o diretório do projeto e instale as dependências:
cd video2livephoto
pip install -r requirements.txt
Como Usar
Para usar o pacote, execute o seguinte comando no terminal, substituindo path_to_video pelo caminho do vídeo e output_directory pelo diretório onde os arquivos resultantes serão salvos:
python -m video2livephoto.converter path_to_video output_directory
Testes
Para executar os testes, instale pytest se ainda não estiver instalado e execute:
pytest
Contribuição
Contribuições são sempre bem-vindas! Sinta-se livre para forkar o projeto, fazer suas alterações e enviar um pull request.
Licença
Distribuído sob a licença MIT. Veja LICENSE para mais informações.
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 video2livephoto-0.1.0.tar.gz.
File metadata
- Download URL: video2livephoto-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6fed67eb2ca6d008b9d6c78eaba0ef9874eff7c2938b00bd73a76b003bb7846
|
|
| MD5 |
675f969d6e06c909f5a56cf7f8afcbc6
|
|
| BLAKE2b-256 |
5486eb0369414bde7f3bf00765abf9efd1292f12a422aa22c4de2cba56b3fa16
|
File details
Details for the file video2livephoto-0.1.0-py3-none-any.whl.
File metadata
- Download URL: video2livephoto-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e1daeea4dc72149d6c4228f1c7a0b380a43237447898daa03d6c7b46c380321
|
|
| MD5 |
e21f9d83b41fda9994464428f6d81a47
|
|
| BLAKE2b-256 |
75b87172c62921c6f5531d5e687ea12837c33f57213f3bd41b1d8bc46a060c9e
|