Optimal cloud instance

pirks

New Member
I am building a streaming system based on your server. The wcs server receives 100 rtsp streams at the input. At the output, I want to distribute 50 streams using webrtc and HLS (80% / 20%) .The total number of viewers is not more than 300. Also 50 streams should be recorded as HLS. The question is which AWS or Google Computing instance do you recommend choosing from the point of view of the processor and memory?
 

Max

Administrator
Staff member
Good day.
According to this recommenations based on our tests, 8 vCPU, 16 Gb RAM server is the minimum for the described case, without video transcoding.
If, however, a part of WebRTC subscribers wilr use VP8 codec, there will be stream transcoding (RTSP streams are captured in H264), in this case more vCPUs (1 CPU per 2 720p incoming streams) and more memory (at lease 32 Gb) should be used.
Please choose instances types in AWS EC2, Google Cloud or Digital Ocean based on parameters above.
Note that in AWS EC2 and Digital Ocean you can use marketplace image, in Google Cloud you have to deploy WCS manually.
 

snark13

Member
Is it possible to broadcast HLS video w/o video transcoding ? in our tests we can broadcast WebRTC w/o transcoding but HLS video are transcoded. Is it possible to turn OFF transcoding for HLS (camera streams captures in H264) ?
 

Max

Administrator
Staff member
Is it possible to turn OFF transcoding for HLS (camera streams captures in H264) ?
By default, HLS is transcoded to resolution 640x480. Please set the following parameters in flashphoner.properties to disable it
Code:
hls_player_width=0
hls_player_height=0
Note that audio still will be transcoded to AAC 48 kHz if stream is published using PCMA, PCMU audio codecs or AAC with another sample rate. But audio transcoding requires much less CPU resources comparing to video one.
 

snark13

Member
Hi !
We have another problem with server performance.
If we enable streams recording (rtsp) then server load increases by 25-40% of one core per recording stream (480/720p). It looks like transcoding for recording is turn ON. Is it possible to turn OFF transcoding for recording? (record goes to TS container). May be you can suggest another options ?
 

Max

Administrator
Staff member
Good day.
Usually, RTSP streams are published using H264 video codec, so only audio should be transcoded (or resampled) for recording.
Please check the server statistics page http://wcs:8081/?action=stat. In "Native resource" and "Transcoding stats" sections you can see if video transcoding is performed.
Also please collect a report including client debug logs as described here, add statistics page output and send us using this link. We will check.
 
Top