Getting started with video broadcasts in Yandex Cloud Video
Note
The service is at the Preview stage.
To stream a video on the service's channel:
- Prepare your cloud environment.
- Create a channel.
- Create a line.
- Create a broadcast.
- Set up OBS Studio.
- Start your broadcast.
- Check if the broadcast is available.
For information about using the service via the API, see How to get started with the Yandex Cloud Video API.
Prepare your cloud environment
- Go to the management console
and log in to Yandex Cloud or sign up if not signed up yet. - On the Yandex Cloud Billing
page, make sure you have a billing account linked and it has theACTIVE
orTRIAL_ACTIVE
status. If you do not have a billing account yet, create one. - Open the Cloud Video home page
. - Select the organization to work with Cloud Video in or create a new one.
-
To turn Cloud Video on, request access from the home page
. You can also request access from support. - Make sure you have the minimum role,
video.editor
, in the organization.
Create a channel
- Open the Cloud Video home page
. - Click
Create a channel. - On the channel creation page, enter:
- Name.
- (Optional) Description.
- Click Create.
Once the channel is created, you will find yourself inside it on the
Create a line
-
In the
Lines tab, click Create a line. -
Enter a name for the line.
-
In the Stream input protocol field, select
RTMP
. -
In the Stream type field, select
Push
. -
In the Thumbnail field, click
Select file and choose a cover image.The following cover formats are supported: JPG
, PNG , and GIF . -
Click Create.
Create a broadcast
-
In the
Broadcasts tab, click Create a broadcast. -
Enter a name for the broadcast.
-
Select the previously created line.
-
In the Thumbnail field, click
Select file and choose a cover image.The following cover formats are supported: JPG
, PNG , and GIF . -
In the Stream type field, select
On demand
. -
Click Create.
-
In the broadcast settings window that opens, copy the following data:
- Broadcast key
- Server address.
Set up OBS Studio
-
To install Open Broadcaster Software
(OBS Studio or OBS), the video recording and live streaming software:LinuxWindowsRun this command:
sudo add-apt-repository ppa:obsproject/obs-studio \ sudo apt install obs-studio
Download
and install OBS Studio from the project’s website or use the Chocolatey package manager. In PowerShell, run this command as an administrator:choco install obs-studio
-
Set up OBS Studio:
-
In the right-hand panel, go to Controls → Settings → Stream.
-
In the Destination section:
- In the Service field, select Custom....
- In the Server field, specify the server address you got earlier.
- In the Stream Key field, specify the broadcast key you got earlier.
-
In the left-hand panel, select Output → Stream.
- Under Video Bitrate, set a value based on screen resolution and internet speed. You can measure your internet speed using Yandex.Internetometer
. Your stream bitrate must not exceed the Outgoing connection value. - In the Video Encoder field, select the video encoding format.
- Under Video Bitrate, set a value based on screen resolution and internet speed. You can measure your internet speed using Yandex.Internetometer
-
In the Recording section:
- In the Recording Path field, specify the path to save your stream to.
- In the Recording Format field, select the video file format.
-
Click ОК.
-
In the Sources panel at the bottom left, click
to add a source.- In the window that opens, select a source, e.g., Video Capture Device.
- In the window that opens, specify the source name and click OK.
- Select the video streaming device, e.g., a webcam, and click OK.
-
In the center of the window, you can set the size and position of the video stream.
-
To start a broadcast, in the bottom-right Controls panel, click Start Streaming.
-
For more information, see OBS Studio setup recommendations.
Start your broadcast
- Go back to the
Broadcasts tab in Cloud Video. - Select the broadcast you created earlier.
- Click
Start.
The service limits the duration and number of simultaneous broadcasts.
Check if the broadcast is available
-
On the broadcast settings page, under Episodes, click
Embed in site and select thelink
tab. -
Click
Copy.With Cloud Video Player SDK for IFrame, you can specify additional video player management settings and video playback parameters for the HTML page, such as video size and looping, volume, etc.
-
Open a new browser page and paste the obtained URL to the address bar.
-
Click the Play button.