Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cdn [2020/07/02 20:51] – andi | cdn [2024/01/29 10:45] (current) – ischluff | ||
---|---|---|---|
Line 1: | Line 1: | ||
= CDN | = CDN | ||
- | Diese Doku beschreibt unser Live-Streaming CDN, wie es seit dem 34C3 existiert. Anfang 2020 wurde das Verteilen der Transcoder-Prozesse automatisiert, | ||
- | == Architektur | + | < |
- | Die CDN-Kaskade hat 5 Stufen: | + | This documentation describes our Livestreaming CDN as of 2024. |
+ | |||
+ | The File-CDN for media.ccc.de is described on [[software: | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | == The Future of Streaming | ||
+ | |||
+ | For redundancy and ease of use the CDN is managed by a distributed system built on consul. | ||
+ | |||
+ | Damit ist es möglich redundante | ||
+ | |||
+ | Ein weiterer Vorteil des angedachten Setups sind deutlich geringere Latenz durch den fehlenden Fanout, sowie deutlich schnellere Stream-Restarts durch aktive Benachrichtigung der Transcoder. | ||
+ | |||
+ | === Übersicht | ||
+ | {{drawio> | ||
+ | |||
+ | ==== Repo Links | ||
+ | * Stream-api, Upload-Proxy, Upload-Server: https:// | ||
+ | * rtmp-auth daemon: https:// | ||
+ | * Transcoding-Script: | ||
+ | |||
+ | == Architecture | ||
+ | The CDN-Cascade has 5 stages: Master-Encoder, | ||
{{: | {{: | ||
=== 1. Master-Encoder | === 1. Master-Encoder | ||
+ | The master stream encoding is created near the stage on the encoder PC running voctomix or on with other videoencoder for third party streams. | ||
+ | The master encoding contains a 1080p25 video signal. | ||
Das Master-Encoding entsteht auf dem encoder-cube im Saal aus dem Ausgabesignal des Voctomix. Das Master-Encoding enthält den Mix als 1080p25 in h264 sowie die Slides als 1080p5 in h264 mit bis zu drei Audiospuren in AAC (Native, Translated, Translated-2). Wahlweise können die Übersetzerspuren sowie die Slide-Spur weggelassen werden. Alle Spuren werden in einem Matroska-Container verpackt. | Das Master-Encoding entsteht auf dem encoder-cube im Saal aus dem Ausgabesignal des Voctomix. Das Master-Encoding enthält den Mix als 1080p25 in h264 sowie die Slides als 1080p5 in h264 mit bis zu drei Audiospuren in AAC (Native, Translated, Translated-2). Wahlweise können die Übersetzerspuren sowie die Slide-Spur weggelassen werden. Alle Spuren werden in einem Matroska-Container verpackt. | ||
Line 136: | Line 161: | ||
Die endgültigen Stream-URLs für einen Beispielstream sX sind dann wie folgt: | Die endgültigen Stream-URLs für einen Beispielstream sX sind dann wie folgt: | ||
- | MPEG-DASH (Multi-Qualität + Multi-Lang) | + | MPEG-DASH (VPx Multi-Qualität + Multi-Lang) |
* http:// | * http:// | ||
- | HLS (Multi-Qualität + Multi-Lang) | + | HLS (h.264 Multi-Qualität + Multi-Lang) |
- | * http:// | + | * http:// |
- | * http://cdn.c3voc.de/ | + | |
- | VPx-HD: | + | Moar HLS |
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | |||
+ | Legacy | ||
* http:// | * http:// | ||
* http:// | * http:// | ||
* http:// | * http:// | ||
- | VPx-SD: | + | Legacy |
* http:// | * http:// | ||
* http:// | * http:// | ||
* http:// | * http:// | ||
- | VPx-Slides: | + | Legacy |
* http:// | * http:// | ||
* http:// | * http:// | ||
* http:// | * http:// | ||
- | |||
- | h264-HD: | ||
- | * http:// | ||
- | * http:// | ||
- | * http:// | ||
- | |||
- | h264-SD: | ||
- | * http:// | ||
- | * http:// | ||
- | * http:// | ||
- | |||
- | h264-Slides: | ||
- | * http:// | ||
- | * http:// | ||
- | * http:// | ||
Audio-MP3: | Audio-MP3: | ||
Line 182: | Line 198: | ||
* http:// | * http:// | ||
* http:// | * http:// | ||
- | |||
== Loadbalancer | == Loadbalancer | ||
- | Neben den Transport- und Edge-Relays gibt es noch zwei Loadbalancer: | + | Neben den Transport- und Edge-Relays gibt es noch drei Loadbalancer: |
* '' | * '' | ||
* '' | * '' | ||
+ | * '' | ||
- | Diese sind sowohl für die Domains '' | + | Diese sind sowohl für die Domains '' |
=== streaming.media.ccc.de | === streaming.media.ccc.de | ||
Line 211: | Line 227: | ||
Die RTMP-Url für den endpunkt '' | Die RTMP-Url für den endpunkt '' | ||
- | Wichtig: nur streams die mit s oder q beginnen werden automatisch in die verschiedenen formate für den playout transkodiert. | + |