A demonstration of using OBS Studio, OvenMediaEngine, Fastly and hls.js to deliver a low-latency HLS stream.
graph LR
hlsjs-.http.->fastly-.http.->ome
obs-.rtmp.->ome
- clone this repo and
cdinto the directory terraform initcp terraform.tfvars.example terraform.tfvars- edit
terraform.tfvarsto populate your fastly api key and gcp project values terraform apply- configure OBS (see below)
- start streaming
- click the player url
- click apply
you should be able to arrange OBS and your browser side by side on your screen and observe the latency to be 3 - 5 seconds
-
Sources
- Add (+)
- Browser
- OK
- URL: https://time.gov
- Width: 1920
- Height: 1024
- OK
- Browser
- Add (+)
-
Settings
- Stream
- Service: Custom
- Server: $paste_terraform_output
- Stream Key: stream
- Output
- Streaming
- Video Bitrate: 5000 Kbps
- Streaming
- Video
- Base (Canvas) Resolution: 1920x1080
- Output (Scaled) Resolution: 1920x1080
- Common FPS Values: 30
- Stream