Question / Help Is my encoder duplicating frames? (Log included)

EDGAR_SEC

Member
Hey guys, I'm wondering if someone could take a look at my log from my 4 hour stream last night and let me know if my, "encoder is duplicating frames." I'm not a pro when analyzing log files, but I did notice OBS dropped 1028 frames last night over 4-5 hours (~0.15% failure rate).

Anyway, some random user came into my chat and told me I was actually putting out an effective 46fps instead of 60fps due to the duplicated frames over the course of the past hour. Could anyone please confirm? I figured the guy was just trolling/upset and that the issue might have been his weak CPU which couldn't decode and display the frames fast enough on his end.

Thanks!

Log file: https://gist.github.com/anonymous/bcab5b85159dba1db62f
 
You have a few duplicated frames (0.32%) but nothing bad.
Dropped frames on the other hand are frames discarded by OBS when you internet is not fast enough which lead to choppy playback.

First start with disabling your custom buffer size.
You have 10000 buffer size which can spike your upload to almost 10 mbits which is likely the cause to your frame drops.
 
I understand now. So if I'm reading this right:

Number of b-frames dropped: 547 (0.06%), Number of p-frames dropped: 558 (0.061%), Total 1105 (0.12%)

This means only 1105 (or 0.12%) of my frames were actually dropped due to unstable internet. So in total, 2917 duplicated + 1105 dropped (for a total of 4022) frames were "mishandled" out of the 914,756 I had in my stream last night, right?

If so, then I guess only 0.004% of my frames were "mishandled" and that the viewer was just trolling/misinformed. I'm guessing he might have been trying to watch on a dual core laptop and was skipping frames on his end. I know even my Samsung AB9+ can't handle viewing my stream without skipping some frames.

I guess my figures/results would be well within, "acceptable?"

Thanks!
 
Hi Sapiens, I viewed them as separate issues since at first I was looking at the possibility of it just being my CPU really dropping/duplicating/skipping the frames. This post was also for general understanding/help with interpreting log files.

The other post I viewed as a separate issue since it appears to be a completely unsolved and possibly severe flaw with OBS. I guess in the future I'll limit my thread creation to a max of once per week. Thanks!
 
So my other help request thread was thought of as a duplicate, I guess I'll post that new issue in this same thread:

Now I understand how to correctly interpret the log file, but it appears I might have encountered a new big issue with OBS. For some reason it appears to be sampling from the capture card at the wrong intervals and is causing jitter which is the same issue this user has experienced here: http://webcache.googleusercontent.c...fluid-motion.21144/+&cd=1&hl=en&ct=clnk&gl=us

That's a linked to the google cached version since the original thread was deleted in the past hour for some reason.

My attached log file shows the encoder isn't struggling at all and everything should be working normally. This issue is only found if I take a local recording and go through it frame by frame. Doing so leads to the discovery that every 6th frame is duplicated. I have tried setting CFR on and off and even tried at 30fps. I'm running the latest version of my card's drivers and the latest version of "classic" OBS.

Log: https://gist.github.com/anonymous/5ef26db4bcda4600b882

Any ideas?

Thanks
 
First your log file is just a few seconds long. Statistically insignificant. Post one from a five minute or longer gameplay session with a lot of fast action for whatever game you're playing.

Second, you're trying Medium preset (and if the statistics can be believed despite what I said above, duplicating frames). Set that preset to something faster until you've got no frame duplication and retest. Start with easy settings and get some successes before pushing the limits and wondering where it went wrong.
 
Hello Boildown,

Yes, the second log posted in this thread was short, but the first one posted in the OP was for a 4-5hr long stream. This is the log from a 3 hour session last night: https://gist.github.com/anonymous/6f68d000a55154489c4b

I've verified that the local recording for that stream exhibits the same behavior. Identical results also occur even if I lower the resolution to 720p and superfast. I'm pretty sure a 5960X could handle that with no problem. If you look at my post history, you'll notice I always do my own troubleshooting before coming here to make a post.

Anyway, hopefully you can find something odd in my log file since my novice interpretation of it says I shouldn't be having this duplicating issue.

Thanks!
 
Well you're not duplicating very many frames in the logs. It might just be a Twitch player issue, its hard to playback 60FPS even in the best circumstances due to limitations of Flash player (this seems like less of an issue lately though). You're certainly not duplicating 25% of your frames like someone told you.

However your bitrate settings are bad for streaming to Twitch. You should top out at 3500kbps bitate and buffer. You have it set for 5000/10000. That's too high and any viewers are unlikely to be able to download that. Most people recommend setting the bitrate and buffer even lower than the Twitch max recommended settings so that more people can actually watch your stream on their crappy internet connections. If you're partnered this doesn't apply to you as much however.
 
I figured it was a Twitch player issue, but I was able to confirm it wasn't the player by viewing one of my local recordings and stepping through it frame-by-frame (all of my VODs are recorded to a separate SSD). It's the exact same unsolved issue that this user has (highly recommended post with screenshots and video files): https://obsproject.com/forum/thread...-missed-frames-preventing-fluid-motion.21144/

I'm also aware about the bitrate issue, but it shouldn't be a problem in about a week due to partnership (most likely). I definitely could have made it much sooner with a lower bitrate, but then again I could have also done is quicker by streaming something other than mainly Battlefield haha.
 
Yes, I verified it the other day with local recordings dropping to low bitrate, faster preset, and greater downscale (ie 2.0 to 720p). It's just another of those crazy issues I've run into haha.

I guess I could try to duplicate it in Multiplatform sometime this weekend.

I tried that plugin before, but it seems to crash OBS whenever you try to add the capture card to a scene. It's marked as unsupported, although I'm not fully sure if that means it's not meant to be compatible with "classic" OBS.

I'm hoping one of the devs drops into this thread and might see some small, easily correctable error in my settings or something. :)
 
Back
Top