gyroflow
gyroflow copied to clipboard
Can't stabilize videos on Debian 10
I'm running Debian 10 with KDE: installing gyroflow with poetry results in:
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx.
Aborted
If I install every dependency manually and try to open a video file:
nik@nik-deb-desktop:~/repos/gyroflow$ python3 gyroflow.py
ffmpeg version 4.1.6-1~deb10u1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --prefix=/usr --extra-version='1~deb10u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Traceback (most recent call last):
File "gyroflow.py", line 1834, in open_video_func
self.video_info_dict["time"] = int(cap.get(cv2.CAP_PROP_FRAME_COUNT) / self.video_info_dict["fps"])
ZeroDivisionError: float division by zero
It seems like opencv is reporting 0 fps. I'm using opencv version opencv-python-4.5.1.48
I also had this problem in Fedora using dwm window manager. I changed the pyproject.toml to:
numpy = "^1.19.3" opencv-python = "~4.5.1"
then ran
poetry install
Then I removed the following file: /home/USERNAME/.cache/pypoetry/virtualenvs/gyroflow-XXX-py3.9/lib64/python3.9/site-packages/cv2/qt/plugins/platforms/libqxcb.so
@nuxnik Thanks for the info
Hi, I'm using Ubuntu 20.04.2 and I followed elvin chen intructions to get gyroflow to work, but I get the same error when I try to export the file, gyroflow itself has some bugs but it works fine. I can't understand why the software itself works good and crashes when I try to export a hopefully stabilized video
0.3.0.dev Ubuntu 20.04. Same error. I got the export when I unchecked the "Display preview during rendering"