Skip to content

unifiedstreaming/live-streaming-trial

Repository files navigation

Image

Live Streaming Trial

Overview

Launch a live channel and stream just-in-time to any internet connected device from a unified origin.

This trial demonstrates the use of FFmpeg and Unified Streaming - Origin Live to present a Live Adaptive Bitrate presentation.

FFmpeg delivers CMAF tracks to Unified Origin using the DASH-IF Live Media Ingest Protocol - Interface 1

Image

What to expect from this trial

Follow the steps below to launch a live channel in less than 30 minutes.

Your 7 day trial key is present in Step 1.

Prerequisites

Docker, if not already installed see: https://docs.docker.com/get-docker/

Internet access on host through ports 53 and 80; needed to check license key

Step 1

Start by cloning the Live streaming trial from GitHub and starting the Docker Compose stack:

git clone https://github.com/unifiedstreaming/live-streaming-trial.git

cd live-streaming-trial

export UspLicenseKey=<your_license_key>

docker compose up -d

Step 2

Wait a minute or two for all the Docker images to download and the services to start, you can view the status by checking the logs with:

docker compose logs

And checking the origin is available by querying it with curl:

curl http://localhost/channel1/channel1.isml/state

Which should respond:

<?xml version="1.0" encoding="utf-8"?>
<!-- Created with Unified Streaming Platform  (version=1.12.1-28247) -->
<smil
  xmlns="http://www.w3.org/2001/SMIL20/Language">
  <head>
    <meta
      name="updated"
      content="2023-01-20T15:38:30.557813Z">
    </meta>
    <meta
      name="state"
      content="started">
    </meta>
  </head>
</smil>

Step 3

Play the live stream from host running container:

NOTE: The FFmpeg container is configured to encode multiple video and audio tracks in realtime. Therefore buffering or stalled experienced when playing the stream from Unified Origin is subject to the performance of the FFmpeg container. If issues persists, please follow step 4.

Step 4

Stop the services by running:

docker compose down

Restart the trial with a simplified example configured to ingest only 1 video and 1 audio track.

docker compose -f docker-compose-simple.yaml up -d 

Then following Step 3 to playback the new stream.

Tips

To check when your license key expires:

docker exec -it live-streaming-trial_live-streaming-origin_1 mp4split
--show_license

To print and tail origin container's logs:

docker logs -f live-streaming-trial_live-streaming-origin_1

To get into origin container's shell:

docker exec -it -w /var/www/unified-origin live-streaming-trial_live-streaming-origin_1 /bin/sh

What's next?

Learn more about the key features and benefits of using Unified Origin for live streaming

or

Contact us to purchase a license

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published