diff options
| author | tassaron | 2026-01-14 13:58:40 -0500 |
|---|---|---|
| committer | tassaron | 2026-01-14 13:58:40 -0500 |
| commit | 0d844e93b7091f3417ff87f960baabdd493f428a (patch) | |
| tree | dc3246583880cc5fb556c29f700065e93074d373 /src/avp | |
| parent | 5af82c6a2b98bd0dd4cd573e53c8b15e42124753 (diff) | |
log PyQt version && update ffmpeg version check
Diffstat (limited to 'src/avp')
| -rw-r--r-- | src/avp/gui/mainwindow.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/avp/gui/mainwindow.py b/src/avp/gui/mainwindow.py index b0a564b..e7a5fe3 100644 --- a/src/avp/gui/mainwindow.py +++ b/src/avp/gui/mainwindow.py @@ -325,6 +325,7 @@ class MainWindow(QtWidgets.QMainWindow): self.drawPreview(True) log.info("Pillow version %s", Image.__version__) + log.info("PyQt version %s (Qt version %s)", QtCore.PYQT_VERSION_STR, QtCore.QT_VERSION_STR) # verify Ffmpeg version if not self.core.FFMPEG_BIN: @@ -341,7 +342,10 @@ class MainWindow(QtWidgets.QMainWindow): ffmpegVers = checkOutput( [self.core.FFMPEG_BIN, "-version"], stderr=f ) - goodVersion = str(ffmpegVers).split()[2].startswith("4") + ffmpegVers = str(ffmpegVers).split()[2].split(".", 1)[0] + if ffmpegVers.startswith("n"): + ffmpegVers = ffmpegVers[1:] + goodVersion = int(ffmpegVers) > 3 except Exception: goodVersion = False else: |
