Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--video-threads

What does --video-threads do?

Set number of threads to use for video decoding.

Usage

CLILaunch Chrome with --video-threads using CLI

chrome --video-threads

PuppeteerLaunch Chrome with --video-threads using Puppeteer

const browser = await puppeteer.launch({
  args: ['--video-threads']
});

PlaywrightLaunch Chrome with --video-threads using Playwright

const browser = await chromium.launch({
  args: ['--video-threads']
});

SeleniumLaunch Chrome with --video-threads using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--video-threads')

driver = webdriver.Chrome(options=options)