aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortassaron22020-03-15 22:22:50 -0400
committertassaron22020-03-15 22:22:50 -0400
commiteadf0e59fda3b442bf660b562c5fc4a70ba18c33 (patch)
tree2e0fada254144edf27f3c8a66056ebbd3ae0631c
parent22978a0635e906f8ebfa1de81cdc38fd96aad756 (diff)
quick update to be somewhat compatible with newer versions of Pillow, ffmpeg, and Ubuntu
-rw-r--r--README.md14
-rw-r--r--src/gui/mainwindow.py7
2 files changed, 12 insertions, 9 deletions
diff --git a/README.md b/README.md
index 5f4e1e7..c28ac35 100644
--- a/README.md
+++ b/README.md
@@ -19,13 +19,15 @@ Python 3.4, FFmpeg 3.3, PyQt5, Pillow-SIMD, NumPy
Installation
------------
-### Manual installation on Ubuntu 16.04
-* Install pip: `sudo apt-get install python3-pip`
-* If Pillow is installed, it must be removed. Nothing should break because Pillow-SIMD is simply a drop-in replacement with better performance.
-* Download audio-visualizer-python from this repository and run `sudo pip3 install .` in this directory
-* Install `ffmpeg` from the [website](http://ffmpeg.org/) or from a PPA (e.g. [https://launchpad.net/~jonathonf/+archive/ubuntu/ffmpeg-3](https://launchpad.net/~jonathonf/+archive/ubuntu/ffmpeg-3)). NOTE: `ffmpeg` in the standard repos is too old (v2.8). Old versions and `avconv` may be used but full functionality is only guaranteed with `ffmpeg` 3.3 or higher.
+### Manual installation on Ubuntu 20.04
+* Install ffmpeg: `sudo apt install ffmpeg`
+* Install pip: `sudo apt install python3-pip`
+* Install PyQt5: `sudo apt install python3-pyqt5`
+* Install dependencies to compile Pillow-SIMD: `sudo apt install python3-dev libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk`
+* Download audio-visualizer-python from this repository and run `pip3 install .` in this directory
+* Run the program with `avp` or `python3 -m avpython`
+* (Optional Note) If using a virtual environmennt, PyQt5 doesn't seem to work when installed from the setup.py. You can use `--system-site-packages --copies` to copy the system site-packages into your venv
-Run the program with `avp` or `python3 -m avpython`
### Manual installation on Windows
* **Warning:** [Compiling Pillow is difficult on Windows](http://pillow.readthedocs.io/en/3.1.x/installation.html#building-on-windows) and required for the best experience.
diff --git a/src/gui/mainwindow.py b/src/gui/mainwindow.py
index 81c5d7c..53a6bd1 100644
--- a/src/gui/mainwindow.py
+++ b/src/gui/mainwindow.py
@@ -320,12 +320,12 @@ class MainWindow(QtWidgets.QMainWindow):
# verify Pillow version
if not self.settings.value("pilMsgShown") \
- and 'post' not in Image.PILLOW_VERSION:
+ and 'post' not in Image.__version__:
self.showMessage(
msg="You are using the standard version of the "
"Python imaging library (Pillow %s). Upgrade "
"to the Pillow-SIMD fork to enable hardware accelerations "
- "and export videos faster." % Image.PILLOW_VERSION
+ "and export videos faster." % Image.__version__
)
self.settings.setValue("pilMsgShown", True)
@@ -336,7 +336,8 @@ class MainWindow(QtWidgets.QMainWindow):
ffmpegVers = checkOutput(
['ffmpeg', '-version'], stderr=f
)
- goodVersion = str(ffmpegVers).split()[2].startswith('3')
+ goodVersion = (str(ffmpegVers).split()[2].startswith('3') or
+ str(ffmpegVers).split()[2].startswith('4'))
except Exception:
goodVersion = False
else: