Music and videos from YouTube, plus your own library. One open-source app for Android, desktop and iOS.
Download · Website · Changelog · Report a bug
Caution
Only install YMusic from ymusic.io or GitHub Releases. Anyone can build a modified copy, and a fake app can steal your Google account when you sign in.
The authors are not responsible for any misuse of the application.
Just another YouTube client, try it out yourself. Missing something? Open a new issue.
Get the latest version from the Releases page.
| Platform | Requires | File |
|---|---|---|
| Android (phone, tablet, TV, Android Auto) | Android 7.0 | .apk |
| macOS (Apple silicon, Intel) | macOS 11 | .dmg |
| Windows (x64, ARM64) | Windows 10 | .exe installer |
| Linux (x64, ARM64) | Ubuntu 22.04, Debian 12 (glibc 2.35) | .deb or .AppImage |
| iOS, iPadOS | iOS 15 | build from source |
The desktop app is a native app written in Rust (desktopRust/), built from the same
player, engine and strings as the Android and iOS apps. On Linux, the .deb installs system-wide and updates
from inside the app; the .AppImage runs without installing — chmod +x YMusic-*.AppImage and start it.
Every platform needs JDK 17+ (CI uses 21), Node.js (CI uses 22) and CMake 3.20+, plus FFmpeg from
ffmpeg-build checked out next to this repository. The desktop app
also needs Rust and a few system libraries: desktopRust/README.md.
./gradlew :androidApp:installDebug # Android, on a connected device
# Desktop: build the engine bundles once, then run the Rust app
./gradlew :engine-js:closureJs :engine-js:closurePlayerJs
cd desktopRust && cargo run -p ymusic./gradlew :desktopApp:run starts the JVM desktop shell, a development tool for trying the shared Compose UI
without a phone or emulator; it is not the desktop app that ships.
FFmpeg
FFmpeg comes from ffmpeg-build, checked out next to this
repository (../ffmpeg-build) and built locally — nothing is downloaded. Check out the commit CI builds
against (FFMPEG_BUILD_REF in release.yml), then build the targets
you need (its README has the details). A missing build fails with the command that produces it.
# Windows: first `git config --global core.autocrlf false`, or the build scripts break on CRLF
git clone --recursive --shallow-submodules https://github.com/ymusic-io/ffmpeg-build ../ffmpeg-build
git -C ../ffmpeg-build checkout "$(sed -n 's/^ *FFMPEG_BUILD_REF: //p' .github/workflows/release.yml)"
cd ../ffmpeg-build
scripts/build-desktop.sh # desktop: macOS, Linux, or Windows from an MSYS2 shell
scripts/build-android.sh arm64-v8a # Android, once per ABI: armeabi-v7a, arm64-v8a, x86, x86_64
scripts/build-ios.sh # iOSmacOS, Linux, Windows and Android prerequisites
The desktop app is built on, and for, the machine's own OS and CPU. Packaging it (.dmg, .deb and
.AppImage, Windows installer) uses the scripts in desktopRust/tools/ — see
desktopRust/README.md.
- macOS — Xcode with its Metal toolchain (the desktop app, its natives and the iOS app). ffmpeg-build:
brew install nasm automake autoconf libtool pkg-config meson ninja. - Linux (Debian/Ubuntu) — the app:
sudo apt install build-essential cmake libpulse-dev, plus the desktop app's libraries indesktopRust/README.md. ffmpeg-build:sudo apt install nasm automake autoconf libtool pkg-config meson ninja-build patchelf. - Windows — MSYS2. The app's native libraries are GCC/Clang-only C, so they
build with MinGW-w64, not MSVC. The Gradle build finds it in
C:/msys64/mingw64(C:/msys64/clangarm64on ARM), or wherevermingw.dirinlocal.propertiesorMINGW_HOMEpoints; the desktop app's Rust toolchain is indesktopRust/README.md.- x64, in the MSYS2 MINGW64 shell:
pacman -S git make diffutils autoconf automake libtool patch mingw-w64-x86_64-toolchain mingw-w64-x86_64-make mingw-w64-x86_64-nasm mingw-w64-x86_64-pkgconf mingw-w64-x86_64-meson mingw-w64-x86_64-ninja mingw-w64-x86_64-zlib - ARM64, in the CLANGARM64 shell: the same with
mingw-w64-clang-aarch64-packages (no nasm), andHOST_CC=clangwhen runningscripts/build-desktop.sh.
- x64, in the MSYS2 MINGW64 shell:
- Android — the Android SDK with NDK r28 (
28.2.13676358). ffmpeg-build needsANDROID_NDK_ROOTpointing at it,nasm, the autotools andpatchelf.
iOS
The iOS app builds from iosApp/iosApp.xcodeproj in Xcode; its Kotlin framework comes from
:iosAppKotlin automatically.
YMusic is open source under the GNU General Public License v3.0, except the foundation libraries below, which are Apache-2.0 so any project can reuse them:
| Directory | License |
|---|---|
kmpCommon/ |
Apache-2.0 |
kmpHttp/ |
Apache-2.0 |
| everything else | GPL-3.0 |
Nothing under kmpCommon/ or kmpHttp/ may depend on a GPL module.
By contributing, you agree that your contribution is licensed under the same license as the directory it modifies.
