Streaming to Twitch + TikTok, Recording, plus Replay Buffer--encoder lag after ~30-45 minutes?

ozject

New Member
Good evening,

I am streaming using an M4 Mac Studio and yesterday went fine, but today is being difficult.

I stream 1080p to Twitch at 6000 bitrate using Apple VT H264 Hardware Encoder.
I stream 1080x1920 to TikTok (via StreamElements) at 8000 bitrate using x264 and veryfast (profile high).
I record 1080p ProRes LT.
I have a Replay Buffer of 120s.

Today, while live, I noticed I had a huge spike of encoding lag--I think it went up to nearly 6% before I realized. I ended the recording and replay buffer and it recovered, though it took a good 30 seconds to end the recording/replay, but it didn't cancel my stream or crash OBS.

I let it run for a little while without recording or replay and it seemed to work fine. I turned on Replay Buffer and NOT record, and it seemed to work without any issues for the remainder of my stream.

I've attached what I believe is the relevant log file. Does anyone have any insight into what went wrong? I was recording ProRes 4K yesterday with no overloading, but today I changed the Video tab to scale to 1080p--is that causing a problem? Previously, it was scaling as I sent it to Twitch instead, but I thought that was more resource intensive.

Thank you,
 

Attachments

  • Encoder Lag after 30 minutes.txt
    117.1 KB · Views: 3

ozject

New Member
Coming back to note that I believe I've figured it out. I had moved some things around and my external hard drive disconnected from USB. I changed to another USB-C cable that I thought was high speed, but after giving up, I went to edit the footage that wasn't corrupt and found it was loading very slow, which led me to check my hard drive.

My guess is that the 200 Mbit capture was working for a time, but when the hard drive maxed out around 50 Mbit write speed, the capture fell behind and started dropping frames as whatever buffer was too full to accept more data.

I've since been able to stream and record without issue. Just want to make sure that my solution is here as well, in case someone comes up on this later--Google isn't particularly friendly to MacOS troubleshooting.
 
Top