total no of users watching my rtmp stream

vijender

New Member
hi

can you tell me how to see the count of total no of users watching my 1 rtmp stream using embed player html
 

Max

Administrator
Staff member
Good day.
You can use server statistics page http://wcs:8081/?action=stat. In Stream Stats section, there is the parameter streams_viewers showing subscribers count per every stream published. For example, 7 streams are published with 1 subscriber to test_0 stream
Code:
streams_viewers=test_2/0;test_3/0;test_4/0;test_6/0;test_5/0;test_1/0;test_0/1
 

vijender

New Member
hi
i hosted wss on aws ec2 C5-4Xlarge ( 16vcpu,32gb ram)
how to configure this for 1 incoming rtmp to max concentrate connections live watching through embed player html ?.
i want to host a rtmp stream for 1k users live watching through embed player html.

going through http://wcs:8081/?action=stat showing following :

-----Connection Stats-----
connections=4
connections_rtmfp=0
connections_websocket=4
connections_hls=0
-----Port Stats-----
ports_media_free=499
ports_media_busy=0
ports_media_quarantine=0
ports_wcs_agents_free=998
ports_wcs_agents_busy=0
ports_wcs_agents_quarantine=0
-----Stream Stats-----
streams_webrtc_in=0
streams_webrtc_out=0
streams_websocket_out=0
streams_rtmfp_in=0
streams_rtmfp_out=0
streams_rtmp_in=0
streams_rtmp_out=0
streams_hls=0
streams_viewers=
streams_synchronization=
stats_size=0
streams_rtsp_in=0
streams_rtsp_out=0
streams_rtmp_client_out=0
streams_play_rate=0
streams_stop_rate=0
-----Native Resources-----
native_resources=
native_resources.audio_codecs=0
native_resources.audio_resamplers=0
native_resources.video_transcoders=0
native_resources.video_decoders=0
native_resources.video_encoders=0
native_resources.writers=0
-----Core Stats-----
core_heap_memory_used=462853488
core_java_committedMemory=3485855744
core_java_threads=150
core_java_freePhysicalMemorySize=30287044608
core_java_arch=amd64
core_java_availableProcessors=16
core_java_freeSwapSpaceSize=0
core_java_maxFileDescriptorCount=20000
core_java_open_file_descriptors=2157
core_java_cpu_usage=0.13
core_java_totalPhysicalMemorySize=32493105152
core_java_totalSwapSpaceSize=0
core_java_uptime=704920471
core_java_version=1.8.0_252
-----Call Stats-----
sip_processed_calls=0
sip_calls_state=established/0;trying/0;ringing/0;ring/0;ring_media/0;hold/0;busy/0;finish/0;session_progress/0;pending/0;failed/0
sip_calls=0
sip_calls_established=0
sip_calls_in=0
sip_calls_out=0
sip_calls_per_second=0.00
-----Sip Stats-----
sip_registered=0
-----Recording Stats-----
recording_sessions=0
-----System Stats-----
system_java_cpu_usage=0.00
system_java_load_average=0.01
-----Network Stats (Mbit/s)-----
global_bandwidth_in=0.000
global_bandwidth_out=0.000
-----Version info-----
wcs_version=5.2.695-8b089842c6d82724c987f9a645afbe84fbc74882
wcs_client_version=0.5.28.2753-51703a2bcc82e5f5848afe3ab94e635388e0a0cf
-----Errors info-----
javax.net.ssl.SSLException=314
com.flashphoner.server.A.A.G=62
java.io.IOException=1304
java.lang.NumberFormatException=58
java.lang.ArrayIndexOutOfBoundsException=74
java.lang.IllegalArgumentException=140
java.lang.NullPointerException=4
com.flashphoner.server.license.activation.A.A=1
-----Degraded streams-----
degraded_streams=
degraded_streams_percent=0
-----Transcoding info-----
transcoding_video_decoding_resolutions=
transcoding_video_decoding_average_time=
transcoding_video_decoding_max_time=
transcoding_video_decoding_average_queue_size=
transcoding_video_decoding_max_queue_size=
transcoding_video_decoding_load=0
transcoding_video_encoding_resolutions=
transcoding_video_encoding_average_time=
transcoding_video_encoding_max_time=
transcoding_video_encoding_average_queue_size=
transcoding_video_encoding_max_queue_size=
transcoding_video_encoding_load=0
 

Max

Administrator
Staff member
going through http://wcs:8081/?action=stat showing following :
...
streams_webrtc_in=0
streams_webrtc_out=0
streams_websocket_out=0
streams_rtmfp_in=0
streams_rtmfp_out=0
streams_rtmp_in=0
streams_rtmp_out=0
streams_hls=0
...
Seems like where are no published streams at this time
i hosted wss on aws ec2 C5-4Xlarge ( 16vcpu,32gb ram)
how to configure this for 1 incoming rtmp to max concentrate connections live watching through embed player html ?.
i want to host a rtmp stream for 1k users live watching through embed player html.
This instance configuration seems to be enough, if you do not enable transcoding (for example, all the subscribers should play H264, not VP8, and should use WebRTC or MSE to play)
Please update WCS to latest build from this page, then read the following recommendations for pre-production tuning and make steps 3, 4, 8, 9, 11, 12:
3. Expand media ports range, check if this range is not interferring with another server ports
Code:
media_port_from=20001
media_port_to=40000
4. Check Linux dynamic ports range and change it if necessary
8. Disable client logs in flashphoner.properties file
Code:
enable_extended_logging=false
9. Decrease server log output in log4j.properties file
Code:
log4j.rootLogger=error, stdout, fAppender
11. Check Java heap memory volume
12. Update JDK to 12 or 14 and set up ZGC garbage collector
 
Top