Tencent Cloud PC CSS is used to push compressed and encoded images (such as live events, teaching, projection or games) to the push URL of Tencent Video Cloud by using push software (OBS (recommended) or XSplit) installed on PCs (windows/mac). Meanwhile, viewers can see real-time images using the playback URL corresponding to the push URL.
You can implement PC CSS easily by following the steps below:
If you don't have a push URL, you can generate a push URL and 3 playback URLs by clicking Access Management -> CSS Code Access -> Access Configuration.
The one whose domain name is livepush.myqcloud.com is the push URL:
It is recommended to use cable network if possible, which is more stable than WIFI to make signals less disruptive. For event CSS, it is recommended to use WIFI for convenience.
You can download an installation package on OBS official website to install according to default settings. OBS is supported in such systems as Windows/Mac/Linux. You should make sure it is Open Broadcaster Software. OBS also provides OBS Studio which is not discussed in this document.
You can download an installation package on XSplit official website to install it according to default settings.
XSplit is not a free software. As an alternative, you can use OBS (Free). For game CSS, XSplit has a separate installation package. It is recommended to use BroadCaster for non-game CSS.
If you get the following push URL:
You need to set two parts separately:
The front part of the push URL "rtmp://3891.livepush.myqcloud.com/live/" is called FMS URL
The latter part of the push URL "3891_test?bizid=3891&txSecret=xxx&txTime=58540F7F" is called stream code.
OBS push URL configuration
Click Settings, select Broadcasting Settings, and then set Mode to CSS Stream, Streaming Service to Custom, FMS URL to the first part of push URL, and Playback Path/Streaming Code to the second part. You're recommended to check Automatic Reconnection, which means push reconnection is triggered automatically when OBS detects an exception (such as network disconnection).
OBS Studio push URL settings
Click Settings in the lower right corner of the page, select Stream, and then set Streaming Type to Custom Streaming Media Server, URL to the first part of the push URL, and Stream Key to the second part.
Audio and video sources are just like the contents of the package to be sent. There are three formats:
From video capturing devices, such as camera or video recording devices.
From PC windows or game sources;
From media files stored in PC, such as video images.
OBS audio and video sources settings
Note*: Click the right mouse button in Source box. The left button is not applicable. The Add menu is popped up, followed by Acquire from Window, Acquire from Screen, Image Source, Slide Show, Text Source, CLR Browser, Video Capturing Device, Game Source, etc. We generally use Acquire from Window and Video Capturing Device. Other sources are configured in a different way. Next, we will introduce how to configure Video Capturing Device.
OBS Studio audio/video source settings
For more information, please see OBS audio and video sources settings.
After the video source is configured, even though you can get the audio and video signals, the original ones are not applicable for spreading in the network because they need more bandwidth. Therefore, it is important to configure the audio and video encoding parameters before CSS starts.
|x264||The h264 encoder is most commonly used in the industry with a higher video compression ratio under the same image quality. It is recommended to select this option.|
|Nvidia NVENC||It performs encoding using the video processing core dedicated to nv graphics card. Nvidia graphics card is required.|
|Quick Sync||Use Intel Quick Sync Video technology to support hardware encoding with a high encoding speed and image quality. But it has a poor compatibility and high bitrate.|
|CBR||This is one of video encoding bitrate control modes and is called constant bitrate control. With a consistent bitrate, it is more suitable for network transmission. It is recommended to select this option.|
|AAC||This is the most widely used live audio encoding format. It is recommended to select this option.|
OBS audio and video formats configuration
OBS Studio audio/video format settings
If the push URL (livepush) is:
the playback URL (liveplay) is:
|Playback Protocol||Playback URL|
Click here for VLC Download URL. You can install according to the default settings. Open the software, click Media Menu, select Open Network Stream, enter the playback URL, and click Play.