-
Notifications
You must be signed in to change notification settings - Fork 131
Description
I'm running headless in a docker container. The .webm has good video and audio when running "docker run" locally. But the audio is choppy and out-of-sync early relative to the video if I run in the cloud; I'm specifically using Google Cloud Run jobs if that matters.
Any thoughts on parameters or other configs that matter to get audio to not drop off? I suspected memory needs so I increased RAM from 512MB to 1GB on Google Cloud Run. Here's what I have as paramteers when launching btw:
const browser = await launch({
executablePath: process.env.CHROME_BIN,
headless: "new",
defaultViewport: {
width: 512,
height: 1024,
},
args: [
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-gpu",
"--autoplay-policy=no-user-gesture-required",
"--allowlisted-extension-id=jjndjgheafjngoipoacpjgeicjeomjli" // NOTE: undocumented in puppeteer-stream
],
});