Datarhei - Dragon Fork: fork of datarhei/core with native WebRTC (WHEP) egress for low-latency streaming. Built with Pion.
Find a file
2023-01-20 18:38:37 +01:00
.github Fix rpi build (removes armv6) 2022-11-09 15:54:58 +01:00
.github_build Mod bump v16.11.0 2022-11-09 15:13:11 +01:00
app Fix trying to create a backup if there's no DB 2022-11-09 13:20:34 +01:00
config Fix reading partial config 2022-11-08 14:44:47 +01:00
docs Update dependencies 2022-10-28 17:24:57 +02:00
encoding/json Add v16.7.2 2022-05-13 19:26:45 +02:00
ffmpeg Fix stale detection with progress patch 2022-10-13 12:20:26 +02:00
glob Add process id and reference glob pattern matching 2022-08-17 07:55:44 +03:00
http Update dependencies 2022-10-28 17:24:57 +02:00
internal Untrack test binary 2022-08-17 16:20:10 +03:00
io Add ffmpeg migration tool, annotate process config with ffmpeg version constraint 2022-11-02 22:02:39 +01:00
log Add GoSRT & improvements (repo-merge) 2022-06-23 22:13:58 +02:00
math/rand Add v16.7.2 2022-05-13 19:26:45 +02:00
monitor Add /v3/metrics (get) endpoint to list all known metrics 2022-09-08 13:50:53 +02:00
net Fix proper version handling for uploading a new config 2022-10-10 16:19:45 +02:00
playout Add v16.7.2 2022-05-13 19:26:45 +02:00
process Reset process stats when stopped 2022-10-13 10:57:17 +02:00
prometheus Add GoSRT & improvements (repo-merge) 2022-06-23 22:13:58 +02:00
psutil Add v16.7.2 2022-05-13 19:26:45 +02:00
restream Add ffmpeg migration tool, annotate process config with ffmpeg version constraint 2022-11-02 22:02:39 +01:00
rtmp Use path without app as session reference 2022-08-19 11:24:44 +03:00
service Don't use deprecated functions from io/ioutil 2022-08-18 10:27:33 +03:00
session Add RegistryReader interface for read-only registry 2022-08-19 11:46:30 +03:00
srt Use the SRT default config 2022-11-04 11:56:51 +01:00
update Don't use deprecated functions from io/ioutil 2022-08-18 10:27:33 +03:00
vendor Add ffmpeg migration tool, annotate process config with ffmpeg version constraint 2022-11-02 22:02:39 +01:00
.dockerignore Add v16.8.0 2022-06-03 17:21:52 +02:00
.editorconfig Add v16.7.2 2022-05-13 19:26:45 +02:00
.gitignore Set new FFmpeg version in process config during migration 2022-11-09 11:35:47 +01:00
build.sh Add v16.7.2 2022-05-13 19:26:45 +02:00
CHANGELOG.md Mod updates changelog 2022-11-08 01:28:28 +01:00
Dockerfile Mod updates image tags 2022-11-04 12:43:12 +01:00
Dockerfile.bundle Mod exposes ports 2022-09-29 10:10:05 +02:00
Dockerfile.test Mod updates image tags 2022-11-04 12:43:12 +01:00
go.mod Add ffmpeg migration tool, annotate process config with ffmpeg version constraint 2022-11-02 22:02:39 +01:00
go.sum Add ffmpeg migration tool, annotate process config with ffmpeg version constraint 2022-11-02 22:02:39 +01:00
LICENSE Add v16.8.0 2022-06-03 17:21:52 +02:00
main.go Add GoSRT & improvements (repo-merge) 2022-06-23 22:13:58 +02:00
Makefile Fix build for ffmigrate 2022-11-09 10:46:02 +01:00
mime.types Add v16.7.2 2022-05-13 19:26:45 +02:00
README.md Add media-core image 2023-01-20 18:38:37 +01:00
run.sh Add ffmigrate tool to run.sh 2022-11-02 22:07:38 +01:00
SECURITY.md Create SECURITY.md 2022-06-01 22:48:21 +02:00

Core

dsdsds

License: Apache2 CodeQL tests codecov Go Report Card PkgGoDev Gitbook

The datarhei Core is a process management solution for FFmpeg that offers a range of interfaces for media content, including HTTP, RTMP, SRT, and storage options. It is optimized for use in virtual environments such as Docker. It has been implemented in various contexts, from small-scale applications like Restreamer to large-scale, multi-instance frameworks spanning multiple locations, such as dedicated servers, cloud instances, and single-board computers. The datarhei Core stands out from traditional media servers by emphasizing FFmpeg and its capabilities rather than focusing on media conversion.

Objectives of development

The objectives of development are:

  • Unhindered use of FFmpeg processes
  • Portability of FFmpeg, including management across development and production environments
  • Scalability of FFmpeg-based applications through the ability to offload processes to additional instances
  • Streamlining of media product development by focusing on features and design.

What issues have been resolved thus far?

Process management

  • Run multiple processes via API
  • Unrestricted FFmpeg commands in process configuration.
  • Error detection and recovery (e.g., FFmpeg stalls, dumps)
  • Referencing for process chaining (pipelines)
  • Placeholders for storage, RTMP, and SRT usage (automatic credentials management and URL resolution)
  • Logs (access to current stdout/stderr)
  • Log history (configurable log history, e.g., for error analysis)
  • Resource limitation (max. CPU and MEMORY usage per process)
  • Statistics (like FFmpeg progress per input and output, CPU and MEMORY, state, uptime)
  • Input verification (like FFprobe)
  • Metadata (option to store additional information like a title)

Media delivery

  • Configurable file systems (in-memory, disk-mount, S3)
  • HTTP/S, RTMP/S, and SRT services, including Let's Encrypt
  • Bandwidth and session limiting for HLS/MPEG DASH sessions (protects restreams from congestion)
  • Viewer session API and logging

Misc

  • HTTP REST and GraphQL API
  • Swagger documentation
  • Metrics incl. Prometheus support (also detects POSIX and cgroups resources)
  • Docker images for fast setup of development environments up to the integration of cloud resources

Docker images

  • datarhei/core:latest (AMD64, ARM64, ARMv7)
  • datarhei/core:cuda-latest (Nvidia CUDA 11.7.1, AMD64)
  • datarhei/core:rpi-latest (Raspberry Pi / OMX/V4L2-M2M, AMD64/ARMv7)
  • datarhei/core:vaapi-latest (Intel VAAPI, AMD64)

Quick start

  1. Run the Docker image
docker run --name core -d \
    -e CORE_API_AUTH_USERNAME=admin \
    -e CORE_API_AUTH_PASSWORD=secret \
    -p 8080:8080 \
    -v ${HOME}/core/config:/core/config \
    -v ${HOME}/core/data:/core/data \
    datarhei/core:latest
  1. Open Swagger http://host-ip:8080/api/swagger/index.html

  2. Log in with Swagger Authorize > Basic authorization > Username: admin, Password: secret

Documentation

Documentation is available on docs.datarhei.com/core.

License

datarhei/core is licensed under the Apache License 2.0