Ubuntu 22.04 CPU highe load issue

Max

Administrator
Staff member
There is no known side effects if you just remove codecs from codecs=

Anyway we recommend exclude instead of remove for better differentiation by feature-sets.

codecs_exclude_cdn
codecs_exclude_sfu
codecs_exclude_sip
codecs_exclude_sip_rtmp
codecs_exclude_streaming
 

Max

Administrator
Staff member
The best way to exclude codecs is to strip them on client side:
Code:
session.createStream({
    streamName: "test",
    display: remoteVideo,
    ...
    stripCodecs: "VP8"
}).on(STREAM_STATUS.PLAYING, function (stream) {
    ...
}).play();
You can test it in Media Devices example https://wcs:8444/client2/examples/demo/streaming/media_devices_manager/media_device_manager.html
1660784647667.png

In this case, server configs does not need to be changed, and you can check a various client capacities (for example, some Android devices does not support H264 at all, it is stripped on the system level)
Also, do not strip Opus audio codec because browser will use PCMA in this case which has a poor quality comparing to Opus.
 

yeprem

New Member
Hello

Thank you for your support, first, I want to mention seems with your help currently we don't have CPU issues.

We have another issue related to Stream Auto play.

We used this HTML Iframe code

<iframe id='fp_embed_player' src='https://stream.donbet.bet:8888/embe...treamName=&mediaProviders=WebRTC,MSE,WSPlayer' marginwidth='0' marginheight='0' frameborder='0' width='100%' height='100%' scrolling='no' allowfullscreen='allowfullscreen'></iframe>

and added to the URL &autoplay=true it's sometimes working sometimes not.

We have integrated this tutorial https://flashphoner.com/embedding-an-hls-player-for-webrtc-stream-playback-2/
With this seems autoplay is working but streams behind around 10-20 seconds
(I think the issue it's coming from this link var src = urlServer + "/" + streamName + "/" + streamName + ".m3u8"; from m3u8 that fromat. Do you have another format which will help run the video as live without any delay?)

Can you help me solve this first autoplay issue or in a second way run streams live?
 

Max

Administrator
Staff member
Hello

Autoplay policy is being changed in browsers.

You can read more here: https://docs.flashphoner.com/displa...erviaWebRTC-Autoplayissuesindifferentbrowsers

it's sometimes working sometimes not
1. How can we reproduce this issue? Please provide screenshots.
2. If we open page 10 times https://stream.donbet.bet:8888/embe...treamName=&mediaProviders=WebRTC,MSE,WSPlayer
Will auto-playback be started 10 of 10? Or do you mean something else.
3. What browser and OS is used for playback?

We have integrated this tutorial
This is HLS (Apple HTTP Live Streaming).
Latency 20 seconds is expected for HLS.
 

yeprem

New Member
last days our traffic has increased and we're having some issues, as I see it is related to ports_media_free.
When I'm trying to start a new stream I'm getting an error no free ports available, also we're having issues with playback.
Can you please assist how can I increase the number of ports_media_free? is this some config or it's related to hardware?


P.S. our CPU usage is not going over 30% so I hope I can increase the number of supported connections just by changing settings.
 

Attachments

Max

Administrator
Staff member
Can you please assist how can I increase the number of ports_media_free? is this some config or it's related to hardware?
You can increase media ports range using the following settings in flashphoner.properties file:
Code:
media_port_from=20001
media_port_to=40000
WCS needs to be restarted to apply changes.
 
Top