visbeat3
This is a migration of visbeat from Python2 to Python3. Head over to an example notebook on Colab!
This work presents a visual analogue for musical rhythm derived from an analysis of motion in video, and shows that alignment of visual rhythm with its musical counterpart results in the appearance of dance. You can visit the official project page and demos for more infos.
Install
$ pip3 install visbeat3
Usage
import os
import time
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import visbeat3 as vb
source_video = vb.PullVideo(name='video', source_location='./data/01.mp4')
# You can also directly specify an audio
# source_audio = vb.Audio('./data/all star.mp3')
source_audio = vb.PullVideo(name='audio', source_location='./data/02.mp4')
synch_video_beat = 0
synch_audio_beat = 0
nbeats = 32
output_path = './result.mp4'
# If source_audio is from an audio file, use target=source_audio
warped = vb.Dancify(source_video=source_video,
target=source_audio.getAudio(),
synch_video_beat=synch_video_beat,
synch_audio_beat=synch_audio_beat,
force_recompute=True,
warp_type='quad',
nbeats=nbeats,
output_path=output_path)
Used By
video-bgm-generation: video background music generation.
Reference
@inproceedings{davis2018visual,
title={Visual rhythm and beat},
author={Davis, Abe and Agrawala, Maneesh},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops},
pages={2532--2535},
year={2018}
}
Metadata
Release files for visbeat3 1.0.1
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 |
|---|---|---|---|---|
| visbeat3-1.0.1.tar.gz | 22.5 MB | Without provenance | Details for visbeat3-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| visbeat3-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for visbeat3-1.0.1-py3-none-any.whl |
Total release size: 22.8 MB
Release files / visbeat3-1.0.1.tar.gz
| Download URL | visbeat3-1.0.1.tar.gz |
|---|---|
| Size | 22.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07ddc82948d3dd25e0692809904f18bdb1c6044f1d6047cf2b0399c76c43d42e
|
|
BLAKE2b-256 checksum How to use checksums |
a9d4db4bbdfce0d698733fb9d74b3b5b567645968ae2a2d506c3a2e25f287b95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Release files / visbeat3-1.0.1-py3-none-any.whl
| Download URL | visbeat3-1.0.1-py3-none-any.whl |
|---|---|
| Size | 333.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44f3e47ef8d05dd52430755dc044f3c325476c823ace54043d9b878424a7d7d9
|
|
BLAKE2b-256 checksum How to use checksums |
24c24c83a54ff549a30e71b762fb311c3b529f54768095240fb1fe0585ee3235
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Security for visbeat3 1.0.1
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.