• Stars
    star
    2,406
  • Rank 19,126 (Top 0.4 %)
  • Language
    C
  • License
    BSD 3-Clause "New...
  • Created almost 6 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Audio and video casting system with support for custom applications.

Repository StructureGetting StartedBuilding From SourceDeveloper's GuideSDKLicenseDonate

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:

NymphCast diagram

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 鉃★笍 Audio-only receiver mode.
  • NymphCast Video 鉃★笍 Audio & Video receiver mode.
  • NymphCast ScreenSaver 鉃★笍 Like NymphCast Video, but with image-based ScreenSaver when not playing content.
    • Profile: nymphcast_screensaver_config.ini
    • Setup guide
  • NymphCast GUI 鉃★笍 Like NymphCast Video, but with stand-alone GUI mode (smart TV) enabled. (experimental feature)

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

Version 0.1 is the initial release. The following list contains the major features that are in the v0.1 release, 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.
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 exist as a potential v0.2 preview in v0.1:

Category Status Description Notes
SmartTV 75% Stand-alone GUI mode EmulationStation-based GUI has been integrated. Customisation and testing are in progress.
Multi-cast 75% Synchronised multi-room playback Basic implementation exists, synchronisation likely to be far from perfect.
Apps 25% NymphCast Apps AngelScript-based apps. Implemented as CLI-based interface as well as an HTML-based GUI implementation.

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+)

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 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.

Repository Structure

The repository currently contains the NymphCast server, client SDK and NymphCast Player client sources.

/
|- player 	(the NymphCast demonstration client)
|- src/
|	|- client 		(basic CLI NymphCast client)
|	|- server		(the NymphCast server and NymphCast app files)
|- tools	(shell scripts for creating releases, in progress)

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.

For Alpine Linux and PostmarketOS:

Player client releases for Android and Windows:

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 specified. To start the server, execute the binary (from the bin/<platform>/ folder) to have it start listening on port 4004, with the appropriate configuration file (see Usage Scenarios for a list).

E.g. for an audio-only configuration:

./nymphcast_server -c nymphcast_audio_config.ini.

The server will listen on all network interfaces for incoming connections. It supports the following options:

-h	--help				Get this help message.
-c	--configuration		Path to the configuration file.
-a	--apps				Path to the NymphCast apps folder.
-w	--wallpaper			Path to the wallpapers folder.
-r	--resources			Path to the GUI resources folder.
-v	--version			Output NymphCast server version and exit.

Server configuration

In the configuration file supplied to the server, the following options are supported:

Option Values Default Description
fullscreen 1 (true), 0 (false) 0 Whether a window is full-screen. (if disable_video is true).
disable_video 1 (true), 0 (false) 0 Disables video output if true. Set to 'true' for NymphCast Audio configuration.
enable_gui 1 (true), 0 (false) 0 Enables the GUI mode if true. Set to 'true' for Nymphcast GUI configuration along with disable_video set to 'false'.
buffer_size - 20971520 Size of the internal data buffer. Default is 20 MB.
enable_lcdproc 1 (true), 0 (false) 0 Enables the LCDProc client if set to 'true'.
lcdproc_host Name/IP 'localhost' Sets a custom target for the LCDProc client (if enabled).

LCDProc configuration

NymphCast Server can output basic media file information (artist - title) to an LCDProc daemon on the system. To enable this, set to 1 the option enable_lcdproc in the active NymphCast Server configuration file (on Linux: /usr/local/etc/nymphcast/nymphcast_config.ini).

After this restart the NymphCast server instance.

The client binary supports the following flags:

Usage:
        nymphcast_client <options>

Options:
-h      --help          Get this help message.
-v      --version       Output the NymphCast client version and exit.
-r      --remotes       Display online NymphCast receivers and quit.
-f      --file          Name of file to stream to remote receiver.
-i      --ip            IP address of the target NymphCast receiver.

The NymphCast Player is a GUI-based application and accepts no command line options.

Building From Source

Note: This section is for building the project from source. Pre-built binaries are provided on the 'Releases' page.

Server: Server building instructions

Player: Player building instructions

Developer's Guide

The focus of the project is currently on the development of the NymphCast server and the protocol parts. Third parties are encouraged to contribute server-side app support of their services and developers in general to contribute to server- and client-side development.

The current server and client documentation is hosted at the Nyanko website.

SDK

An SDK has been made available in the LibNymphCast repository. The player project under player/ uses the SDK as part of a Qt5 project to implement a NymphCast client which exposes all of the NymphCast features to the user.

After compiling LibNymphCast, a client project has to link against this library file and include the nymphcast_client.h header file.

License

NymphCast is a fully open source project. The full, 3-clause BSD-licensed source code can be found at its project page on Github, along with binary releases.

Donate

NymphCast is fully free, but its development relies on your support. If you appreciate the project, your contribution, Ko-Fi or donation will help to support the continued development.

More Repositories

1

Nodate

A light-weight framework for STM32 and other architectures written in C++.
C
136
star
2

BMaC

Building Management and Control system
C++
106
star
3

Sarge

Simple command line argument parser for C++ and Ada.
Ada
78
star
4

MQTTCute

An advanced desktop MQTT client, suitable for binary protocol development and monitoring
C
64
star
5

NymphRPC

Versatile and fast remote procedure call library.
C++
60
star
6

LockFreeRingBuffer

Implementation of a lock-free ring buffer class.
C++
30
star
7

WildFox

Webkit-based, multi-platform and Firefox-compatible browser.
C++
26
star
8

DebounceHat

Fully isolated, input debounce Hat for Raspberry Pi, for up to 6 switches, relays and powered devices
HTML
22
star
9

Universal_Data_Share

Application to share files with in a peer-to-peer fashion. Also demonstration of the UDS protocol.
C++
20
star
10

NyanSD

Service discovery protocol and reference implementation.
C++
18
star
11

NymphMQTT

MQTT library.
C++
17
star
12

EmbeddedProgrammingWithCpp17

Code projects for the book 'Hands-On Embedded Programming with C++17' by Maya Posch
C
14
star
13

ChronoTrigger

A simple, restartable interval timer.
C++
12
star
14

FreeRTOS_HTTP_server

STM32-based FreeRTOS HTTP webserver example.
C
12
star
15

Cerflet

C++ & POCO-based web-application server.
C++
11
star
16

FreeRTOS_SCPI

SCPI server implementation for STM32 using FreeRTOS, CMSIS-RTOS and libscpi.
C
11
star
17

NymphCast-MediaServer

Media server for the NymphCast ecosystem.
C++
8
star
18

NymphCastAudio-ESP32

ESP32 version of NymphCastAudio.
C
8
star
19

ClubStatusService

Simple C++ service to monitor inputs via interrupts and update a clubroom status.
C++
7
star
20

Poco-build

Non-clunky build system for the Poco framework libraries.
C++
6
star
21

ByteBauble

Utility library that handles endianness and other common byte/bit-related operations.
C++
6
star
22

OpenPNR

Open source place & routing tool for FPGAs.
C++
4
star
23

FLR

File Level Revision system.
C++
3
star
24

LEDNip

STM32F427-based developer board with 5 channels for controlling LEDs.
C
3
star
25

HD44780_i2c

HD44780-compatible I2C adapter for 5V & 3.3V I2C buses.
HTML
3
star
26

libnymphcast

NymphCast Client Library.
C++
3
star
27

NPoCo

Nyanko Portable Components libraries.
C++
3
star
28

pcm_recorder

A simple PCM audio recorder for ESP32.
C
3
star
29

Nt

Classes based upon the Qt framework. Pronounced as 'neat'.
2
star
30

Nucleo-144_mounting

Helpful components to ease integrating Nucleo-144 boards.
OpenSCAD
2
star
31

libmosquitto

The Mosquitto client library tweaked to support MinGW and use Makefiles everywhere.
C
1
star
32

colour_analyser

Analysing colours (RGBC) with colour sensors and AVR.
C++
1
star
33

Sweet32-LLVM

LLVM backend for the Sweet32 32-bit processor.
1
star