Command Line Interface
This section explains how to publish content to and from Livepeer Gateway using a command line interface (CLI).Install FFmpeg
Install FFmpeg
for your platform following the instructions on the
FFmpeg website.
Run the following command to send an RTMP test stream to the Gateway:
test_source
is the “stream key” for this publication.size=1280x720
defines the dimensions of the test video source in pixelsrate=30
defines the frame rate of the test video in frames per second1000k
defines the bitrate for the streamkeyint=60
defines the keyframe interval in frames
Run the following command to send a recorded video file to the Gateway:
video_file
is the “stream key” for this stream.
Graphical User Interface
This section explains how to publish media to the Livepeer Gateway using a graphical user interface (GUI).Publish content using OBS Studio
OBS Studio can be used to publish streaming media to the Livepeer Gateway:- Install OBS Studio.
- Open OBS Studio and go to File > Settings > Stream.
-
Enter the following details:
- Go to the Output tab and set Output Mode to Advanced.
-
Set the Keyframe Interval to
1
. - Click OK and then Start Streaming in the main window.