Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

feat: native video extend on the dgrauet runtime

Adam Eivy5ab01cf6de39
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index e430fa5e3e..1ff31dfb97 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -10,6 +10,7 @@
- Video Gen "Chunks" control (1–8) chains multiple LTX renders into a single longer clip. Each chunk's last frame seeds the next, then ffmpeg stitches them into one output. The individual chunks land in history hidden by default, so the gallery shows just the stitched result.
- Two new LTX-2.3 video models — "dgrauet Q4" and "dgrauet Q8" — running on a more capable runtime that supports true keyframe interpolation (proper FFLF that respects both start AND end frames), native video extend, and audio-to-video. Install with `INSTALL_LTX2=1 bash scripts/setup-image-video.sh`. The existing notapalindrome models keep working unchanged; pick the new "dgrauet" entries from the model dropdown to use the new pipeline. FFLF on these models has a stage-2 OOM ceiling — the server auto-clamps frame count to a memory-safe budget (override via `FFLF_LTX2_PIXEL_BUDGET` env var if you have more RAM than 48 GB).
+- "Extend" mode on the new dgrauet runtime now uses a true latent video extension (conditions on the entire source video's motion + visual content) instead of last-frame i2v conditioning. The visible motion stall at scene boundaries is gone — extensions continue movement naturally from the source. Legacy notapalindrome models keep using the old chained-i2v workaround.
## Changed
diff --git a/PLAN.md b/PLAN.md
index a73d83143e..3bfbd2ce97 100644
--- a/PLAN.md
+++ b/PLAN.md
@@ -24,6 +24,16 @@ The PR landed with full pipeline mechanics + auto-recovery + smoke-test fixture,
- [x] ~~**Auto-accept watchdog.**~~ Done — `verifyVideoPlayable()` in `server/lib/ffmpeg.js` checks file-exists / size > 0 / ffprobe-can-read-at-least-1-frame. `sceneRunner.handleRenderCompleted` runs it before marking the auto-accept synthetic evaluation; on failure it routes to `handleRenderFailed` (which respects `MAX_SCENE_RETRIES`) instead of polluting the collection with a broken video. Falls back to file-exists/size checks only on hosts without ffprobe installed.
- [x] ~~**Smoke-test cost reduction.**~~ Done — dropped `durationSeconds` 3s→2s, added a hidden `1:1-small` (384×384) aspect preset for the smoke fixture only (kept out of `ASPECT_RATIOS` so the user-facing dropdown is unchanged). Smoke run now ~63% cheaper in pixel-frame terms. Lets pipeline health checks complete in render time only.
+### LTX-2.3 dgrauet runtime — wire native modes
+
+The dgrauet/ltx-2-mlx runtime now ships with FFLF (true keyframe interpolation) verified on hardware (commit `ef5d9081`). The pipeline supports more native modes that PortOS still emulates with workarounds — wiring each to the proper subcommand will materially improve quality. Helper script (`scripts/generate_ltx2.py`) already accepts the args; the gaps are server dispatch + client routing.
+
+- [ ] **Native video Extend (replace chained-i2v workaround).** Today the UI's "Extend" mode extracts the last frame and runs i2v on it — visible motion stalls at every chunk seam. Dgrauet's `ExtendPipeline.extend_from_video()` conditions on the *whole input video's latent* (motion + visual content), so new frames flow naturally. Files (~70 LOC): (1) fix `scripts/generate_ltx2.py` `run_extend` to mirror cli's `_decode_and_save` cleanup pattern (free DiT+TextEncoder, load decoders on-demand, then save) — current implementation OOMs at decode; (2) `server/services/videoGen/local.js` `buildLtx2Args` route extend → helperMode='extend' on ltx2, take new `extendFromVideoPath` param + validate; (3) `server/routes/videoGen.js` accept `extendFromVideoId` in body, resolve to absolute video path under `data/videos/`; (4) `client/src/pages/VideoGen.jsx` when mode=extend AND selected model has runtime='ltx2' skip `extractLastFrame`, send `extendFromVideoId` instead — fall back to existing chained-i2v on legacy runtime. Plus tests for the route's id resolution. Validate on hardware with a known-motion source clip — extension should continue motion vs. start cold.
+- [ ] **Audio-to-video (a2v).** Dgrauet ships a true audio-conditioned T2V pipeline (`AudioToVideoPipeline.generate_and_save` — takes a WAV/MP3 path + optional reference image, generates video that syncs to the audio). PortOS doesn't expose this today. Files (~120 LOC): (1) `scripts/generate_ltx2.py` add `run_a2v` that imports `AudioToVideoPipeline`, takes `--audio` (WAV/MP3), optional `--image` for I2V conditioning, emits same STAGE/STATUS protocol; (2) `data/media-models.json` no new model entry needed (uses same ltx2 runtime); (3) `server/lib/validation.js` extend video-gen schema with `mode: 'a2v'` enum value + `audioFile` field; (4) `server/routes/videoGen.js` add multipart audio upload (re-use `uploadSingle('audioFile', ...)` pattern from sourceImage), stage to `data/uploads/`, pass to enqueueJob; (5) `server/services/videoGen/local.js` `buildLtx2Args` map mode='a2v' → helperMode='a2v', pass `--audio <path>`; (6) `client/src/pages/VideoGen.jsx` add a new mode tile (icon: Music/Mic), audio file picker (no gallery — direct upload), maybe a duration display from probing the audio. Audio stripping (`--no-audio`) is a no-op in this mode (the audio IS the input). UAT: pick or upload a 4–8 second audio clip with clear rhythm + a directive prompt ("a person dancing to this track in a studio"), verify the rendered video's motion syncs to the audio's beats.
+- [ ] **Native FFLF deeper test on real keyframe pairs.** FFLF wiring is verified on synthetic ball-motion keyframes (commit `ef5d9081`). Validate with REAL pairs: take last frame of clip A + first frame of clip B from the same scene/camera, render an interpolation, confirm temporally-coherent transition. If it looks weak even on similar keyframes, file a follow-up to expose more pipeline knobs in the UI (cfg-scale, stg-scale, stage1-steps).
+- [ ] **Add UI hint under FFLF mode.** "Use keyframes that share scene geometry — same camera, same subject; the model interpolates between them. Random unrelated images produce a visual cut." Prevents the "looks like two stills" complaint that surfaced during testing.
+- [ ] **Once dgrauet is the default for everything we care about, deprecate notapalindrome models.** Mark `ltx2_unified`, `ltx23_unified`, `ltx23_distilled_q4` with `deprecated: true` in `media-models.json` so the model dropdown groups them under a "Legacy" section. Eventually drop them and the `runtime: 'mlx_video'` dispatch entirely (~50 LOC removal in videoGen/local.js).
+
### Other backlog
- [ ] **Writers Room (Phase 2+)** — Phase 1 ships the authoring core (folders/works/drafts, "write for 10" exercise, version snapshots) under a new top-level `Create` sidebar group alongside Media Gen. Phases 2-5 cover manual AI analysis, Creative Director handoff, synced prose/script/media review, and realtime CD feedback. See [writers-room.md](./docs/features/writers-room.md).
diff --git a/client/src/pages/VideoGen.jsx b/client/src/pages/VideoGen.jsx
index a0c9406dbc..0c8fbec8bb 100644
--- a/client/src/pages/VideoGen.jsx
+++ b/client/src/pages/VideoGen.jsx
@@ -340,6 +340,15 @@ export default function VideoGen() {
setExtendingFrame(false);
return;
}
+ // ltx2 runtime: native ExtendPipeline conditions on the entire source
+ // video's latent, so we DON'T need a last-frame PNG. Skip the ffmpeg
+ // extract roundtrip — the route resolves the video id to a disk path
+ // server-side. Saves ~1s per pick + avoids the i2v fallback when the
+ // extract fails.
+ if (currentModel?.runtime === 'ltx2') {
+ setExtendingFrame(false);
+ return;
+ }
setExtendingFrame(true);
const res = await extractLastFrame(videoId).catch((err) => {
toast.error(err.message || 'Failed to extract last frame');
@@ -382,9 +391,17 @@ export default function VideoGen() {
tiling,
disableAudio: disableAudio ? 'true' : 'false',
mode,
- sourceImageFile: (mode === 'image' || mode === 'fflf' || mode === 'extend') ? (sourceImageFile || '') : '',
+ // ltx2-extend bypasses the last-frame i2v path: we send the source
+ // video's history id directly so the server resolves it to a disk
+ // path and routes through ExtendPipeline. Legacy extend (mlx_video)
+ // still uses sourceImageFile populated from extractLastFrame.
+ sourceImageFile: (mode === 'image' || mode === 'fflf'
+ || (mode === 'extend' && currentModel?.runtime !== 'ltx2'))
+ ? (sourceImageFile || '') : '',
sourceImage: (mode === 'image' || mode === 'fflf') ? (sourceImageUpload || '') : '',
lastImageFile: mode === 'fflf' ? (lastImageFile || '') : '',
+ extendFromVideoId: (mode === 'extend' && currentModel?.runtime === 'ltx2')
+ ? (extendFromVideoId || '') : '',
chunks: chunks > 1 ? chunks : '',
};
};
@@ -486,8 +503,13 @@ export default function VideoGen() {
// is empty and the request would silently fall back to T2V while still
// sending mode='extend'. Block submit/enqueue until the extend frame is
// actually ready (and unblocks the disabled state on the buttons too).
- const extendModeBlocked = mode === 'extend'
- && (extendingFrame || !extendFromVideoId || !sourceImageFile);
+ // ltx2-extend doesn't need a frame extraction — the route resolves the
+ // video id directly. Block only on extendFromVideoId being unset (and on
+ // legacy runtime, also wait for the extracted frame).
+ const extendModeBlocked = mode === 'extend' && (
+ !extendFromVideoId
+ || (currentModel?.runtime !== 'ltx2' && (extendingFrame || !sourceImageFile))
+ );
const handleGenerate = async (e) => {
e?.preventDefault?.();
diff --git a/scripts/generate_ltx2.py b/scripts/generate_ltx2.py
index 379e4b8b63..d19e5001f7 100644
--- a/scripts/generate_ltx2.py
+++ b/scripts/generate_ltx2.py
@@ -176,7 +176,13 @@ def run_fflf(args: argparse.Namespace) -> str:
def run_extend(args: argparse.Namespace) -> str:
+ """Extend an existing video by N latent frames (1 latent ≈ 8 pixel frames).
+ Conditions on the entire source video's latent — motion AND visual content
+ flow into the new frames. Mirrors dgrauet's CLI `_cmd_extend` memory pattern:
+ free DiT + text encoder before decode (otherwise OOMs at the VAE pass).
+ """
from ltx_pipelines_mlx import ExtendPipeline
+ from ltx_core_mlx.utils.memory import aggressive_cleanup
if not args.extend_from_video:
raise SystemExit("--extend-from-video is required for extend mode")
emit_status(f"Loading Extend pipeline ({args.model})…")
@@ -193,6 +199,17 @@ def run_extend(args: argparse.Namespace) -> str:
num_steps=args.steps if args.steps is not None else 30,
cfg_scale=args.cfg_scale if args.cfg_scale is not None else 3.0,
)
+ # Mirror cli._decode_and_save: drop the DiT + text encoder before the VAE
+ # decode — otherwise full-res decode + the still-resident transformer OOMs
+ # the unified-memory budget. Then load_decoders() pulls the VAE back in
+ # on demand.
+ if pipe.low_memory:
+ pipe.dit = None
+ pipe.text_encoder = None
+ pipe.feature_extractor = None
+ pipe._loaded = False
+ aggressive_cleanup()
+ pipe._load_decoders()
return pipe._decode_and_save_video(video_latent, audio_latent, args.output)
diff --git a/server/routes/videoGen.js b/server/routes/videoGen.js
index c9565ce86a..0c922894a7 100644
--- a/server/routes/videoGen.js
+++ b/server/routes/videoGen.js
@@ -15,6 +15,7 @@ import { z } from 'zod';
import { asyncHandler, ServerError } from '../lib/errorHandler.js';
import { uploadSingle } from '../lib/multipart.js';
import { PATHS, ensureDir } from '../lib/fileUtils.js';
+import { safeUnder } from '../lib/ffmpeg.js';
import { getSettings } from '../services/settings.js';
import {
listVideoModels,
@@ -75,6 +76,11 @@ const generateBodySchema = z.object({
// chunk's start frame, then ffmpeg concats them into one clip. 1..8 to
// keep the worst-case wall time bounded (8 × ~5min ≈ 40min on M3 Max).
chunks: optionalNum(1, 8, 'chunks'),
+ // History id of a prior render to extend natively (ltx2 runtime only —
+ // routes through ExtendPipeline.extend_from_video which conditions on
+ // the entire source video's latent rather than a single last frame).
+ // The legacy chained-i2v path keeps using sourceImageFile.
+ extendFromVideoId: z.string().uuid().optional(),
});
router.get('/status', asyncHandler(async (_req, res) => {
@@ -193,6 +199,32 @@ router.post('/', sourceImageUpload, asyncHandler(async (req, res) => {
// FFLF end-frame: gallery-pick only. Same path-traversal guard.
const lastImagePath = body.lastImageFile ? resolveGalleryImage(body.lastImageFile) : null;
+ // Native extend (ltx2 runtime): resolve the history id to a video file
+ // path under data/videos/ and forward it as extendFromVideoPath. Reject
+ // a missing/tampered id rather than silently falling back to t2v —
+ // surfaces a clear error to the user instead of producing wrong content.
+ let extendFromVideoPath = null;
+ if (body.extendFromVideoId) {
+ const history = await loadHistory();
+ const videoEntry = history.find((h) => h.id === body.extendFromVideoId);
+ if (!videoEntry) {
+ await cleanupTempUpload();
+ throw new ServerError(
+ `extendFromVideoId not found in history: ${body.extendFromVideoId}`,
+ { status: 404, code: 'EXTEND_SOURCE_NOT_FOUND' },
+ );
+ }
+ const candidate = safeUnder(PATHS.videos, videoEntry.filename);
+ if (!candidate || !existsSync(candidate)) {
+ await cleanupTempUpload();
+ throw new ServerError(
+ `extendFromVideoId resolved to a missing file: ${videoEntry.filename}`,
+ { status: 404, code: 'EXTEND_SOURCE_FILE_MISSING' },
+ );
+ }
+ extendFromVideoPath = candidate;
+ }
+
// Enqueue rather than spawn synchronously — the mediaJobQueue worker will
// run this when no other render is in flight. Caller never sees BUSY.
const { jobId, position, status } = enqueueJob({
@@ -214,6 +246,7 @@ router.post('/', sourceImageUpload, asyncHandler(async (req, res) => {
sourceImagePath,
uploadedTempPath,
lastImagePath,
+ extendFromVideoPath,
mode: body.mode,
imageStrength: body.imageStrength,
chunks: body.chunks ?? 1,
diff --git a/server/routes/videoGen.test.js b/server/routes/videoGen.test.js
index 72b552a63a..30dc7bffe3 100644
--- a/server/routes/videoGen.test.js
+++ b/server/routes/videoGen.test.js
@@ -35,7 +35,7 @@ vi.mock('../lib/multipart.js', () => ({
}));
vi.mock('../lib/fileUtils.js', () => ({
- PATHS: { images: '/mock/images' },
+ PATHS: { images: '/mock/images', videos: '/mock/videos' },
}));
vi.mock('fs', () => ({
@@ -185,6 +185,52 @@ describe('videoGen routes', () => {
expect(r.body.error).toMatch(/chunks/i);
});
+ it('forwards extendFromVideoId by resolving to a real disk path under data/videos/', async () => {
+ const id = '11111111-1111-4111-8111-111111111111';
+ const videoSvc = await import('../services/videoGen/local.js');
+ videoSvc.loadHistory.mockResolvedValueOnce([{ id, filename: `${id}.mp4` }]);
+ const r = await request(app).post('/api/video-gen/').send({
+ prompt: 'continue the scene',
+ mode: 'extend',
+ extendFromVideoId: id,
+ });
+ expect(r.status).toBe(200);
+ expect(mediaJobQueue.enqueueJob).toHaveBeenCalledWith(expect.objectContaining({
+ kind: 'video',
+ params: expect.objectContaining({
+ mode: 'extend',
+ // The route resolves the id to an absolute path under PATHS.videos
+ // (mocked to /mock/images for these tests; videos root is taken
+ // from PATHS.videos which is also /mock-rooted).
+ extendFromVideoPath: expect.stringContaining(`${id}.mp4`),
+ }),
+ }));
+ });
+
+ it('returns 404 when extendFromVideoId is not in history', async () => {
+ const id = '22222222-2222-4222-8222-222222222222';
+ const videoSvc = await import('../services/videoGen/local.js');
+ videoSvc.loadHistory.mockResolvedValueOnce([]); // empty history
+ const r = await request(app).post('/api/video-gen/').send({
+ prompt: 'continue',
+ mode: 'extend',
+ extendFromVideoId: id,
+ });
+ expect(r.status).toBe(404);
+ expect(r.body.error).toMatch(/not found in history/i);
+ expect(mediaJobQueue.enqueueJob).not.toHaveBeenCalled();
+ });
+
+ it('rejects malformed extendFromVideoId at the schema layer', async () => {
+ const r = await request(app).post('/api/video-gen/').send({
+ prompt: 'continue',
+ mode: 'extend',
+ extendFromVideoId: 'not-a-uuid',
+ });
+ expect(r.status).toBe(400);
+ expect(r.body.error).toMatch(/extendFromVideoId/i);
+ });
+
it('rejects an unknown mode value', async () => {
const r = await request(app).post('/api/video-gen/').send({
prompt: 'a cat',
diff --git a/server/services/videoGen/local.js b/server/services/videoGen/local.js
index e9879ace75..e0f39976b1 100644
--- a/server/services/videoGen/local.js
+++ b/server/services/videoGen/local.js
@@ -87,19 +87,21 @@ export const saveHistory = (h) => atomicWrite(HISTORY_FILE, h);
// The helper lives in the ltx-2-mlx venv (so its `import ltx_pipelines_mlx`
// resolves) but the script file lives in the PortOS repo so updates ship
// with PortOS releases instead of the user's HF cache.
-const buildLtx2Args = ({ model, prompt, negativePrompt, width, height, numFrames, fps, steps, guidance, seed, sourceImagePath, lastImagePath, mode, disableAudio, outputPath, textEncoderRepo }) => {
+const buildLtx2Args = ({ model, prompt, negativePrompt, width, height, numFrames, fps, steps, guidance, seed, sourceImagePath, lastImagePath, extendFromVideoPath, mode, disableAudio, outputPath, textEncoderRepo }) => {
if (!existsSync(LTX2_VENV_PYTHON)) {
throw new ServerError(
`ltx-2-mlx venv not found at ${LTX2_VENV_PYTHON}. Run \`INSTALL_LTX2=1 bash scripts/setup-image-video.sh\` to install.`,
{ status: 500, code: 'LTX2_VENV_MISSING' },
);
}
- // Map PortOS UI modes to the helper's subcommand. Extend isn't reachable
- // from the current videoGen.generateVideo signature — that mode runs as
- // a chain of i2v renders today (see generateChainedVideo). Native extend
- // is a future enhancement; we route 'extend' to 'image' for now since
- // the chain orchestrator already handed us a frame.
+ // Map PortOS UI modes to the helper's subcommand. Native extend on ltx2
+ // routes to ExtendPipeline.extend_from_video — conditions on the entire
+ // source video's latent (motion + visual content) rather than just the
+ // last frame. Falls back to i2v only if the caller supplied no source
+ // video (e.g., the chained-render orchestrator already handed us a frame).
+ const wantsNativeExtend = mode === 'extend' && !!extendFromVideoPath;
const helperMode = mode === 'fflf' ? 'fflf'
+ : wantsNativeExtend ? 'extend'
: mode === 'image' || mode === 'extend' ? 'image'
: 'text';
if (helperMode === 'fflf' && (!sourceImagePath || !lastImagePath)) {
@@ -108,6 +110,12 @@ const buildLtx2Args = ({ model, prompt, negativePrompt, width, height, numFrames
{ status: 400, code: 'LTX2_FFLF_MISSING_KEYFRAMES' },
);
}
+ if (helperMode === 'extend' && !existsSync(extendFromVideoPath)) {
+ throw new ServerError(
+ `Extend source video not found on disk: ${extendFromVideoPath}`,
+ { status: 400, code: 'LTX2_EXTEND_SOURCE_MISSING' },
+ );
+ }
// Stage-2 OOM clamp on the keyframe pipeline.
//
// The KeyframeInterpolationPipeline runs a 2× spatial upscale + full-res
@@ -157,15 +165,25 @@ const buildLtx2Args = ({ model, prompt, negativePrompt, width, height, numFrames
args.push('--image', sourceImagePath);
args.push('--last-image', lastImagePath);
}
+ if (helperMode === 'extend') {
+ args.push('--extend-from-video', extendFromVideoPath);
+ // Translate the user's requested numFrames into a latent-frame count
+ // for ExtendPipeline. 1 latent ≈ 8 pixel frames, with no leading +1
+ // because the source already supplies the anchor frame. Floor at 1
+ // so a too-small numFrames still produces something.
+ const extendLatents = Math.max(1, Math.floor(Number(numFrames) / 8));
+ args.push('--extend-frames', String(extendLatents));
+ args.push('--extend-direction', 'after');
+ }
return { bin: LTX2_VENV_PYTHON, args };
};
-const buildArgs = ({ pythonPath, modelId, model, prompt, negativePrompt, width, height, numFrames, fps, steps, guidance, seed, tiling, disableAudio, sourceImagePath, lastImagePath, mode, imageStrength, textEncoderRepo, outputPath }) => {
+const buildArgs = ({ pythonPath, modelId, model, prompt, negativePrompt, width, height, numFrames, fps, steps, guidance, seed, tiling, disableAudio, sourceImagePath, lastImagePath, extendFromVideoPath, mode, imageStrength, textEncoderRepo, outputPath }) => {
// Route to the dgrauet/ltx-2-mlx helper when the model declares the new
// runtime. Existing notapalindrome models default to runtime: 'mlx_video'
// (or undefined in legacy registries — see backfillRuntime in mediaModels.js).
if (model.runtime === 'ltx2') {
- return buildLtx2Args({ model, prompt, negativePrompt, width, height, numFrames, fps, steps, guidance, seed, sourceImagePath, lastImagePath, mode, disableAudio, outputPath, textEncoderRepo });
+ return buildLtx2Args({ model, prompt, negativePrompt, width, height, numFrames, fps, steps, guidance, seed, sourceImagePath, lastImagePath, extendFromVideoPath, mode, disableAudio, outputPath, textEncoderRepo });
}
if (IS_WIN) {
const scriptPath = join(PATHS.root, 'scripts', 'generate_win.py');
@@ -219,7 +237,7 @@ const buildArgs = ({ pythonPath, modelId, model, prompt, negativePrompt, width,
return { bin: pythonPath, args };
};
-export async function generateVideo({ pythonPath, prompt, negativePrompt = '', modelId = defaultVideoModelId(), width = 768, height = 512, numFrames = 121, fps = 24, steps, guidanceScale, seed, tiling = 'auto', disableAudio = false, sourceImagePath = null, uploadedTempPath = null, lastImagePath = null, mode = null, imageStrength = null, jobId: providedJobId = null }) {
+export async function generateVideo({ pythonPath, prompt, negativePrompt = '', modelId = defaultVideoModelId(), width = 768, height = 512, numFrames = 121, fps = 24, steps, guidanceScale, seed, tiling = 'auto', disableAudio = false, sourceImagePath = null, uploadedTempPath = null, lastImagePath = null, extendFromVideoPath = null, mode = null, imageStrength = null, jobId: providedJobId = null }) {
if (!pythonPath) throw new ServerError('Python path not configured — set it in Settings > Image Gen', { status: 400, code: 'VIDEO_GEN_NOT_CONFIGURED' });
if (!prompt?.trim()) throw new ServerError('Prompt is required', { status: 400, code: 'VALIDATION_ERROR' });
// Single-flight is now enforced by the mediaJobQueue worker upstream — only
@@ -294,7 +312,7 @@ export async function generateVideo({ pythonPath, prompt, negativePrompt = '', m
const job = { ...meta, clients: [], status: 'running' };
jobs.set(jobId, job);
- const { bin, args } = buildArgs({ pythonPath, modelId, model, prompt, negativePrompt, width: w, height: h, numFrames: parsedNumFrames, fps: parsedFps, steps: actualSteps, guidance: actualGuidance, seed: actualSeed, tiling, disableAudio, sourceImagePath: resolvedSourceImage, lastImagePath: resolvedLastImage, mode, imageStrength: actualImageStrength, textEncoderRepo: actualTextEncoderRepo, outputPath });
+ const { bin, args } = buildArgs({ pythonPath, modelId, model, prompt, negativePrompt, width: w, height: h, numFrames: parsedNumFrames, fps: parsedFps, steps: actualSteps, guidance: actualGuidance, seed: actualSeed, tiling, disableAudio, sourceImagePath: resolvedSourceImage, lastImagePath: resolvedLastImage, extendFromVideoPath, mode, imageStrength: actualImageStrength, textEncoderRepo: actualTextEncoderRepo, outputPath });
console.log(`🎬 Generating video [${jobId.slice(0, 8)}]: ${modelId} ${w}x${h} frames=${parsedNumFrames} steps=${actualSteps}`);
videoGenEvents.emit('started', { generationId: jobId, totalSteps: actualSteps, ...meta });