demowright 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/config.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as defaultOptions } from "./setup-C1vXXI_q.mjs";
1
+ import { n as defaultOptions } from "./setup-BwdzChHS.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { execSync } from "node:child_process";
4
4
  import { mkdirSync, readdirSync } from "node:fs";
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { r as AudioWriter, t as applyHud } from "./setup-C1vXXI_q.mjs";
1
+ import { r as AudioWriter, t as applyHud } from "./setup-BwdzChHS.mjs";
2
2
  import { i as getGlobalTtsProvider, s as init_hud_registry } from "./hud-registry-Wfd4b4Nu.mjs";
3
3
  import { buildFfmpegCommand, createVideoScript, t as init_video_script } from "./video-script.mjs";
4
4
  import { annotate, caption, clickEl, hudWait, moveTo, moveToEl, narrate, subtitle, typeKeys } from "./helpers.mjs";
@@ -465,7 +465,7 @@ async function applyHud(context, options) {
465
465
  let muxed = false;
466
466
  for (const videoPath of videoPaths) try {
467
467
  if (!existsSync(videoPath)) continue;
468
- execSync(`ffmpeg -y -ss ${trimSec} -i "${videoPath}" -i "${audioPath}" -c:v libx264 -preset fast -c:a aac -shortest "${mp4Path}"`, { stdio: "pipe" });
468
+ execSync(`ffmpeg -y -ss ${trimSec} -i "${videoPath}" -i "${audioPath}" -c:v libx264 -preset fast -crf 28 -c:a aac -b:a 64k -shortest "${mp4Path}"`, { stdio: "pipe" });
469
469
  muxed = true;
470
470
  try {
471
471
  unlinkSync(audioPath);
@@ -474,7 +474,7 @@ async function applyHud(context, options) {
474
474
  } catch {}
475
475
  if (!muxed) {
476
476
  console.log(`[demowright] Audio saved: ${audioPath}`);
477
- console.log(`[demowright] Mux: ffmpeg -y -ss ${trimSec} -i <video.webm> -i "${audioPath}" -c:v libx264 -preset fast -c:a aac -shortest "${mp4Path}"`);
477
+ console.log(`[demowright] Mux: ffmpeg -y -ss ${trimSec} -i <video.webm> -i "${audioPath}" -c:v libx264 -preset fast -crf 28 -c:a aac -b:a 64k -shortest "${mp4Path}"`);
478
478
  }
479
479
  });
480
480
  }
@@ -743,7 +743,7 @@ function finalizeRenderJob(job, videoPaths) {
743
743
  `-i "${job.wavPath}"`,
744
744
  chapterArgs,
745
745
  vf,
746
- `-c:v libx264 -preset fast`,
746
+ `-c:v libx264 -preset fast -crf 28`,
747
747
  `-c:a aac`,
748
748
  `-shortest`,
749
749
  `"${job.mp4Path}"`
package/dist/setup.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { n as defaultOptions, t as applyHud } from "./setup-C1vXXI_q.mjs";
1
+ import { n as defaultOptions, t as applyHud } from "./setup-BwdzChHS.mjs";
2
2
  export { applyHud, defaultOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demowright",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "Playwright video production plugin — cursor overlay, keystroke badges, TTS narration, and narration-driven video scripts for test recordings",
5
5
  "license": "MIT",
6
6
  "repository": {