I am happy to announce the addition of video playback support using VLC libraries. This is essentially the same implementation as recently released in the Windows Library thread, but with several adjustments specifically for Linux.
I have tested it both in a virtualized Linux environment (Ubuntu) and on bare metal (Linux Mint on a laptop).
During testing, I discovered and fixed a critical bug in the SUB LoadVideo&, where:
It was incorrectly hardcoded as:
' default audio/video params
VLC_P(slot).AudioRate = 44100
VLC_P(slot).AudioCh = 2
But the correct way (now fixed) must be:
' default audio/video params
VLC_P(slot).AudioRate = _SNDRATE
VLC_P(slot).AudioCh = 2
Otherwise, the audio crackles - as if some samples were missing.
Aside from this fix, it is identical to the Windows version. The main difference is that I don’t need to share 190 MB of libraries here, as Linux requires these libraries to be installed system-wide for the program to function.
To install the necessary libraries, run these commands:
sudo apt update
sudo apt install vlc libvlc-dev
If the libraries are installed correctly, the following command will return the version number:
pkg-config --modversion libvlc
The attached ZIP file contains the .SO library (the wrapper between QB64PE and VLC), the source code for the wrapper, and the .BI, .BAS, and .BM files.
I have tested it both in a virtualized Linux environment (Ubuntu) and on bare metal (Linux Mint on a laptop).
During testing, I discovered and fixed a critical bug in the SUB LoadVideo&, where:
It was incorrectly hardcoded as:
' default audio/video params
VLC_P(slot).AudioRate = 44100
VLC_P(slot).AudioCh = 2
But the correct way (now fixed) must be:
' default audio/video params
VLC_P(slot).AudioRate = _SNDRATE
VLC_P(slot).AudioCh = 2
Otherwise, the audio crackles - as if some samples were missing.
Aside from this fix, it is identical to the Windows version. The main difference is that I don’t need to share 190 MB of libraries here, as Linux requires these libraries to be installed system-wide for the program to function.
To install the necessary libraries, run these commands:
sudo apt update
sudo apt install vlc libvlc-dev
If the libraries are installed correctly, the following command will return the version number:
pkg-config --modversion libvlc
The attached ZIP file contains the .SO library (the wrapper between QB64PE and VLC), the source code for the wrapper, and the .BI, .BAS, and .BM files.

