Raylume

Raylume › Licences › LGPL libraries

LGPL libraries: sources and relinking

Raylume uses open-source libraries under the GNU Lesser General Public License. This page lists them for each platform, explains your rights, and says where to get the files to use a modified copy.

The libraries

LibraryUsed forPlatformVersionLicence
libnfsNFS sharesApple TV, Mac8.0.0LGPL 2.1 or later
libsmb2SMB sharesApple TV, Mac6.2LGPL 2.1 or later
VLCKit (TVVLCKit on Apple TV), with libvlc 3The fallback player, for files the system player cannot openApple TV, Mac3.7.3LGPL 2.1 or later
mpv (libmpv), built by us as libmpv-2.dllThe playerWindows0.42.0LGPL 2.1 or later (built without GPL parts)
FFmpeg, inside libmpv-2.dllReading and decoding video and audioWindows9.0.2 (tag n9.0.2)LGPL 2.1 or later (built without GPL and non-free parts)
libplacebo, inside libmpv-2.dllDrawing videoWindows7.387.0LGPL 2.1 or later
GNU FriBidi, inside libmpv-2.dllRight-to-left subtitle textWindows1.0.18LGPL 2.1 or later
Electron’s FFmpeg (ffmpeg.dll on Windows, libffmpeg.so on Linux)Part of Chromium inside Electron; Raylume’s player does not use itWindows, LinuxAs shipped with Electron 45.3.3LGPL 2.1 or later
mpv (libmpv 2.6.0), built by usThe playerLinux (Flatpak)0.42.0 (commit b0841e8c)LGPL 2.1 or later (built with -Dgpl=false)
FFmpeg, built by usReading and decoding video and audioLinux (Flatpak)9.0.2 (tag n9.0.2, commit 946fcce0)LGPL 2.1 or later (built without GPL, version 3 and non-free parts)
libplacebo, built by usDrawing videoLinux (Flatpak)7.387.0 (commit 275f7dea)LGPL 2.1 or later
libsecret, from the Electron base appKeyring accessLinux (Flatpak)0.21.7 (BaseApp 26.08)LGPL 2.1 or later
libspeechd, from the Electron base appText to speechLinux (Flatpak)0.12.1 (BaseApp 26.08)LGPL 2.1 or later
libdbusmenu-glib, from the Electron base appDesktop menusLinux (Flatpak)16.04.0 (BaseApp 26.08)LGPL 2.1 or LGPL 3

You can redistribute and modify each library under the terms of the GNU Lesser General Public License, as published by the Free Software Foundation. You may use version 2.1 of the licence or, at your option, any later version; libdbusmenu-glib is under version 2.1 or version 3, as its authors state. Each is distributed in the hope that it will be useful, but without any warranty, without even the implied warranty of merchantability or fitness for a particular purpose.

The full licence text is in each source archive: as LICENCE-LGPL-2.1.txt in the libnfs and libsmb2 folders, and in each upstream project’s own sources. In the Flatpak they are also installed in /app/share/licenses/<name>/.

Linux .deb and .rpm packages do not include libmpv or the FFmpeg it uses. They use the libmpv package from your distribution, which your distribution builds and licenses. The only LGPL library these packages include is Electron’s FFmpeg, listed above.

The Flatpak brings its own libmpv, FFmpeg and libplacebo, built by us without GPL parts, plus the base-app libraries and Electron’s FFmpeg listed above. The other system libraries it uses come from the Freedesktop 26.08 runtime, which Flatpak installs from Flathub and which is not part of the download.

How they are in the app

Each library is a separate file inside the app, so you can replace it with a modified copy without changing the rest. Replacing a library this way is called relinking.

Apple TV and MacEach is its own dynamic framework inside the app: CLibNFS.framework, CSMB2.framework, and TVVLCKit.framework on Apple TV or VLCKit.framework on Mac. On a Mac they are in Raylume.app/Contents/Frameworks.
Windowslibmpv, with FFmpeg, libplacebo and FriBidi built into it, is the file resources\libmpv\libmpv-2.dll in the folder Raylume is installed in. Raylume loads it when it starts and links nothing else to it. VERSIONS.txt beside it lists the exact version and commit of every part. Electron’s ffmpeg.dll is next to Raylume.exe.
LinuxElectron’s libffmpeg.so is next to the raylume program. libmpv is your distribution’s, loaded from the system as libmpv.so.2. In the Flatpak, libmpv, FFmpeg, libplacebo and the base-app libraries are separate shared libraries in /app/lib; Raylume loads libmpv when it starts.

libmpv-2.dll also contains, statically linked, code under other licences: libass (ISC), HarfBuzz (MIT), FreeType (FreeType License), zlib (zlib licence), shaderc and SPIRV-Tools (Apache 2.0), glslang (BSD 3-Clause and others), SPIRV-Headers (MIT), SPIRV-Cross (Apache 2.0), the GCC C++ runtime (GPL 3 with the GCC Runtime Library Exception) and winpthreads (MIT).

What we publish

For each release of Raylume on Apple TV and Mac we publish one archive named raylume-lgpl-<commit>.tar.gz, where <commit> is the source commit the release was built from. It holds:

VLCKit is used exactly as VideoLAN publishes it, prebuilt. Its complete source is VideoLAN’s, at code.videolan.org/videolan/VLCKit, tag 3.7.3.

For each Windows release we publish a source archive for its libmpv-2.dll: the exact sources of the LGPL parts (mpv, FFmpeg, libplacebo and GNU FriBidi) at the commits it was built from, the scripts that built it, and a list of every other component in the DLL with its upstream commit and licence.

For each Flatpak release we publish a source archive with the Flatpak manifest, the scripts that build it, and the exact sources of everything the manifest builds or bundles, each at the commit or release it was built from, listed in its SOURCES.txt. It also holds the Electron base app’s Flathub manifest, with its patches, at the commit Flathub built it from.

Electron’s FFmpeg is used exactly as the Electron project publishes it. Its source is Chromium’s copy of FFmpeg for that Electron version; Electron publishes the matching ffmpeg builds with each of its releases on github.com/electron/electron/releases.

Releases

Raylume versionSource commitArchive
Apple TV 1.0 (19 to 25) and Mac 1.0 (21 to 25)86752ede19b9raylume-lgpl-86752ede19b9.tar.gz (12.6 MB, SHA-256 af921ed7bcd49de473dbfcdf4fac3db12c1db8537dd88404f0d6501775ea73a5)
Windows 0.0.1, 0.0.2 and 0.0.5a4b27d07raylume-libmpv-win-0.0.1-a4b27d07-source.tar.xz (23.6 MB, SHA-256 6a9c27de4dbeedfa363ae2f8987f068902a59b7b39efe3fed03cd4fcd92d4513)
Linux Flatpak 0.0.14be1e662Raylume-0.0.1-flatpak-sources.tar.xz (33.4 MB, SHA-256 b438650facadbd648b1123516263a5a1e067cf2e897cfa31b98d10f11c3707c0); build inputs Raylume-0.0.1-flatpak-build-inputs.tar (125.4 MB, SHA-256 01e983ef2f68d003df2f06ebf1604c5e0df473a16f60fb2eb091238370b29f53)
Linux Flatpak 0.0.29271bdbcRaylume-0.0.2-flatpak-sources.tar.xz (32.8 MB, SHA-256 47eafb2338fb645e8110c6d9b4db14214586a811a96dc74712e9057108e6e43b); build inputs Raylume-0.0.2-flatpak-build-inputs.tar (125.8 MB, SHA-256 8b95d2f38e60b928caee1dc6eb9ff4d16e7b45a1f12df5534fcc526922a8958e)
Linux Flatpak 0.0.5f176ca8fRaylume-0.0.5-flatpak-sources.tar.xz (32.8 MB, SHA-256 22330a6dc2e7dcf01bea2e231e9069b4daacbfd6d63949f7fc4827063e6ceead); build inputs Raylume-0.0.5-flatpak-build-inputs.tar (125.8 MB, SHA-256 30ec5eb937e1e7d89fc1866f93ba5553d1ac5e5ecd8f98dcdf3951e38b05840c)

You can also ask us for the complete source of any library on this page, for any version of Raylume we have distributed, by email at developer@embracetech.org. This offer stands for at least three years after we last distribute that version.

These steps are for developers. Each covers the libraries named, not the rest of the app.

You need a Mac with Xcode, and a build of the Raylume app that you can sign yourself.

  1. Unpack the archive for your version of Raylume.
  2. Change the library sources under Packages/Vendor/libnfs or Packages/Vendor/libsmb2.
  3. On a Mac with Xcode, run scripts/vendor/build-frameworks.sh. It builds each framework as an xcframework in Packages/Vendor/Frameworks.
  4. Replace the framework inside the Raylume app bundle with the matching slice from Packages/Vendor/Frameworks/<name>.xcframework for your device, then sign the app. The objects folder in the archive shows what each shipped framework was linked from; step 3 rebuilds from the sources.
  5. For VLCKit, build VLCKit 3.7.3 from VideoLAN’s sources, or a modified copy, and replace VLCKit.framework (Mac) or TVVLCKit.framework (Apple TV) in the same way.

On Apple TV an app can only be installed if it is signed. To run your modified copy you sign it with your own Apple developer account and install it on your own device. On a Mac, a modified app must be signed again too; you can sign it with your own identity.

  1. Build libmpv from the source archive for your version of Raylume, or from a modified copy. It must provide version 2 of the libmpv client API and be a 64-bit Windows DLL.
  2. Quit Raylume and replace resources\libmpv\libmpv-2.dll in the folder Raylume is installed in with your build.
  3. Start Raylume. If your library does not offer a compatible API, Raylume says the player is not available instead of playing.
  1. Unpack the Flatpak source archive for your version of Raylume. Into its flatpak folder, unpack the Flatpak build inputs for the same version (for example Raylume-0.0.2-flatpak-build-inputs.tar, listed under Releases): Raylume’s own app files, which the manifest packages unchanged.
  2. In flatpak/app.raylume.Raylume.yml, point the library you changed (for example mpv) at your copy: replace its type: git source with type: dir and set path: to your folder.
  3. If Raylume is installed from the download, run flatpak uninstall --user app.raylume.Raylume first; your settings and library are kept. Then, in the flatpak folder, run flatpak-builder --user --install --install-deps-from=flathub --force-clean build app.raylume.Raylume.yml.
  4. Run it with flatpak run app.raylume.Raylume. If your libmpv does not offer a compatible API, Raylume says the player is not available instead of playing.

Electron’s ffmpeg.dll (Windows) or libffmpeg.so (Linux) can be replaced in the same way with a build for the same Electron version.

Other notices

libsmb2 includes code derived from the RSA Data Security, Inc. MD4 Message-Digest Algorithm (RFC 1320), and public-domain AES and MD5 code. It also includes sample code from RFC 2104 and RFC 4634. libnfs also contains protocol files under the simplified BSD licence; its text is in the archive as LICENCE-BSD.txt. Portions of VLCKit are copyright © The FreeType Project (freetype.org). All rights reserved.

Upstream projects: github.com/sahlberg/libnfs, github.com/sahlberg/libsmb2, code.videolan.org/videolan/VLCKit, github.com/mpv-player/mpv, ffmpeg.org, code.videolan.org/videolan/libplacebo, github.com/fribidi/fribidi, github.com/electron/electron, gitlab.gnome.org/GNOME/libsecret, github.com/brailcom/speechd and launchpad.net/libdbusmenu.

The Flatpak’s libass (ISC), libdisplay-info (MIT) and zypak (BSD 3-Clause) are listed with their licences in BUNDLED-LIBRARIES.md in its source archive.

Raylume also contains other open-source software. Every licence is listed in the app, in Settings, About and support, Credits and licences.