Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Eyevinn/channel-engine

Open Source FAST Channel Engine library based on VOD2Live technology
https://github.com/Eyevinn/channel-engine

service

Last synced: 2 months ago
JSON representation

Open Source FAST Channel Engine library based on VOD2Live technology

Awesome Lists containing this project

README

        


Eyevinn Channel Engine



Open Source FAST Channel Engine library based on VOD2Live technology




:book: Read the documentation :eyes:



[![npm](https://img.shields.io/npm/v/eyevinn-channel-engine?style=flat-square)](https://www.npmjs.com/package/eyevinn-channel-engine)
[![github release](https://img.shields.io/github/v/release/Eyevinn/channel-engine?style=flat-square)](https://github.com/Eyevinn/channel-engine/releases)
[![license](https://img.shields.io/github/license/eyevinn/channel-engine.svg?style=flat-square)](LICENSE)
[![PRs welcome](https://img.shields.io/badge/PRs-welcome-ff69b4.svg?style=flat-square)](https://github.com/eyevinn/channel-engine/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22)
[![made with hearth by Eyevinn](https://img.shields.io/badge/made%20with%20%E2%99%A5%20by-Eyevinn-59cbe8.svg?style=flat-square)](https://github.com/eyevinn)
[![Slack](http://slack.streamingtech.se/badge.svg)](http://slack.streamingtech.se)


[![Badge OSC](https://img.shields.io/badge/Evaluate-24243B?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTIiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yODIxXzMxNjcyKSIvPgo8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSI3IiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIiLz4KPGRlZnM%2BCjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQwX2xpbmVhcl8yODIxXzMxNjcyIiB4MT0iMTIiIHkxPSIwIiB4Mj0iMTIiIHkyPSIyNCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjQzE4M0ZGIi8%2BCjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzREQzlGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM%2BCjwvc3ZnPgo%3D)](https://app.osaas.io/browse/channel-engine)

Eyevinn Channel Engine is a core component library for creating FAST channels based on VOD2Live technology. Combine this vod2live technology component with your business and scheduling logic to build your very own and unique FAST channel engine.

Please see the [Documentation](https://vod2live.docs.eyevinn.technology) for introductory tutorials and how to get started building your own FAST channel engine.

![Screenshot of demo site](docs/demosite.png)

A live demo and example is available here: [https://vod2live.eyevinn.technology](https://vod2live.eyevinn.technology)

## Features

- Produce 24/7 HLS live channels based on already transcoded HLS VODs
- Produce a personalized 24/7 HLS live channel unique for each viewer
- Mix VOD2Live channel with a "real" live HLS stream
- Develop adapters to plugin with custom scheduling endpoints
- High Availability with Redis Cache as shared state store
- Support for WebVTT subtitles
- Support for DRM encrypted HLS VODs (in beta)
- And much more!

## System Requirements

Supported Node.js Versions

| Version | Supported |
| ------- | --------- |
| 14.x | Yes |
| 16.x | Yes |
| 18.x | Yes |

## Supported Source Formats

| HLS Format | Muxed | Demuxed | Mix w. Live | Subtitles | DRM |
| ---------- | ----- | ------- | ----------- | --------- | --- |
| HLS + TS | Yes | Yes | Yes* | Yes | No |
| HLS + CMAF | No | Yes | TBD | Yes | TBD |

*\* not supported with demuxed sources*

## High Availability Support

[High availability support](https://vod2live.docs.eyevinn.technology/usage-guide.html#high-availability) is from v3 general available in the Channel Engine and it uses Redis as the shared storage. This allows you to run a replicaset behind a round-robin load balancer. Supported Redis Engine versions:

| Version | Supported |
| ------- | --------- |
| 5.x | Yes |
| 6.x | Yes |
| 7.x | No |

## Usage

Follow [this tutorial](https://vod2live.docs.eyevinn.technology/getting-started.html) to get started building your own FAST channel engine.

You can also use prebuilt [Eyevinn FAST Engine Docker Container](https://github.com/Eyevinn/docker-fast) based on this library. To try it out you can start an instance with 50 demo channels by running this command:

```
docker run -d -p 8000:8000 -p 8001:8001 \
-e DEMO_NUM_CHANNELS=50 \
eyevinntechnology/fast-engine
```

Open the URL http://localhost:8001/ in your browser for a multiview of all 50 channels, and to playback one of the 50 channels point your HLS video player to the URL: http://localhost:8000/channels//master.m3u8 where is a number between 1 and 50.

## Migration

### Upgrading from 3.4.x to >= 4.0.0

Support for HLS-CMAF and handling audio and video segments of different durations was added to v4
and this means that it is not possible to mix muxed TS with demuxed CMAF.

### Upgrading from 3.3.x to >= 3.4.x

A breaking change was introduced in v3.4.0 when Typescript types were introduced. The library no longer exports a default. This means that you need to change `const ChannelEngine = require('eyevinn-channel-engine')` to `const { ChannelEngine } = require('eyevinn-channel-engine')`;

## Contributing

Read [CONTRIBUTING](CONTRIBUTING.md) first and then follow the instructions below to get started with the devolpment environment.

### Development

Install the dependencies:

```
npm install
```

Build the app:

```
npm run build
```

To start the reference implementation in `examples/default.ts` run:

```
npm start
```

For full debug mode you set the environment variable `DEBUG`.

```
DEBUG=* npm start
```

or if you want be more specific for example:

```
DEBUG=engine-* npm start
```

In addition there other reference implemetations that can be used:
- `examples/demux.ts` : example with demuxed audio
- `examples/livemix.ts` : example with live mimxing
- `examples/multicodec.ts` : example with multicodec
- `examples/drm.ts` : example with DRM
- `examples/autocreate.ts` : example to auto create channel on demand
- `examples/truncate.ts` : example when trimming start and end of a VOD

### Source linking hls-vodtolive library

It is not uncommon that you need to test an local branch of the hls-vodtolive library and in order to do that you can use `npm link`.

1. Go to the directory where you have the source code for the hls-vodtolive library and run `npm link`
2. Then go to the channel engine source code directory and run `npm link @eyevinn/hls-vodtolive`

To restore and use the npm published version run the following in the channel engine source code directory:

```
npm uninstall --no-save @eyevinn/hls-vodtolive
npm install
```

## Support

Join our [community on Slack](http://slack.streamingtech.se) where you can post any questions regarding any of our open source projects. Eyevinn's consulting business can also offer you:

- Further development of this component
- Customization and integration of this component into your platform
- Support and maintenance agreement

## About Eyevinn Technology

[Eyevinn Technology](https://www.eyevinntechnology.se) is an independent consultant firm specialized in video and streaming. Independent in a way that we are not commercially tied to any platform or technology vendor. As our way to innovate and push the industry forward we develop proof-of-concepts and tools. The things we learn and the code we write we share with the industry in [blogs](https://dev.to/video) and by open sourcing the code we have written.

Want to know more about Eyevinn and how it is to work here. Contact us at [email protected]!