把音频转换为视频,添加波形图。

david 07ab62c972 fix UI not shown & exception when background images is null vor 6 Jahren
.gitignore 38cfae0b4e add setup.py, automatic discovery for avconv/ffmpeg, add installation help to readme vor 9 Jahren
LICENSE e94d6a89ca add readme and MIT license vor 9 Jahren
README.md 4a3ff8bfce Use pillow if pyqt5 is installed (issue #17) vor 7 Jahren
core.py 07ab62c972 fix UI not shown & exception when background images is null vor 6 Jahren
main.py 07ab62c972 fix UI not shown & exception when background images is null vor 6 Jahren
main.ui 5487319dc1 Merge branch 'tassaron2-master' vor 7 Jahren
preview_thread.py 3502a9b69a fix for PyQt5 vor 6 Jahren
setup.py 38cfae0b4e add setup.py, automatic discovery for avconv/ffmpeg, add installation help to readme vor 9 Jahren
video_thread.py 07ab62c972 fix UI not shown & exception when background images is null vor 6 Jahren

README.md

audio-visualizer-python

This is a little GUI tool which creates an audio visualization video from an input audio. You can also give it a background image and set a title text.

I have tested the program on Linux (Ubuntu 16.04) and Windows (Windows 7), it should also work on Mac OS X. If you encounter problems running it or have other bug reports or features, that you wish to see implemented, please fork the project and send me a pull request and/or file an issue on this project.

I also need a good name that is not as generic as "audio-visualizer-python"!

Dependencies

You need Python 3, PyQt4, PIL (or Pillow), numpy and the program ffmpeg, which is used to read the audio and render the video.

Installation

Manual installation on Ubuntu

  • Get all the python stuff: sudo apt install python3 python3-pyqt4 python3-pil python3-numpy
  • If you have PyQt5 installed, get pillow (at least version 3.3.0) from pip: apt install python3-pip; pip3 install pillow
  • Get ffmpeg/avconv: You can either use avconv from the standard repositories (package libav-tools) or get ffmpeg from the website or from a PPA (e.g. https://launchpad.net/~jon-severinsson/+archive/ubuntu/ffmpeg. The program does automatically detect if you don't have the ffmpeg binary and tries to use avconv instead.

Download audio-visualizer-python from this repository and run it with python3 main.py.

Manual installation on Windows

Download audio-visualizer-python from this repository and run it from the command line with C:\Python34\python.exe main.py.

Manual installation on macOS

  • Install Homebrew
  • Use the following commands to install the needed dependencies:

    brew install python3
    brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvorbis --with-libvpx --with-opus --with-x265
    brew install qt
    brew install sip --with-python3
    brew install pyqt --with-python3
    pip3 install --upgrade pip
    pip3 install pillow
    pip3 install numpy
    

Download audio-visualizer-python from this repository and run it with python3 main.py.

Example

You can find an example video here: Youtube: A day in spring

License

audio-visualizer-python is licensed under the MIT license.