cef_browser: simplify and remove probesize argument
This commit is contained in:
parent
e68eb9bced
commit
ec88f8d9d2
|
@ -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…
Reference in New Issue