Question / Help getting approx 40 sec lag in live video streaming

Hemraj

New Member
Hello,
I am new to this OBS stuff,I am sharing obs logs,can anyone suggest solution.....I am getting approx 40 sec lag with following configuration......thanks.
 

Attachments

  • log.txt
    28.1 KB · Views: 26

Hemraj

New Member
Thank you so much @koala ..........what information you looking for ...I am using RTMP, as you saw in log,session aborted frequently but sessions not aborted by server .....I was connecting and disconnecting nginx server,that's why log generated this type......I am looking for lag free configuration on OBS best according my machine configuration. I am having upload speed approx 2-3 mbps, could this be an issue? thanks
 

Hemraj

New Member
The connection to the streaming server is aborted for the sessions in the logfile. For some reason, there is no information about which streaming service is in use, so one can only guess what happens here, but I will not guess.
General networking advice: https://obsproject.com/wiki/Dropped-Frames-and-General-Connection-Issues
Thank you so much @koala ..........what information you looking for ...I am using RTMP, as you saw in log,session aborted frequently but sessions not aborted by server .....I was connecting and disconnecting nginx server,that's why log generated this type......I am looking for lag free configuration on OBS best according my machine configuration. I am having upload speed approx 2-3 mbps, could this be an issue? thanks
 

koala

Active Member
If you're streaming to your own nginx server, verify operation of that server. Your connection is aborted, and this is the sign of a bad connection to that server, or a badly configured server.
To create a valid baseline configuration of OBS, use Tools->Auto Configuration Wizard, but this will not help in case there are issues with the server.

Your first step to rule out issues with capturing and encoding is to only record with OBS and not stream. To record exactly what would be streamed, go to Settings->Output, use simple output mode and in the Recording section use "same as stream" for Recording Quality. In the Streaming section, set the bitrate you intend to stream with. Then record instead of stream and verify the recording with a good video player like vlc or Media Player Classic, not the internal Windows media player. If the recorded video is fine and lag free, you know that this part is ok. Then you switch to streaming and see how the streaming part will work.

If the recorded video contains lags, your issues are not network related (in this case consult https://obsproject.com/wiki/General-Performance-and-Encoding-Issues), but if the video contains no lags, your issues are network related (in this case consult https://obsproject.com/wiki/Dropped-Frames-and-General-Connection-Issues)
 

Hemraj

New Member
If you're streaming to your own nginx server, verify operation of that server. Your connection is aborted, and this is the sign of a bad connection to that server, or a badly configured server.
To create a valid baseline configuration of OBS, use Tools->Auto Configuration Wizard, but this will not help in case there are issues with the server.

Your first step to rule out issues with capturing and encoding is to only record with OBS and not stream. To record exactly what would be streamed, go to Settings->Output, use simple output mode and in the Recording section use "same as stream" for Recording Quality. In the Streaming section, set the bitrate you intend to stream with. Then record instead of stream and verify the recording with a good video player like vlc or Media Player Classic, not the internal Windows media player. If the recorded video is fine and lag free, you know that this part is ok. Then you switch to streaming and see how the streaming part will work.

If the recorded video contains lags, your issues are not network related (in this case consult https://obsproject.com/wiki/General-Performance-and-Encoding-Issues), but if the video contains no lags, your issues are network related (in this case consult https://obsproject.com/wiki/Dropped-Frames-and-General-Connection-Issues)
I got your point....let me try first what you suggested...........thank you so much @koala for your suggestion.
 

Hemraj

New Member
I got your point....let me try first what you suggested...........thank you so much @koala for your suggestion.

hello @koala, I couldn't get back you .....I don't know why they blocked my IP......anyway I got reduce lag from 40 sec to 15 sec,so many thanks ...
I want to know,Is this optimal lag 15 sec or I can get better stream? My second question, I am using RTMP module with nginx server,now I want to add chat bot, how I can get this.....in OBS there is no chat box option showing. Any help any link please......thanks
 
Top