Question / Help video and audio lagging HELP ASAP PLEASE

KGInkling

New Member
i need help as fast as possible. my live stream audio and video keeps acting laggy and it’s very annoying you can’t hear what the person is trying to say cause of the lag. please help.
 

Tarumes

Member
Hello

and please post a logfile
https://obsproject.com/forum/threads/please-post-a-log-with-your-issue-heres-how.23074/

Please try to include a recording/streaming session when you experience problems while streaming or recording,
as OBS only writes important performance data during recording or streaming sessions.


If you have solved your problem yourself, please let the others know how you did it If someone else has the same problem,
he will find your post, read it through, is no step closer to solving it, and has wasted some time.
 

KGInkling

New Member
Hello

and please post a logfile
https://obsproject.com/forum/threads/please-post-a-log-with-your-issue-heres-how.23074/

Please try to include a recording/streaming session when you experience problems while streaming or recording,
as OBS only writes important performance data during recording or streaming sessions.


If you have solved your problem yourself, please let the others know how you did it If someone else has the same problem,
he will find your post, read it through, is no step closer to solving it, and has wasted some time.
here’s the log https://obsproject.com/logs/51no0ObSp1avLI9v i don’t know how to add a video file for proof i’m new here
 

Tarumes

Member
not a videofile
click start record/stream whait a while then stop
then upload logfile

so your logfile has data about latest stream
if you close obs before upload a logfile
a new one is generated
 

KGInkling

New Member
not a videofile
click start record/stream whait a while then stop
then upload logfile

so your logfile has data about latest stream
if you close obs before upload a logfile
a new one is generated
ohh thanks and yes that the log file from the stream we did and it was laggy so it is new
 

carlmmii

Active Member
That log file doesn't have any stream or recording session in there -- make sure you find the correct one. It will have lines near the end that show stream start and stream end, as well as a report of how many frames were lost due to rendering and encoding lag, as well as dropped frames.
 

KGInkling

New Member
That log file doesn't have any stream or recording session in there -- make sure you find the correct one. It will have lines near the end that show stream start and stream end, as well as a report of how many frames were lost due to rendering and encoding lag, as well as dropped frames.
i’m pretty this one is the one from our last stream
 

Attachments

  • 2019-11-17 09-36-35.txt
    35.3 KB · Views: 7

carlmmii

Active Member
When you say your "live stream audio and video is acting laggy", what exactly do you mean by this?

From what the logs are saying, your CPU is miraculously being able to keep up mostly with the x264 and QSV encoding for recording and stream at 1080p30, but I'm wondering if you're pushing it all the way to 100% in the process, which could cause things like robot-voice for certain voice-chats (discord I know can definitely be affected, among other things).

What is your CPU usage during record-only? I don't know how much of an actual strain the QSV encoding is going to put on the CPU, but the x264 recording is definitely going to be the heaviest hitting load on there. There's also this sequence of events:
Code:
09:41:52.214: ==== Recording Start ===============================================
09:41:52.214: [ffmpeg muxer: 'simple_file_output'] Writing file 'G:/2019-11-17 09-41-51.mp4'...
09:41:56.040: adding 23 milliseconds of audio buffering, total audio buffering is now 464 milliseconds (source: Video Capture Device)
09:41:56.040: 
09:41:56.337: adding 92 milliseconds of audio buffering, total audio buffering is now 557 milliseconds (source: Video Capture Device)
09:41:56.337: 
09:42:00.637: adding 46 milliseconds of audio buffering, total audio buffering is now 603 milliseconds (source: Video Capture Device)
09:42:00.637: 
09:42:07.046: adding 69 milliseconds of audio buffering, total audio buffering is now 673 milliseconds (source: Video Capture Device)
09:42:07.046: 
09:45:53.827: adding 162 milliseconds of audio buffering, total audio buffering is now 835 milliseconds (source: Video Capture Device)
09:45:53.827: 
10:00:07.233: adding 23 milliseconds of audio buffering, total audio buffering is now 859 milliseconds (source: Video Capture Device)
10:00:07.233: 
10:00:07.596: adding 92 milliseconds of audio buffering, total audio buffering is now 952 milliseconds (source: Video Capture Device)
10:00:07.596: 
10:06:41.330: Max audio buffering reached!
10:06:41.330: adding 92 milliseconds of audio buffering, total audio buffering is now 1044 milliseconds (source: Video Capture Device)
10:06:41.330: 
10:13:11.830: Device 'Focusrite USB (Focusrite USB Audio)' invalidated.  Retrying
10:13:11.965: Device 'Focusrite USB (Focusrite USB Audio)' invalidated.  Retrying
10:13:14.833: [WASAPISource::TryInitialize]:[Focusrite USB (Focusrite USB Audio)] Failed to activate client context: 88890004
10:13:15.172: [WASAPISource::TryInitialize]:[Focusrite USB (Focusrite USB Audio)] Failed to activate client context: 88890004
10:13:17.877: WASAPI: Device 'Focusrite USB (Focusrite USB Audio)' initialized
10:13:18.196: WASAPI: Device 'Focusrite USB (Focusrite USB Audio)' initialized
All of those buffering and audio issues happened directly following starting recording.
 

KGInkling

New Member
When you say your "live stream audio and video is acting laggy", what exactly do you mean by this?

From what the logs are saying, your CPU is miraculously being able to keep up mostly with the x264 and QSV encoding for recording and stream at 1080p30, but I'm wondering if you're pushing it all the way to 100% in the process, which could cause things like robot-voice for certain voice-chats (discord I know can definitely be affected, among other things).

What is your CPU usage during record-only? I don't know how much of an actual strain the QSV encoding is going to put on the CPU, but the x264 recording is definitely going to be the heaviest hitting load on there. There's also this sequence of events:
Code:
09:41:52.214: ==== Recording Start ===============================================
09:41:52.214: [ffmpeg muxer: 'simple_file_output'] Writing file 'G:/2019-11-17 09-41-51.mp4'...
09:41:56.040: adding 23 milliseconds of audio buffering, total audio buffering is now 464 milliseconds (source: Video Capture Device)
09:41:56.040:
09:41:56.337: adding 92 milliseconds of audio buffering, total audio buffering is now 557 milliseconds (source: Video Capture Device)
09:41:56.337:
09:42:00.637: adding 46 milliseconds of audio buffering, total audio buffering is now 603 milliseconds (source: Video Capture Device)
09:42:00.637:
09:42:07.046: adding 69 milliseconds of audio buffering, total audio buffering is now 673 milliseconds (source: Video Capture Device)
09:42:07.046:
09:45:53.827: adding 162 milliseconds of audio buffering, total audio buffering is now 835 milliseconds (source: Video Capture Device)
09:45:53.827:
10:00:07.233: adding 23 milliseconds of audio buffering, total audio buffering is now 859 milliseconds (source: Video Capture Device)
10:00:07.233:
10:00:07.596: adding 92 milliseconds of audio buffering, total audio buffering is now 952 milliseconds (source: Video Capture Device)
10:00:07.596:
10:06:41.330: Max audio buffering reached!
10:06:41.330: adding 92 milliseconds of audio buffering, total audio buffering is now 1044 milliseconds (source: Video Capture Device)
10:06:41.330:
10:13:11.830: Device 'Focusrite USB (Focusrite USB Audio)' invalidated.  Retrying
10:13:11.965: Device 'Focusrite USB (Focusrite USB Audio)' invalidated.  Retrying
10:13:14.833: [WASAPISource::TryInitialize]:[Focusrite USB (Focusrite USB Audio)] Failed to activate client context: 88890004
10:13:15.172: [WASAPISource::TryInitialize]:[Focusrite USB (Focusrite USB Audio)] Failed to activate client context: 88890004
10:13:17.877: WASAPI: Device 'Focusrite USB (Focusrite USB Audio)' initialized
10:13:18.196: WASAPI: Device 'Focusrite USB (Focusrite USB Audio)' initialized
All of those buffering and audio issues happened directly following starting recording.
i lowered the video resolution and now have 7% cpu usage but i still get robot like sound at some points i got an EGPU to see if that would help with encoding
 

carlmmii

Active Member
Do you have the Asio plugin for OBS?

Also, what sample rate is your focusrite? It looks like everything else is set to 44,100hz... if your focusrite is at 48,000hz, that may be what's causing issues.
 
Top