NymphCast
Audio and video casting system with support for custom applications.
Install / Use
/learn @MayaPosch/NymphCastREADME
Repository Structure · Getting Started · Multi-Room Playback · Building From Source · Developer's Guide · SDK · License · Donate
What is NymphCast?
NymphCast is a software solution which turns your choice of hardware into an audio and video source for a television or (powered) speakers. It enables the streaming of audio and video over the network from a client device or media server, as well as the streaming of internet media to a NymphCast server, controlled by a client device, or directly on the receiver.
In addition, the server supports NymphCast apps (currently in preview status) written in AngelScript to extend the overall NymphCast functionality with e.g. 3rd party audio / video streaming protocol support on the server side, and customisable UIs in the client application.
NymphCast requires the use of a client device in all but the GUI ('Smart TV') mode. The server application (receiver) runs on a target device, while the client device functions as a remote control device:

Client-side core functionality is provided through the NymphCast library.
NymphCast Audio demo
The following video demonstrates NymphCast (v0.1-RC1) in an audio setup with a Raspberry Pi 2B, USB WiFi dongle, Generic 2.1 speaker set and an Android phone.
Usage Scenarios
NymphCast can be used in a number of scenarios:
- NymphCast Audio :arrow_right: Audio-only receiver mode.
- Profile:
nymphcast_audio_config.ini - Setup guide
- Profile:
- NymphCast Video :arrow_right: Audio & Video receiver mode.
- Profile:
nymphcast_video_config.ini - Setup guide
- Profile:
- NymphCast ScreenSaver :arrow_right: Like NymphCast Video, but with image-based ScreenSaver when not playing content.
- Profile:
nymphcast_screensaver_config.ini - Setup guide
- Profile:
- NymphCast GUI :arrow_right: Like NymphCast Video, but with stand-alone GUI mode (smart TV) enabled. (experimental feature)
- Profile:
nymphcast_gui_config.ini - Setup guide
- Profile:
Network ports
Note: NymphCast Server uses UDP port 4004 for discovery, and TCP port 4004 for playback.
All of these ports have to be reachable on a system running NymphCast Server.
Systems running the NymphCast MediaServer also need to have UDP & TCP ports 4005 reachable.
Please ensure that these ports are whitelisted in e.g. firewall rules if applicable.
Features & Status
The currently stable version is v0.1, with v0.2 in development. The following list contains the major features that are in these versions, along with status notes.
Category | Status | Description | Notes ---|----|---|--- File Streaming |100% | Streaming media files from client to server | - Subtitles & streams | 75% | Subtitle & stream selection support | Supports embedded bitmap (e.g. PGS) subtitles. Text & external subtitles will be added in v0.2. Multi-cast | 85% | Synchronised multi-room playback | Experimental in v0.1, partially tested in v0.1-alpha0. MediaServer | 100% | Streaming from NymphCast MediaServer instances | - URL Streaming | 100% | Streaming from URLs | - Codec support | 100% | Audio & Video codec support | Supports all codecs supported by ffmpeg.
Experimental features:
The following features are considered experimental and may become a stable feature in an upcoming release.
Category | Status | Description | Notes ---|----|---|--- SmartTV | 75% | Stand-alone GUI mode | EmulationStation-based GUI has been integrated. Customisation and testing are in progress. Apps | 25% | NymphCast Apps | AngelScript-based apps. Implemented as CLI-based interface as well as an HTML-based GUI implementation. Local media | 25% | Playback of local media | Basic implementation exists in v0.2-alpha0, configured via INI file.
NymphCast Ecosystem
The NymphCast project consists out of multiple components:
Component | Purpose | Status ---|---|--- NymphCast Server | Receiver end-point for clients. Connected to the display, speakers, etc.. | v0.1 LibNymphCast | Library for developing NymphCast clients with. | v0.1 NymphCast Client | CLI-based NymphCast client. | v0.1 NymphCast Player | Graphical, Qt-based NymphCast client. SDK reference implementation. | v0.1 NymphCast MediaServer | Server application for making media content available to NymphCast clients. | v0.1
NymphCast Player Client
The NymphCast Player provides NymphCast client functionality in a graphical (Qt-based) format. It is also a demonstration platform for the NymphCast SDK (see details on the SDK later in this document). It is designed to run on any OS that is supported by the Qt framework.
The player has been successfully compiled and used on the following platforms:
- Windows (7, 10)
- Linux (x86, ARM: Arch, Debian)
- Android (8+)
- FreeBSD (14.1)
- Haiku (R1 Beta 5)
Server Platforms
The server should work on any platform that is supported by a C++17 toolchain and the LibPoco & ffmpeg (libAV) dependencies. This includes Windows, MacOS, Linux and BSD.
FFmpeg and SDL2 libraries are used for audio and video playback. Both of which are supported on a wide variety of platforms, with Linux, MacOS and Windows being the primary platforms. System requirements also depend on whether only audio or also video playback is required. The latter can be disabled, which drops any graphical output requirement.
Memory requirements depend on the NymphCast Server configuration: by default the ffmpeg library uses an internal 32 kB buffer, and the server itself a 20 MB buffer. The latter can be configured using the (required) configuration INI file, allowing it to be tweaked to fit the use case.
Tested platforms:
Video-capable* | Platform | OS | Notes ---|---|---|-- Yes |x86_64 | Windows | Using MinGW or MSVC to compile. Yes | x86_64 | Linux | Stock install of Manjaro, Raspbian and Debian/Mint. Yes | x86_64 | FreeBSD | Both FreeBSD 14.1-RELEASE and GhostBSD, compiled with clang++. Yes | x86_64 | Haiku | Existing bug in Haiku SDL (issue #6400) prevents full server functionality. Yes | Raspberry Pi 4 | Raspbian | Tested up to 1080p at 24 FPS (h.264). Note limited support for hardware-acceleration and currently no HEVC support. - | Raspberry Pi 0/2/3 | Raspbian | Ffmpeg hardware accelerated video decoding appears not functional. - | Odroid-C2 | Armbian, Ubuntu Mate | No hardware accelerated video decoding present with ffmpeg. - | Banana Pro | Armbian | No hardware accelerated video decoding present with ffmpeg.
* The Video-capable column indicates whether the platform in the indicated configuration is capable of both audio & video playback (Yes), or just audio (-). Video output relies on hardware-accelerated video decoding support on the target platform.
Client Platforms
For the Qt-based NymphCast Player, a target platform needs to support LibPoco and have a C++ compiler which supports C++17 (<filesystem> header supported) or better, along with Qt5 support. Essentially, this means any mainstream desktop OS including Linux, Windows, BSD and MacOS should qualify, along with mobile platforms. Currently Android is also supported via Qt's mobile support, with iOS support planned.
For the CLI-based NymphCast Client, only LibPoco and and C++17 support are required. All clients require the use of libnymphcast (see SDK section) as dependency.
Note that all mobile platforms are a work in progress due to the limitations and peculiarities of these platforms.
<a id="id-gs"></a>
Getting Started
To start using NymphCast, you need a device on which the server will be running (most likely an SBC or other Linux system). NymphCast is offered as binaries for selected distros, and as source code for use and development on a variety of platforms.
Releases
NymphCast releases are available on Github (see the 'Releases' folder).
Some packages also exist for selected platforms.
For FreeBSD and similar:
- The server: nymphcast.
- Install package with
pkg install NymphCast.
- Install package with
For Alpine Linux and PostmarketOS:
- the server: nymphcast
- libnymphcast: libnymphcast
- the player client: nymphcast-client
Player client releases for Android and Windows:
- NymphCast Player on the Google Play Store.
- APK for installation on Android, see 'Releases'
- desktop client for Windows (x64), see 'Releases'
If pre-compiled releases for your target device or operating system are currently not listed above or on the releases page, you may need to build the server and client applications from source. See the Setup Guides listed under the Usage Scenarios section at the beginning of this document.
Running NymphCast
The server binary can be started with only the configuration flag specifi
.png)
