ossrs / srs

SRS is a simple, high-efficiency, real-time media server supporting RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
25.88k stars 5.39k forks source link

DVR: Support Cloud Storage, supports direct recording to cloud storage. #1193

Closed ibanezsc closed 2 years ago

ibanezsc commented 6 years ago

Cloud storage docking is a business issue, so it is not done in the SRS, but rather in the SRS cloud server, implemented using Node.js.

SRS cloud server now supports recording to Tencent Cloud's COS. Please refer to Cloud Recording. The corresponding version of SRS cloud server is srs-terraform v1.0.113.

Load Test

With a total bitrate of 40Mbps for 20 streams, running for 40 hours, and writing 770GB of data, the server load remained around 3, and SRS CPU usage stayed at 20%, which is very healthy. The load testing for the cloud recording feature has passed, so everyone can use it with confidence.

The server is a machine with 2 cores, 2GB of memory, and a 40GB SSD hard drive.

image image image

The CPU of Node here will continue to increase because the longer the stream time, the more index information there is, so reading and processing take more time. Generally, there won't be such long streaming time unless it is a GB camera, and of course, this type of recording requires special handling.

image image

TRANS_BY_GPT3

winlinvip commented 6 years ago

Can you please provide a detailed description of what a scenario for storing data in cloud storage would look like? Can you provide an example?

TRANS_BY_GPT3

ibanezsc commented 6 years ago

For example, using SRS as a streaming server, if you want to save the RTMP data received from the streaming service, the format can be FLV/MP4 or H264, but you don't want to manage the stored files yourself. Instead, you want to use third-party cloud storage for storage, such as major cloud platforms. How should this scenario be best handled?

TRANS_BY_GPT3

winlinvip commented 6 years ago

Understood, I will first consider supporting recording to Alibaba Cloud storage and conduct some research.

TRANS_BY_GPT3

robertluoxu commented 3 years ago

I'm not sure if it is already supported now.

TRANS_BY_GPT3

winlinvip commented 2 years ago

Using cloud SRS support, refer to srs-cloud.

TRANS_BY_GPT3