Merge pull request #2 from rikai/master

Updates to work with modern libraries
This commit is contained in:
martin 2016-09-07 20:48:35 +02:00 committed by GitHub
commit 0b7ddf898c
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ Download audio-visualizer-python from this repository and run it with `python3 m
* Download and install Python 3.4 from [https://www.python.org/downloads/windows/](https://www.python.org/downloads/windows/)
* Download and install PyQt4 for Python 3.4 and Qt4 from [http://www.riverbankcomputing.co.uk/software/pyqt/download](http://www.riverbankcomputing.co.uk/software/pyqt/download)
* Download and install numpy from [http://www.scipy.org/scipylib/download.html](http://www.scipy.org/scipylib/download.html). There is an installer available, make sure to get the one for Python 3.4
* Download and install Pillow from [https://pypi.python.org/pypi/Pillow/2.7.0](https://pypi.python.org/pypi/Pillow/2.7.0)
* Download and install Pillow from [https://pypi.python.org/pypi/Pillow/3.3.0](https://pypi.python.org/pypi/Pillow/3.3.0)
* Download and install ffmpeg from [https://www.ffmpeg.org/download.html](https://www.ffmpeg.org/download.html). You can use the static builds.
* Add ffmpeg to your system PATH environment variable.
@ -39,4 +39,4 @@ You can find an example video here:
License
-------
audio-visualizer-python is licensed under the MIT license.
audio-visualizer-python is licensed under the MIT license.

View File

@ -70,7 +70,7 @@ class Worker(QtCore.QObject):
# write to out_pipe
try:
out_pipe.stdin.write(im.tostring())
out_pipe.stdin.write(im.tobytes())
finally:
True
@ -89,4 +89,4 @@ class Worker(QtCore.QObject):
out_pipe.wait()
print("Video file created")
self.progressBarUpdate.emit(100)
self.videoCreated.emit()
self.videoCreated.emit()