Skip to content

Common questions and problems

Chris Griffith edited this page Dec 14, 2023 · 19 revisions

Linux

WSL (Ubuntu)

sudo apt install libgl libegl libfontconfig libxkbcommon0 libwayland-cursor0

LibOpenGL.so.0 no shared object

Make sure you have libopengl0 installed through your package manager. It may go by a close but different name so may need to search for it.

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome.

On Ubuntu 22.04 right now need to manually set the env variable QT_QPA_PLATFORM to wayland.

QT_QPA_PLATFORM=wayland ./FastFlix

Snap unsupported

Please refrain from using the snap version of FFmpeg as it has serval issues. If you do plan on using it, it will at minimum need installed with devmode enabled to work at all with 2-pass encodings.

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

If you're on linux and experience this, you need to install some more packages for xcb.

Ubuntu

sudo apt install libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev libxcb-cursor0

openSUSE

zypper install libgthread-2 Mesa-libGL1 libxkbcommon0 qt6-wayland

Figuring out what's missing

If you're still having issues please set the env variable QT_DEBUG_PLUGINS=1 and put the output into an issue for me to look at

QT_DEBUG_PLUGINS=1 ./FastFlix

You will probably see a block like:

qt.core.library: "/venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so" cannot load: 
Cannot load library /venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so: 
(libxcb-cursor.so.0: cannot open shared object file: No such file or directory)

qt.core.plugin.loader: QLibraryPrivate::loadPlugin failed on "/venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so" 
: "Cannot load library /venv/lib/python3.11/site-packages/PySide6/Qt/plugins/platforms/libqxcb.so: 
(libxcb-cursor.so.0: cannot open shared object file: No such file or directory)"

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

Notice how it says it cannot find libxcb-cursor.so.0, which means you should search your package manager for that name before the .so.* part, aka in this case if I look in apt for libxcb-cursor I will see there is libxcb-cursor0 (there is also a -dev package, but you do not need those.) After installing any it says it's missing, it should work.

Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf

Move the fonts folder to a new location, and reinstall fontconfig to force a reconfiguration.

On Ubuntu / Debian:

mv /etc/fonts /etc/fonts.bak
sudo apt install fontconfig --reinstall

VAAPI: the requested VAProfile is not supported

Make sure you ase using the non-free mesa driver, for intel on ubuntu that is called intel-media-va-driver-non-free

Cannot mix incompatible Qt library () with this library ()

You will need to add a direct path to the correct QT library as an env variable LD_LIBRARY_PATH=:/usr/lib/x86_64-linux-gnu/qt6

Example by @dacorsa in https://github.com/cdgriffith/FastFlix/issues/535

Exec=env LD_LIBRARY_PATH=:/usr/lib/x86_64-linux-gnu/qt6 ; cd /app/FastFlix/ ; . venv/bin/activate ; venv/bin/python -m fastflix

FastFlix

High memory usage

If you have "Burn In" subtitles enabled, this is probably the cause. The "overlay" filter can use huge amounts of memory as reported by Zeid164.

Too many packets buffered for output stream 0:1.

You need to increase the Max Musing Queue Size, command line equivalent: -max_muxing_queue_size 1024

HDR colors washed out

This is generally due to the color space not being transferred correctly. Possibly a bt2020 video was turned into a bt709. If it is happening with FastFlix please raise an issue with the MediaInfo text of the input and output video and the command FastFlix generated, would really help in fixing it fast or figuring out why it is behaving that way.

Unrecognized option ...

You probably need to update FFmpeg.

Table of contents generated with markdown-toc