OBS stream via RTMP very slow and deconnecting in player

michelklingler

New Member
Hi,

I set up a Webcallserver with the AWS template.
Have a remote server with OBS running streaming 1280x720@30 fps
Internet is very good on all device.
But when I enter the information on the player It take a few second to load the stream.
I a can see a frame then another a few second after.
Then the connection get lost and the player get grey.
I can stream using the same OBS configuration to a Youtube Channel without issue.

Thank you for your support
 

Max

Administrator
Staff member
Hello

Try to configure OBS with H.264 ultrafast preset
This should prevent sending B-frames.
This is Known issues (1)

Try to disable RTMP keep alives in WCS_HOME/conf/flashphoner.properties config
Code:
keep_alive.enabled=websocket,rtmfp
This is Known issues (4)
 

michelklingler

New Member
Thank you for the Help !

I switched the encoder from X.264 to Nvidia NVENCH.264 and somhow it solved the issue.
Thanks for your reply.

Michel
 

michelklingler

New Member
Hi My stream is still laggy and deconnecting :(
I found the config file in :
usr/local/FlashphonerWebCallServer-5.2.629/conf/flashphoner.propertiers

But I can't see the keep_alive.enable config.

Help !
Thanks

Michel
 

michelklingler

New Member
Here is the content of the config file :


Code:
ip                     =3.85.214.12
ip_local               =172.31.64.194
port_from              =30000
port_to                =31000
media_port_from        =31001
media_port_to          =32000
waiting_answer         =60
user_agent             =Flashphoner/1.0
balance_header         =balance
cost_header            =cost
video_enabled          =true
domain                 =
outbound_proxy         =
outbound_port          =
log_level              =5
enable_context_logs    =false
rtp_activity_detecting =true,60
sip_msg_listener       =com.flashphoner.sdk.sip.ChangeCallIdListener
call_record_listener   =com.flashphoner.server.client.DefaultCallRecordListener
dtmf                         =rfc2833
auto_login_url         =/usr/local/FlashphonerWebCallServer/conf/account.xml
get_callee_url         =/usr/local/FlashphonerWebCallServer/conf/callee.xml
codecs                   =opus,alaw,ulaw,g729,speex16,g722,mpeg4-generic,telephone-event,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,telephone-event,vp8,mpv
on_record_hook_script  =on_record_hook.sh

rtmp_transponder_stream_name_prefix =rtmp_

client_mode=false

rtc_ice_add_local_component=true
 

michelklingler

New Member
Thank you so much Max !
This solved the issue related to the disconnection.

Now I still have a very very low Framrate using the player and WebRTC on an updated Chrome on Windows.
If use MSE only I got a pretty decent FPS but the image is stuttering.

I put the preset in OBS as UltraFast, actually I guess it is now called Low-Latency performance right?
Screenshot_1.png


Here are my other settings :
Screenshot_2.png


My video on the player with webRTC enabled still look .5 FPS ...

Thanks for the support,
Michel
 
Top