Skip to main content

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


Download files

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

Source Distribution

video2livephoto-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

video2livephoto-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for video2livephoto-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e6fed67eb2ca6d008b9d6c78eaba0ef9874eff7c2938b00bd73a76b003bb7846
MD5 675f969d6e06c909f5a56cf7f8afcbc6
BLAKE2b-256 5486eb0369414bde7f3bf00765abf9efd1292f12a422aa22c4de2cba56b3fa16

See more details on using hashes here.

File details

Details for the file video2livephoto-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for video2livephoto-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e1daeea4dc72149d6c4228f1c7a0b380a43237447898daa03d6c7b46c380321
MD5 e21f9d83b41fda9994464428f6d81a47
BLAKE2b-256 75b87172c62921c6f5531d5e687ea12837c33f57213f3bd41b1d8bc46a060c9e

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