Skip to main content

Visualize waveform

Project description

SeeWav: animation generator for audio waveforms

Installation

You will need a decently recent version of python, most likely 3.6 or 3.7. You will need ffmpeg installed somewhere with sufficient codec support. If you are using conda, install it with conda install -c conda-forge ffmpeg. Alternatively, on OSX with Homebrew, you can run brew install ffmpeg.

# Optional, if you use conda, otherwise find a way to install it.
# conda install -c conda-forge ffmpeg
pip3 install seewave

Usage

seewave AUDIO_FILE [OUTPUT_FILE]

By default, outputs to out.mp4. Available options:

usage: seewav [-h] [-r RATE] [-c COLOR] [--white] [-B BARS] [-O OVERSAMPLE] [-T TIME] [-S SPEED] [-W WIDTH] [-H HEIGHT] [-s SEEK] [-d DURATION] audio [out]

Generate a nice mp4 animation from an audio file.

positional arguments:
  audio                 Path to audio file
  out                   Path to output file. Default is ./out.mp4

optional arguments:
  -h, --help            show this help message and exit
  -r RATE, --rate RATE  Video framerate.
  -c COLOR, --color COLOR
                        Color of the bars as `r,g,b` in [0, 1].
  --white               Use white background. Default is black.
  -B BARS, --bars BARS  Number of bars on the video at once
  -O OVERSAMPLE, --oversample OVERSAMPLE
                        Lower values will feel less reactive.
  -T TIME, --time TIME  Amount of audio shown at once on a frame.
  -S SPEED, --speed SPEED
                        Higher values means faster transitions between frames.
  -W WIDTH, --width WIDTH
                        width in pixels of the animation
  -H HEIGHT, --height HEIGHT
                        height in pixels of the animation
  -s SEEK, --seek SEEK  Seek to time in seconds in video.
  -d DURATION, --duration DURATION
                        Duration in seconds from seek time.

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

seewav-0.1.0.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file seewav-0.1.0.tar.gz.

File metadata

  • Download URL: seewav-0.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

File hashes

Hashes for seewav-0.1.0.tar.gz
Algorithm Hash digest
SHA256 33939625f796c9c4ab3fb37f79969d4a357212b95d8d4c5167748456f5932c57
MD5 943bbd7042dcd204e57ff5d29d8ba584
BLAKE2b-256 ecb7c67df0e7b79266dd4df7491d639155cf4203d329623b635b1673c95adf2d

See more details on using hashes here.

Supported by

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