Browse Source

cef_browser: simplify and remove probesize argument

master
Shiz 1 year ago
parent
commit
ec88f8d9d2
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/overlay/obs/cef_browser.py

+ 2
- 3
src/overlay/obs/cef_browser.py View File

@ -55,8 +55,7 @@ class CEFBrowserCapturer:
}
cef.Initialize(settings=settings, switches=switches)
window_info = cef.WindowInfo()
parent_window_handle = 0
window_info.SetAsOffscreen(parent_window_handle)
window_info.SetAsOffscreen(0)
self.browser = cef.CreateBrowserSync(window_info=window_info, settings=browser_settings, url=self.url)
def run_browser(self):
@ -114,7 +113,7 @@ class OBSBrowserSource(OBSSource):
return [FFmpegChain(
inputs=[FFmpegInput(fifo_path,
f='rawvideo', r=runner.rate, s='{}x{}'.format(self.width, self.height), pix_fmt='rgba',
follow=1, probesize=8192
follow=1
)],
runners=[(runner.run_browser, True), runner.output_frames]
)]

Loading…
Cancel
Save