xtherk
xtherk
@ovlizin Oh sorry, I see your avatar with Chinese, mistakenly think you are Chinese. Since you are not Chinese, then your `window_title_search `cannot be set to `守望先锋`, It can be...
> 他又不是国人, The name of your obs push stream is what you need to write. I set up fullscreen projector for myself. I found his avatar with Chinese, Mistake is...
> 反正这东西玄学,我没用几次,当时配置了没效果,第二天才有效,实际打起来效果也不大 用过几次,早就不玩了。 不需要OBS,ffmpeg可以支持捕获桌面但是需要修改一下源代码,本repo的作者在代码里硬编码了 `title=${window_title_search}`,要想让ffmpeg支持捕获桌面,需要的是`desktop` 而不是 `title=desktop`
> 我记得我当时弄,是看到推流出来名字叫fullscren啥的 然后就改了,也没把obs设置中文,英文就直接上,你这ffmpeg太高级不会弄,现在opencv主流,改得好不会封 不会的,你看Overwatcheat的gradle依赖,用的是javacv,javacv封装了ffmpeg的库,实际代码里获取Frame用到的就是ffmpeg...看你也会java,你稍微看一下就懂了
https://github.com/Jire/Overwatcheat/blob/57bb69f35e25f1403398ee313b9ba84bf596323e/src/main/kotlin/com/overwatcheat/framegrab/FrameGrabberThread.kt?_pjax=%23js-repo-pjax-container#L23-L41 FFmpegFrameGrabber, 就是用到的ffmpeg
https://github.com/Jire/Overwatcheat/blob/57bb69f35e25f1403398ee313b9ba84bf596323e/src/main/kotlin/com/overwatcheat/framegrab/FrameGrabber.kt?_pjax=%23js-repo-pjax-container#L23-L43 > "title=${FrameWindowFinder.findWindowTitle(windowTitleSearch)}" 作者硬编码了 title=windowTitleSearch. 可以这样修改 伪代码: ```kotlin filename = if ("desktop".equals( windowTitleSearch)) windowTitleSearch else "title=${FrameWindowFinder.findWindowTitle(windowTitleSearch)}" ``` 这样就可以在配置文件里填`desktop`而无需使用obs,并且绕过ow的黑屏
按理说讨论应该用英文的...算了,就随便跟你说一下的
obs捕获守望先锋窗口没有黑屏危险,其他的录屏软件直接捕获守望先锋的窗口会有黑屏危险,表现在用截图软件截图出来是黑的,这个过一段时间就好了。所以直接捕获桌面而不是捕获守望先锋的窗口
其实老早就想提个pr,直接都用desktop 就没那么多麻烦了。