@t3lnet/sceneforge 1.0.18 → 1.0.19

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.
@@ -111,8 +111,10 @@ async function buildConcatWithIntroOutro(stepFiles, demoDir, introPath, outroPat
111
111
 
112
112
  const concatInputs = inputPaths.map(({ index }) => `[${index}:v:0][${index}:a:0]`).join("");
113
113
  const scaleFilter = buildScaleFilter(outputDimensions);
114
- const scaleChain = scaleFilter ? `,${scaleFilter}` : "";
115
- const filterGraph = `${concatInputs}concat=n=${inputPaths.length}:v=1:a=1${scaleChain}[outv][outa]`;
114
+ // If scaling, we need to output concat to temp labels, then apply scale to video only
115
+ const filterGraph = scaleFilter
116
+ ? `${concatInputs}concat=n=${inputPaths.length}:v=1:a=1[tmpv][outa];[tmpv]${scaleFilter}[outv]`
117
+ : `${concatInputs}concat=n=${inputPaths.length}:v=1:a=1[outv][outa]`;
116
118
  const encodingArgs = getVideoEncodingArgs(qualityOptions);
117
119
 
118
120
  await runFFmpeg([
@@ -337,8 +339,10 @@ async function concatDemo(demoName, paths, options = {}) {
337
339
  const inputArgs = stepFiles.flatMap((file) => ["-i", path.join(demoDir, file)]);
338
340
  const concatInputs = stepFiles.map((_, index) => `[${index}:v:0][${index}:a:0]`).join("");
339
341
  const scaleFilter = buildScaleFilter(outputDimensions);
340
- const scaleChain = scaleFilter ? `,${scaleFilter}` : "";
341
- const filterGraph = `${concatInputs}concat=n=${stepFiles.length}:v=1:a=1${scaleChain}[outv][outa]`;
342
+ // If scaling, we need to output concat to temp labels, then apply scale to video only
343
+ const filterGraph = scaleFilter
344
+ ? `${concatInputs}concat=n=${stepFiles.length}:v=1:a=1[tmpv][outa];[tmpv]${scaleFilter}[outv]`
345
+ : `${concatInputs}concat=n=${stepFiles.length}:v=1:a=1[outv][outa]`;
342
346
  const encodingArgs = getVideoEncodingArgs(qualityOptions);
343
347
 
344
348
  await runFFmpeg([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t3lnet/sceneforge",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "SceneForge runner and generation utilities for YAML-driven demos",
5
5
  "license": "MIT",
6
6
  "author": "T3LNET",