New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NVENC: Recording never stops with B-Frame Reference not set to Disabled. (Workaround inside!) #260
Comments
Both of these are known bugs caused by FFmpegs use of NVENC. If you encounter these, your only option is to Disable B-Frame references, which hurts quality. |
Thanks for the info. So it works without issues when I set it to default. Is default in this context disabled? Or something else? Any workaround or do we have to wait for it to be fixed by ffmpeg devs? |
The value of 'Default' depends on the preset chosen, but usually is 'Disabled' for the majority of them. There's no known workaround other than luck, and since it works fine for streaming (most of the time), waiting for the FFmpeg devs to fix it is probably the only way. While I could apply a workaround, probably, it would likely not do much - similar to the ProRes postprocessing it would likely cost extra performance. |
Oh so while streaming it can be fine. Yeah gonna try this later and see if it works out if not then I'll just use OBS ones until this is maybe fixed in the future. |
Okay can confirm it works without issues while streaming. |
Further information, the "Each" mode is only supported for HEVC according to the NVENC manual. |
Good news, it's actually fixed in the recent ffmpeg versions. Just need to wait for OBS to update their FFmpeg version. |
Oh thats good news, let's hope the next OBS release has the new ffmpeg version in it. |
I'm reporting in with the same issue and glad to hear that there's a fix in the works. A side note and not sure if it's completely relevant, when choosing the Encoder I don't have the same option as your settings. |
@MythionVR The latest version has the (via FFmpeg) name in it. |
0.8.0 is the latest stable, 0.9.0 is currently in alpha. |
Closing this for tracking purposes. FFmpeg has fixed this bug for several months now, the OBS Project just needs to get their version of FFmpeg updated accordingly. |
Fixed by OBS Studio 26.1 and newer, which now uses FFmpeg 4.2.4 + some patches. |
Description
I saw your optimized settings on your blog and wanted to try them. Unfortunately I can't stop the recording as it will just be stuck on "Stopping Recording". OBS does not freeze or crash and I have to force close it via Task Manager.
This happens if B-Frame Reference Mode is set to your suggested setting. If I set it to Default then the recording closes fine. Setting it to use every B-Frame will not even start the recording and just throw an error.
Log from a recording and then stopping it https://pastebin.com/Jn3z6MWr
System Information
The text was updated successfully, but these errors were encountered: