Skip to content
SuRGeoNixPublic

Repository files navigation

lyleaf

High-performance Windows media player & .NET media engine

Powered by FFmpeg and DirectX, Flyleaf combines a standalone media player with a powerful .NET playback library for WPF, WinUI and WinForms. Hardware-accelerated playback, advanced HDR and Dolby Vision support, and flexible UI controls are at its core.

Flyleaf FlyleafLib FlyleafME

Download Flyleaf · Get FlyleafLib on NuGet · Documentation · Samples

Flyleaf

Downloads & Packages

Flyleaf — Media Player

A standalone Windows media player with hardware-accelerated playback, HDR/Dolby Vision support, playlists, subtitles, and configurable playback controls.

Download latest release · All GitHub releases

UI Controls

Package Description Links
FlyleafME Modern, customizable WPF Media Element control (.NET 10) NuGet / Release notes · Quick start
FlyleafME Legacy (FlyleafLib.Controls.WPF) Original WPF Media Element control NuGet / Release notes
FlyleafHost.WinUI (FlyleafLib.Controls.WinUI) Hardware-accelerated WinUI media surface NuGet / Release notes

Plugins

Extend FlyleafLib with support for web media, torrents and subtitle services. Each plugin is distributed separately through NuGet.

Plugin Description Links
YTDLP Play web media through yt-dlp, with optional browser cookie integration NuGet / Release notes · GitHub
BitSwarm Stream media directly from torrents without downloading them completely NuGet / Release notes · Source · BitSwarm
OpenSubtitlesOrg Search for and download subtitles online NuGet / Release notes · Source
SubtitlesConverter Detect and convert subtitle encodings to UTF-8 NuGet / Release notes · Source

FlyleafLib — Media Engine

The core .NET media library for applications that need fast, flexible audio and video playback through FFmpeg and DirectX.

NuGet / Release notes

Overview

✅ Play Everything (Audio, Videos, Images, Playlists over any Protocol)

  • Extends FFmpeg's supported protocols and formats with additional plugins (YTDLP, BitSwarm)
  • Accepts Custom I/O Streams and Plugins to handle non-standard protocols / formats

✅ Play it Smoothly (Even with high resolutions 8K / HDR)

  • Coded from scratch to gain the best possible performance with FFmpeg & DirectX using video acceleration and custom pixel shaders
  • Threading implementation with efficient cancellation which allows fast open, play, pause, stop, seek and stream switching

✅ Develop it Easy

  • Provides a DPI aware, hardware accelerated Direct3D Surface (FlyleafHost) which can be hosted as normal control to your application and easily develop above it your own transparent overlay content
  • All the implementation uses UI notifications (PropertyChanged / ObservableCollection etc.) so you can use it as a ViewModel directly
  • For WPF, FlyleafME provides a composable playback UI with customizable controls and panels. FlyleafME quick start

Features

FFmpeg

  • HLS Live Seeking Supports seeking in live HLS streams
  • Custom FFmpeg Builds Based on FFmpeg master (post-9.1 Gauss), with Flyleaf-specific optimizations and patches
  • Additional Patches HLS persistent HTTP/HTTPS connections, Windows Schannel TLS 1.3, and MPEG-TS HEVC seeking
  • Capture Devices Pass the format, input and options with a single URL, e.g. fmt://gdigrab?desktop&framerate=30
  • FFmpeg ABI Uses Flyleaf.FFmpeg.ABI bindings; use a compatible version for your FFmpeg binaries
  • Recommended binaries and patch details: Flyleaf FFmpeg Releases

Playback

  • Open / Play / Pause / Stop
  • Speed / Reverse / Zero-Low Latency
  • Seek Backward / Forward (Short / Medium / Large Step)
  • Seek to Time / Seek to Frame / Seek to Chapter / Frame Stepping

Video

  • Enable / Disable
  • Device Preference
  • Aspect Ratio (Keep / Fill / Custom)
  • Deinterlace (D3D11VP only - Supports double rate)
  • Advanced HDR10 / HDR10+ / HLG / Dolby Vision (FlyleafVP only - All Dovi Profiles including L1/L3, L2/L8 trims, 7 FEL)
  • Embedded ICC Profiles (FlyleafVP only)
  • Pan Move / Zoom / Rotate / HFlip-VFlip / Cropping
  • Record / Snapshot
  • Super Resolution (D3D11VP only - Nvidia / Intel)
  • 360° Panoramic (FlyleafVP only)
  • Video Acceleration
  • Video Filters (Brightness / Contrast / Hue / Saturation)
  • Video Processors (FlyleafVP / D3D11VP / SwsScale)
  • VSync
  • Zero-Copy (Crops with vertex shader)
  • Split-Frame / Alpha Packing (FlyleafVP only - Special technique to support alpha with hardware acceleration)

Audio

  • Enable / Disable
  • Device Preference
  • Add / Remove Delay (Short / Large Step)
  • Volume (Up / Down / Mute)
  • Native Audio Formats (Sample Formats / Sample Rates / Channel Layouts)
  • Languages support System's default languages as priorities for audio streams

Subtitles

  • Enable / Disable
  • Add / Remove Delay (Short / Large Step)
  • Bitmap Subtitles support
  • Advanced Character Detection and Convert to UTF-8 SubtitlesConverter plugin
  • Languages support System's default languages as priorities for subtitles streams

UI Control (FlyleafHost) WPF / WinUI & WinForms (Partially)

  • Attach / Detach
  • Activity / Idle Mode
  • Drag Move (Self / Owner)
  • Drag & Drop Swap
  • Drag & Drop Open
  • Full / Normal Screen
  • Resize / Resize & Keep Ratio
  • Z-Order

UI Control (FlyleafME) WPF / .NET 10

FlyleafME package · Quick start

  • Customizable Playback Bar / Seek Bar / Context Menu
  • Media Queue / Slideshow
  • Docked / Floating / Overlay Panels (Playback, Video, Audio, Subtitles, Media Information, Queue, Settings)
  • Customizable Subtitle Text / On-Screen Display
  • Dark / Light / System Themes with Accent Colors

UI Control (FlyleafME Legacy) WPF / .NET 8 and .NET 10

FlyleafLib.Controls.WPF package

  • Flyleaf Bar Control / Slider
  • Flyleaf Popup Menu
  • Flyleaf Settings Dialog
  • Color Themes Based on Material Design in XAML
  • Style / Control Template Customization

Misc.

  • Mouse & Key Bindings All the implementation supports customizable mouse & key bindings which can be assigned to an embedded or a custom actions (find defaults here)
  • Audio Player Can be used as an audio player only without the need of UI Control
  • Downloader / Remuxer The library can be used also for downloading & remuxing
  • Extractor The library can be used also for extracting video frames (supports also by X frames Step)

Building from Source

FFmpeg native binaries are no longer included in the repository. They are distributed separately through Flyleaf FFmpeg releases.

After cloning the repository, run Download-FFmpeg.bat from the repository root to download the recommended FFmpeg build into the FFmpeg/ directory.

git clone https://github.com/SuRGeoNix/Flyleaf.git
cd Flyleaf
.\Download-FFmpeg.bat

The script downloads a pinned Windows x64 LGPL shared build, ensuring consistent FFmpeg versions across development environments. Running it again replaces the existing FFmpeg binaries.

Once downloaded, open FlyleafLib.sln in Visual Studio to build the library and samples.

Repository history update (November 2026): Git history was rewritten to remove obsolete binaries and media assets, reducing packed storage by approximately 98.5%. If you cloned or forked Flyleaf before the rewrite, a fresh clone is recommended. Existing forks or branches based on the old history may need to be recreated or rebased.

Thanks to

Flyleaf wouldn't exist without them!

Releases

Used by

Contributors

Languages