Getting started with video broadcasts in Yandex Cloud Video
To stream a video on the service's channel:
- Get your cloud ready.
- 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.
Get your cloud ready
To get started with Cloud Video:
- Log in
to your Yandex account. If you do not have an account, create one. - Open the Cloud Video home page
. - On the Cloud Video home page, confirm that you have read and accept the Terms of use
, then click Log in. - Create a billing account.
-
Log in
to your Yandex account. -
Open the Cloud Video home page
. -
Select one of these options:
-
If you already have an organization, select it from the drop-down menu and click Open Cloud Video.
Note
To activate a Cloud Video instance, you need the
adminorownerrole. For more information about roles, see Access management in Yandex Identity Hub. -
If you have a cloud but no organization, click Open Cloud Center. In the window that opens, enter a name and description for your organization and click Create organization and Cloud Video. For more information about working with organizations, see Getting started with organizations.
-
-
To use Cloud Video, make sure you have the minimum role,
video.editor, in the organization.
If you encounter a technical issue with the service, contact Yandex Cloud support
Create a channel
- Open the Cloud Video home page
. - Click
Create a channel. - On the channel creation page, enter:
- Name.
- Optionally, Description.
- Click Create.
Once the channel is created, you will find yourself inside it on the
- To learn more about channels, see Channels.
- To learn more about configuring ads, see Configuring ads.
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.
To learn more about lines, see Lines.
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.
To learn more about streams, see Broadcasts.
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-studioDownload
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 OK.
-
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 stream's source 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 thelinktab. -
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.