MCU - Blurred Image

Hello!

We are experience issues with MCU.
The video images are blurred a lot of times.
The incoming stream is clear, but the stream into MCU a lot of time becomes blurred and colored.
Encoder priority - flashphoner.settings is VP8, H264
 

Max

Administrator
Staff member
Good day.
Please check the publisher channel quality:
- is channel enough for publishers resolution/bitrate?
- are there packet losses while publishing a stream?
Publishers channel quality can be checked as decribed here. If channel is not enough, consider to use lower resolution/bitrate.
Packet losses on publishers channel can be inspected with /stream/metrics REST API query by stream name. If VIDEO_LOST metric value grows, and the value is more than 0,5% of VIDEO_P_FRAMES, consider to use lower resolution/bitrate. If this does not help, another channel should be used (another Wi-Fi, ISP, etc)
If none of the above helps, please collect a report including client debug logs and traffic dump as described here, then send it using this link. We will check.
 
{"exception":"com.flashphoner.rest.server.exception.InternalErrorException","path":"/rest-api/stream/metrics","error":"Internal Server Error","message":null,"timestamp":1593519846697,"status":500}
 
I have sent a video with details.

Above, our settings file

media_port_from =31001
media_port_to =60000

#codecs
codecs =opus,alaw,ulaw,g729,speex16,g722,telephone-event,mpeg4-generic,h264,vp8,flv,mpv
codecs_exclude_sip =mpeg4-generic,flv,mpv
codecs_exclude_streaming =flv,telephone-event
codecs_exclude_sip_rtmp =opus,g729,g722,mpeg4-generic,vp8,mpv

#websocket ports
ws.port =8080
wss.port =8443

wcs_agent_ssl = true

record_streams=false
record_flash_published_streams=false

record_rotation=300M
stream_record_policy_template={streamName}-{startTime}-{endTime}
on_record_hook_script=/usr/local/FlashphonerWebCallServer/bin/on_record_hook.sh
mp4_container_moov_first=true
mp4_container_moov_first_reserve_space=true
mp4_container_moov_reserved_space_size=2048



webrtc_cc_min_bitrate=500000
webrtc_cc_max_bitrate=7000000


webrtc_sdp_min_bitrate_bps=500000
webrtc_sdp_max_bitrate_bps=7000000


mixer_idle_timeout=3600000

#encoder_priority=FF
#mixer_video_quality=20
mixer_thread_priority=10
#mixer_video_fps=30
#mixer_video_bitrate_kbps=800
record_mixer_streams=false
streaming_video_decoder_fast_start=false
mixer_video_desktop_layout_padding=5
mixer_video_grid_layout_padding=5
mixer_layout_class=com.flashphoner.media.mixer.video.presentation.CenterNoPaddingGridLayout
mixer_video_layout_desktop_key_word=d
mixer_voice_activity_frame_thickness=3
mixer_audio_silence_threshold=-50
#audio_mixer_output_codec=pcma
#audio_mixer_output_sample_rate=8000
#audio_mixer_max_delay=3000
#audio_reliable=on
#mixer_in_buffering_ms=5000
#mixer_video_background_filename=mixer.png
mixer_realtime=true
mixer_auto_start=true
mixer_mcu_audio=true
mixer_mcu_video=true


#aws_s3_credentials=XXXXXXXXXXXXXXXXXXXX
vod_mp4_container_new=true
vod_mp4_container_new_buffer_ms=5000


disable_manager_rmi=true

rest_max_connections=500

rtp_receive_buffer_size=131072
rtp_send_buffer_size=131072
rtp_activity_detecting=true,90
flash_rtp_activity_enabled=true


webrtc_cc2_twcc=false


#rtmp.server_buffer_enabled=true
#rtmp_in_buffer_enabled=true
#rtmp_in_buffer_polling_time=1000
#rtmp_in_buffer_start_size=1500
#rtmp_server_channel_receive_buffer_size=2048

keep_alive.enabled=websocket,rtmfp

disable_streaming_proxy=true

av_paced_sender=true
av_paced_sender_max_buffer_size=5000
video_transcoder_preserve_aspect_ratio=false

opus.encoder.bitrate=320000
 

Max

Administrator
Staff member
{"exception":"com.flashphoner.rest.server.exception.InternalErrorException","path":"/rest-api/stream/metrics","error":"Internal Server Error","message":null,"timestamp":1593519846697,"status":500}
Please make sure you have provided stream name or mediaSessionId as query parameter, for example
Code:
curl -H "Content-Type: application/json" -X POST http://wcs:8081/rest-api/stream/metrics -d '{"name":"test"}'
Please also add the following settings
Code:
mixer_display_stream_name=true
mixer_debug_mode=true
to enable incoming stream buffering displaying on picture in mixer. Please check the buffering value, if it drops to 0 ms this means problems with incoming stream that we mentioned above.
About your server settings, please consider not to inflate bitrate to 7 Mbps as you do with settings
Code:
webrtc_cc_min_bitrate=500000
webrtc_cc_max_bitrate=7000000

webrtc_sdp_min_bitrate_bps=500000
webrtc_sdp_max_bitrate_bps=7000000
Please also consider to use lower publishing resolution. For example, 1080p may be too big for publishing channel, this may lead to picture freezes in mixer.
We recommend you to test channel quality as we supposed above. Then please collect a report including client debug logs and traffic dump as described here, then send it using this link. The WhatsApp video is not enough to diagnose the problem.
 
Top