Skip to content

Commit b202879

Browse files
dorlugasigalCopilot
andcommitted
fix(landing): re-record videos at 2x resolution with high quality
- deviceScaleFactor: 2 for retina-quality recordings - CRF 18 (was 28) for much sharper text and UI detail - Total ~3.3MB (still lighter than original PNGs at 2.9MB) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5393963 commit b202879

9 files changed

Lines changed: 4 additions & 2 deletions

File tree

131 KB
Binary file not shown.
202 KB
Binary file not shown.
177 KB
Binary file not shown.
294 KB
Binary file not shown.
216 KB
Binary file not shown.
102 KB
Binary file not shown.
914 KB
Binary file not shown.
239 KB
Binary file not shown.

packages/landing/scripts/record-showcase.cjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async function deleteSession(id) {
6262

6363
function convertToMp4(input, output) {
6464
execSync(
65-
`"${FFMPEG}" -y -i "${input}" -c:v libx264 -crf 28 -preset slow ` +
65+
`"${FFMPEG}" -y -i "${input}" -c:v libx264 -crf 18 -preset slow ` +
6666
`-an -movflags +faststart -pix_fmt yuv420p "${output}"`,
6767
{ stdio: 'pipe' }
6868
);
@@ -71,9 +71,11 @@ function convertToMp4(input, output) {
7171
async function openContext(browser, size) {
7272
const dir = path.join(TEMP_DIR, `ctx-${Date.now()}`);
7373
fs.mkdirSync(dir, { recursive: true });
74+
const recordSize = { width: size.width * 2, height: size.height * 2 };
7475
const context = await browser.newContext({
7576
viewport: size,
76-
recordVideo: { dir, size },
77+
deviceScaleFactor: 2,
78+
recordVideo: { dir, size: recordSize },
7779
// Suppress permission prompts (microphone etc.)
7880
permissions: [],
7981
});

0 commit comments

Comments
 (0)