OBS 黑屏解决方法

前因

用 OBS Studio 软件录制屏幕,到 bilibili 网站发布 LaTeX\LaTeX 学习视频

思路

在网上查阅解决方案无果,在 OBS 工具栏找到 帮助(H)\to日志文件(L)\to显示日志文件(S),点开最近的日志,找到这句

23:45:57.365: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded

通过 Bing 搜索,找到了相关的贴,然后找到 OBS 论坛,点击 Windows Support\toLaptop? Black screen when capturing? Read here first.,找到了所有系统的解决方法

方法

搬运原帖

Depending on your Windows version and what sources you wish to use, you may need to set OBS to run on a specific GPU. Not sure which Windows version you have? Press Windows+R and run “winver”.

For Windows 10 1909 or newer:
Open Settings and search for “Graphics Settings”. Select “Classic App” and browse to C:\Program Files\obs-studio\bin\64bit\obs64.exe (or wherever you have installed OBS). Click “Options” (example screenshot).

If you want to use display capture to capture your screen / desktop, select “Power Saving”.
If you want to use game capture to capture a game or use the NVENC encoder, select “High Performance”.

For Nvidia laptops on older Windows:

Go to the Nvidia control panel in Windows control panel, and go to 3D settings on the left. Then, on the right pane, select “Program Settings” and choose OBS Studio (obs64.exe) from the drop-down list (example screenshot) .

If you want to use display capture to capture your screen / desktop, select “Integrated Graphics”.
If you want to use game capture to capture a game or use the NVENC encoder, select “High Performance NVIDIA Processor”.

I want to use the Intel QuickSync encoder:

Follow the above steps and set QSVHelper.exe to run on the the integrated GPU.

Further information:

If you are using a laptop, you may run into capture issues (black screen). This is because most laptops have more than one graphics adapter. Why do they have more than one graphics adapter? Because one is used for saving power (rendering your desktop / windows), and the other is used for performance (gaming). This is done to minimize power usage on the laptop, as laptops are designed to run on batteries.

Because of this, it can often cause capture issues. Your laptop may be drawing one image to the power saving GPU, and another to the performance GPU. However, in order for OBS to capture efficiently, OBS itself must be running on the same GPU as the image you wish to capture. If OBS is running on adapter A, and an image is being drawn on adapter B, you will get a black screen when trying to capture it.

Window capture and “compatibility mode”:

  • If you cannot set the GPU (AMD laptops typically), or wish to cross-capture an image from the other GPU after that (example, league of legends lobby window), use window/monitor capture with the “compatibility mode” option enabled to force a capture. “Compatibility mode” requires a bit more CPU usage however.
  • Compatibility mode is not recommended for capturing games, but it basically guarantees a capture.
  • Game capture does not have a compatibility mode. Game capture must run on the same GPU as that you wish to capture.

I know it’s annoying. I’m not happy that this is the case either. Unfortunately, there’s nothing anyone can really do about it. This is just the way laptops are designed.

有道翻译

根据你的 Windows 版本和你希望使用的源代码,你可能需要设置 OBS 在特定的 GPU 上运行。不确定你有哪个 Windows 版本?按下 Windows+R 并运行“winver”。

适用于 windows 10 1909或更新版本:

打开设置并搜索“图形设置”。选择“经典应用”,浏览 C:\Program Files\obs-studio\bin\64bit\obs64.exe(或者无论你已经安装了 OBS)。点击“选项”(示例截图)。

如果你想使用显示捕获来捕获你的屏幕 / 桌面,选择“省电”。

如果你想使用游戏捕获捕获游戏或使用 NVENC 编码器,选择“高性能”。

适用于安装在旧 Windows 上的 Nvidia 笔记本电脑:

进入 Windows 控制面板的 Nvidia 控制面板,在左侧进入 3D 设置。然后,在右侧窗格中,选择“程序设置”,并从下拉列表中选择 OBS Studio (obs64.exe)(示例截图)。

如果你想使用显示捕获来捕获你的屏幕/桌面,选择“集成图形”。

如果您想使用游戏捕获捕获游戏或使用 NVENC 编码器,选择“高性能 NVIDIA 处理器”。

我想使用英特尔 QuickSync 编码器:

按照以上步骤设置 QSVHelper.exe 在集成的 GPU 上运行。

进一步信息:

如果您正在使用笔记本电脑,您可能会遇到捕获问题(黑屏)。这是因为大多数笔记本电脑都有不止一个图形适配器。为什么他们有一个以上的图形适配器?因为一个用于节省能源(渲染桌面 / 窗口),而另一个用于性能(游戏)。这样做是为了尽量减少笔记本电脑的用电量,因为笔记本电脑的设计是使用电池的。

因此,它常常会导致捕获问题。您的笔记本电脑可能正在绘制一个图像到节能 GPU,另一个到性能 GPU。然而,为了有效地捕获 OBS,OBS 本身必须与您希望捕获的图像运行在相同的 GPU上。如果 OBS 在适配器 A 上运行,并且在适配器 B 上正在绘制图像,那么在尝试捕获它时,您将得到一个黑屏。

窗口捕获和“兼容模式”:

  • 如果你不能设置 GPU(通常是 AMD 的笔记本),或者希望从其他 GPU 交叉捕获一个图像(例如,英雄联盟大厅窗口),使用窗口 / 监视器捕获与“兼容模式”选项启用强制捕获。“兼容模式”需要更多的 CPU 使用。

  • 兼容模式不建议捕捉游戏,但它基本上保证捕捉。

  • 游戏捕获没有兼容模式。游戏捕获必须运行在相同的 GPU 上,你希望捕获。

我知道这很烦人。我也不喜欢这种情况。不幸的是,任何人对此都无能为力。这就是笔记本电脑的设计方式。

文章作者: sikouhjw
文章链接: https://sikouhjw.github.io/2020/03/08/2020-03-08-OBS-Black-screen/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 sikouhjw.github.io
支付宝捐赠
微信捐赠