Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modules/dash: adaptive DASH + ffmpeg #7

Open
wants to merge 4 commits into
base: canon
Choose a base branch
from

Conversation

puckipedia
Copy link
Collaborator

As nginx-rtmp is flaky, this replaces it with an ffmpeg command that simultaneously transcodes the stream, and publishes it as DASH and HLS, ensuring it can be watched on most devices.

As nginx-rtmp is flaky, this replaces it with an ffmpeg command that
simultaneously transcodes the stream, and publishes it as DASH and HLS,
ensuring it can be watched on most devices.
This allows the load balancer to function properly.
This is a safeguard against a situation encountered during testing,
because 1366x768 isn't exactly 16:9, and the ffmpeg dash muxer doesn't
like this situation.
This configuration generates 2-second segments, with the keyframe
interval set to 2 seconds at 30fps (this is synced up with the incoming
OBS stream), and configuring low-latency DASH both here and on the
DASH.js client. This brings the latency down from 30 seconds to just
over 12 (measured from a text file being rendered by OBS).
Copy link
Collaborator

@alyssais alyssais left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but you should probably add your name in the header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants