Streaming to Livepeer From Broadcasting Apps

Doug Petkanics edited this page Jun 16, 2017 · 1 revision

This post describes how to stream to Livepeer from existing broadcasting apps like OBS on Windows, Linux, or OS X, Manycam on iOS, or RTMP Camera on Android.

  1. Install and run a local Livepeer node. The instructions to do so are here
  2. You can begin broadcasting by setting your RTMP output in your broadcasting app to rtmp://localhost:1935/stream. (Feel free to replace localhost with your ip or hostname if broadcasting from phone to a remote node). You will see the newly generated stream IDs in the console output. At that point any other Livepeer node can watch the stream by using the Desktop App or running

livepeer stream <streamid> for RTMP stream ID
livepeer --hls stream <streamid> for HLS stream ID

However, sometimes it is much easier to determine your stream ID in advance so that you can actually share a link to it. To get a stream ID after you have started your node, run...

curl http://localhost:8935/createStream

This will output a new RTMP stream id. Copy it. You can also generate an HLS id by simply changing one of the last characters in the RTMP stream ID so that the HLS ID is unique. At this point you can use your broadcasting tool and set your RTMP output URL to:

rtmp://localhost:1935/stream/<RTMP stream ID>?hlsStrmID=<HLS Stream ID>

Now you know both the HLS and RTMP IDs in advance so that you can reuse the same stream and actually program a DApp to read those values specifically to embed YOUR stream (or better yet, store them in ENS or Swarm).

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.