@automovie/render 0.0.0-stage → 0.0.0
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/LICENSE +21 -0
- package/README.md +37 -2
- package/lib/AUTOMOVIE_GUIDE_PASSES.d.ts +11 -0
- package/lib/AUTOMOVIE_GUIDE_PASSES.js +21 -0
- package/lib/AUTOMOVIE_GUIDE_PASSES.js.map +1 -0
- package/lib/IAutoMovieCaptionEntry.d.ts +28 -0
- package/lib/IAutoMovieCaptionEntry.js +3 -0
- package/lib/IAutoMovieCaptionEntry.js.map +1 -0
- package/lib/IAutoMovieCaptionSidecar.d.ts +25 -0
- package/lib/IAutoMovieCaptionSidecar.js +3 -0
- package/lib/IAutoMovieCaptionSidecar.js.map +1 -0
- package/lib/IAutoMovieCapturedFrame.d.ts +22 -0
- package/lib/IAutoMovieCapturedFrame.js +3 -0
- package/lib/IAutoMovieCapturedFrame.js.map +1 -0
- package/lib/IAutoMovieGuidePassOutput.d.ts +23 -0
- package/lib/IAutoMovieGuidePassOutput.js +3 -0
- package/lib/IAutoMovieGuidePassOutput.js.map +1 -0
- package/lib/IAutoMoviePoseKeypointActor.d.ts +36 -0
- package/lib/IAutoMoviePoseKeypointActor.js +3 -0
- package/lib/IAutoMoviePoseKeypointActor.js.map +1 -0
- package/lib/IAutoMoviePoseKeypointFrame.d.ts +25 -0
- package/lib/IAutoMoviePoseKeypointFrame.js +3 -0
- package/lib/IAutoMoviePoseKeypointFrame.js.map +1 -0
- package/lib/IAutoMoviePoseKeypointSidecar.d.ts +21 -0
- package/lib/IAutoMoviePoseKeypointSidecar.js +3 -0
- package/lib/IAutoMoviePoseKeypointSidecar.js.map +1 -0
- package/lib/IAutoMovieRenderAdapters.d.ts +34 -0
- package/lib/IAutoMovieRenderAdapters.js +3 -0
- package/lib/IAutoMovieRenderAdapters.js.map +1 -0
- package/lib/IAutoMovieRenderAndSeeRequest.d.ts +32 -0
- package/lib/IAutoMovieRenderAndSeeRequest.js +3 -0
- package/lib/IAutoMovieRenderAndSeeRequest.js.map +1 -0
- package/lib/IAutoMovieRenderAndSeeResult.d.ts +20 -0
- package/lib/IAutoMovieRenderAndSeeResult.js +3 -0
- package/lib/IAutoMovieRenderAndSeeResult.js.map +1 -0
- package/lib/IAutoMovieRenderChunk.d.ts +48 -0
- package/lib/IAutoMovieRenderChunk.js +3 -0
- package/lib/IAutoMovieRenderChunk.js.map +1 -0
- package/lib/IAutoMovieRenderChunkPlan.d.ts +32 -0
- package/lib/IAutoMovieRenderChunkPlan.js +3 -0
- package/lib/IAutoMovieRenderChunkPlan.js.map +1 -0
- package/lib/IAutoMovieRenderPassManifest.d.ts +21 -0
- package/lib/IAutoMovieRenderPassManifest.js +3 -0
- package/lib/IAutoMovieRenderPassManifest.js.map +1 -0
- package/lib/IAutoMovieRenderReassembly.d.ts +24 -0
- package/lib/IAutoMovieRenderReassembly.js +3 -0
- package/lib/IAutoMovieRenderReassembly.js.map +1 -0
- package/lib/IAutoMovieRenderResult.d.ts +39 -0
- package/lib/IAutoMovieRenderResult.js +3 -0
- package/lib/IAutoMovieRenderResult.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderAdapters.d.ts +36 -0
- package/lib/IAutoMovieSequenceRenderAdapters.js +3 -0
- package/lib/IAutoMovieSequenceRenderAdapters.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderAndSeeRequest.d.ts +36 -0
- package/lib/IAutoMovieSequenceRenderAndSeeRequest.js +3 -0
- package/lib/IAutoMovieSequenceRenderAndSeeRequest.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderAndSeeResult.d.ts +23 -0
- package/lib/IAutoMovieSequenceRenderAndSeeResult.js +3 -0
- package/lib/IAutoMovieSequenceRenderAndSeeResult.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderFrame.d.ts +41 -0
- package/lib/IAutoMovieSequenceRenderFrame.js +3 -0
- package/lib/IAutoMovieSequenceRenderFrame.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderPlan.d.ts +76 -0
- package/lib/IAutoMovieSequenceRenderPlan.js +3 -0
- package/lib/IAutoMovieSequenceRenderPlan.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderResult.d.ts +44 -0
- package/lib/IAutoMovieSequenceRenderResult.js +3 -0
- package/lib/IAutoMovieSequenceRenderResult.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderShotSpan.d.ts +39 -0
- package/lib/IAutoMovieSequenceRenderShotSpan.js +3 -0
- package/lib/IAutoMovieSequenceRenderShotSpan.js.map +1 -0
- package/lib/IAutoMovieSequenceRenderTransitionSpan.d.ts +39 -0
- package/lib/IAutoMovieSequenceRenderTransitionSpan.js +3 -0
- package/lib/IAutoMovieSequenceRenderTransitionSpan.js.map +1 -0
- package/lib/audio/encodeAutoMovieWavPcm16.d.ts +21 -0
- package/lib/audio/encodeAutoMovieWavPcm16.js +59 -0
- package/lib/audio/encodeAutoMovieWavPcm16.js.map +1 -0
- package/lib/audio/index.d.ts +2 -0
- package/lib/audio/index.js +19 -0
- package/lib/audio/index.js.map +1 -0
- package/lib/audio/mixAutoMovieAudioPcm.d.ts +64 -0
- package/lib/audio/mixAutoMovieAudioPcm.js +86 -0
- package/lib/audio/mixAutoMovieAudioPcm.js.map +1 -0
- package/lib/auditAutoMovieRenderObservation.d.ts +31 -0
- package/lib/auditAutoMovieRenderObservation.js +63 -0
- package/lib/auditAutoMovieRenderObservation.js.map +1 -0
- package/lib/cache/createAutoMovieHttpArtifactStore.d.ts +28 -0
- package/lib/cache/createAutoMovieHttpArtifactStore.js +66 -0
- package/lib/cache/createAutoMovieHttpArtifactStore.js.map +1 -0
- package/lib/caption/IAutoMovieBeatCaption.d.ts +22 -0
- package/lib/caption/IAutoMovieBeatCaption.js +3 -0
- package/lib/caption/IAutoMovieBeatCaption.js.map +1 -0
- package/lib/caption/autoMovieCaptionLanguageComparisonKey.d.ts +18 -0
- package/lib/caption/autoMovieCaptionLanguageComparisonKey.js +24 -0
- package/lib/caption/autoMovieCaptionLanguageComparisonKey.js.map +1 -0
- package/lib/caption/beatCaptions.d.ts +22 -0
- package/lib/caption/beatCaptions.js +50 -0
- package/lib/caption/beatCaptions.js.map +1 -0
- package/lib/caption/canonicalProductionWebVtt.d.ts +23 -0
- package/lib/caption/canonicalProductionWebVtt.js +60 -0
- package/lib/caption/canonicalProductionWebVtt.js.map +1 -0
- package/lib/caption/canonicalizeAutoMovieCaptionText.d.ts +18 -0
- package/lib/caption/canonicalizeAutoMovieCaptionText.js +24 -0
- package/lib/caption/canonicalizeAutoMovieCaptionText.js.map +1 -0
- package/lib/caption/escapeWebVttText.d.ts +17 -0
- package/lib/caption/escapeWebVttText.js +25 -0
- package/lib/caption/escapeWebVttText.js.map +1 -0
- package/lib/caption/index.d.ts +11 -0
- package/lib/caption/index.js +28 -0
- package/lib/caption/index.js.map +1 -0
- package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.d.ts +37 -0
- package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.js +129 -0
- package/lib/caption/inspectAutoMovieCaptionReadabilityWithRuntime.js.map +1 -0
- package/lib/caption/isAutoMovieWebVttIdentifier.d.ts +21 -0
- package/lib/caption/isAutoMovieWebVttIdentifier.js +28 -0
- package/lib/caption/isAutoMovieWebVttIdentifier.js.map +1 -0
- package/lib/caption/parseAutoMovieCaptionLanguage.d.ts +34 -0
- package/lib/caption/parseAutoMovieCaptionLanguage.js +121 -0
- package/lib/caption/parseAutoMovieCaptionLanguage.js.map +1 -0
- package/lib/caption/serializeAutoMovieWebVttCueText.d.ts +17 -0
- package/lib/caption/serializeAutoMovieWebVttCueText.js +27 -0
- package/lib/caption/serializeAutoMovieWebVttCueText.js.map +1 -0
- package/lib/caption/serializeAutoMovieWebVttIdentifier.d.ts +17 -0
- package/lib/caption/serializeAutoMovieWebVttIdentifier.js +27 -0
- package/lib/caption/serializeAutoMovieWebVttIdentifier.js.map +1 -0
- package/lib/caption/serializeAutoMovieWebVttSingleLineText.d.ts +19 -0
- package/lib/caption/serializeAutoMovieWebVttSingleLineText.js +26 -0
- package/lib/caption/serializeAutoMovieWebVttSingleLineText.js.map +1 -0
- package/lib/caption/webVttCaptionLanguage.d.ts +18 -0
- package/lib/caption/webVttCaptionLanguage.js +29 -0
- package/lib/caption/webVttCaptionLanguage.js.map +1 -0
- package/lib/caption/webVttTime.d.ts +19 -0
- package/lib/caption/webVttTime.js +30 -0
- package/lib/caption/webVttTime.js.map +1 -0
- package/lib/captionPlan.d.ts +1 -0
- package/lib/captionPlan.js +18 -0
- package/lib/captionPlan.js.map +1 -0
- package/lib/captionSidecar.d.ts +3 -0
- package/lib/captionSidecar.js +20 -0
- package/lib/captionSidecar.js.map +1 -0
- package/lib/captionSlice.d.ts +1 -0
- package/lib/captionSlice.js +18 -0
- package/lib/captionSlice.js.map +1 -0
- package/lib/chunkSequenceRender.d.ts +5 -0
- package/lib/chunkSequenceRender.js +22 -0
- package/lib/chunkSequenceRender.js.map +1 -0
- package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.d.ts +16 -0
- package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.js +20 -0
- package/lib/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.js.map +1 -0
- package/lib/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.d.ts +11 -0
- package/lib/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.js +14 -0
- package/lib/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.js.map +1 -0
- package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.d.ts +15 -0
- package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js +19 -0
- package/lib/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.js.map +1 -0
- package/lib/delivery/AutoMovieProductionPngRole.d.ts +14 -0
- package/lib/delivery/AutoMovieProductionPngRole.js +3 -0
- package/lib/delivery/AutoMovieProductionPngRole.js.map +1 -0
- package/lib/delivery/IAutoMovieProductionPngProfile.d.ts +41 -0
- package/lib/delivery/IAutoMovieProductionPngProfile.js +3 -0
- package/lib/delivery/IAutoMovieProductionPngProfile.js.map +1 -0
- package/lib/delivery/IAutoMovieProductionVideoProfile.d.ts +46 -0
- package/lib/delivery/IAutoMovieProductionVideoProfile.js +3 -0
- package/lib/delivery/IAutoMovieProductionVideoProfile.js.map +1 -0
- package/lib/delivery/assertAutoMovieCaptureClock.d.ts +26 -0
- package/lib/delivery/assertAutoMovieCaptureClock.js +29 -0
- package/lib/delivery/assertAutoMovieCaptureClock.js.map +1 -0
- package/lib/delivery/assertProductionOpusProfile.d.ts +23 -0
- package/lib/delivery/assertProductionOpusProfile.js +160 -0
- package/lib/delivery/assertProductionOpusProfile.js.map +1 -0
- package/lib/delivery/assertProductionPngPicture.d.ts +24 -0
- package/lib/delivery/assertProductionPngPicture.js +47 -0
- package/lib/delivery/assertProductionPngPicture.js.map +1 -0
- package/lib/delivery/assertProductionVideoProfile.d.ts +30 -0
- package/lib/delivery/assertProductionVideoProfile.js +150 -0
- package/lib/delivery/assertProductionVideoProfile.js.map +1 -0
- package/lib/delivery/auditAutoMovieDecodedFrames.d.ts +56 -0
- package/lib/delivery/auditAutoMovieDecodedFrames.js +92 -0
- package/lib/delivery/auditAutoMovieDecodedFrames.js.map +1 -0
- package/lib/delivery/auditAutoMovieEncodedPresentation.d.ts +27 -0
- package/lib/delivery/auditAutoMovieEncodedPresentation.js +62 -0
- package/lib/delivery/auditAutoMovieEncodedPresentation.js.map +1 -0
- package/lib/delivery/index.d.ts +14 -0
- package/lib/delivery/index.js +31 -0
- package/lib/delivery/index.js.map +1 -0
- package/lib/delivery/planAutoMovieCaptureUrl.d.ts +18 -0
- package/lib/delivery/planAutoMovieCaptureUrl.js +31 -0
- package/lib/delivery/planAutoMovieCaptureUrl.js.map +1 -0
- package/lib/delivery/productionOpusDescription.d.ts +41 -0
- package/lib/delivery/productionOpusDescription.js +125 -0
- package/lib/delivery/productionOpusDescription.js.map +1 -0
- package/lib/delivery/resolveProductionPngProfile.d.ts +27 -0
- package/lib/delivery/resolveProductionPngProfile.js +53 -0
- package/lib/delivery/resolveProductionPngProfile.js.map +1 -0
- package/lib/delivery/resolveProductionVideoProfile.d.ts +27 -0
- package/lib/delivery/resolveProductionVideoProfile.js +36 -0
- package/lib/delivery/resolveProductionVideoProfile.js.map +1 -0
- package/lib/ffmpegArgs.d.ts +33 -0
- package/lib/ffmpegArgs.js +56 -0
- package/lib/ffmpegArgs.js.map +1 -0
- package/lib/film/AutoMovieOrderedScalar.d.ts +15 -0
- package/lib/film/AutoMovieOrderedScalar.js +3 -0
- package/lib/film/AutoMovieOrderedScalar.js.map +1 -0
- package/lib/film/IAutoMovieProductionAudioAssetIdentity.d.ts +28 -0
- package/lib/film/IAutoMovieProductionAudioAssetIdentity.js +3 -0
- package/lib/film/IAutoMovieProductionAudioAssetIdentity.js.map +1 -0
- package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.d.ts +29 -0
- package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.js +3 -0
- package/lib/film/IAutoMovieProductionAudioAssetIdentityBase.js.map +1 -0
- package/lib/film/IAutoMovieProductionEncoderIdentity.d.ts +36 -0
- package/lib/film/IAutoMovieProductionEncoderIdentity.js +3 -0
- package/lib/film/IAutoMovieProductionEncoderIdentity.js.map +1 -0
- package/lib/film/IAutoMovieProductionRenderChunk.d.ts +39 -0
- package/lib/film/IAutoMovieProductionRenderChunk.js +3 -0
- package/lib/film/IAutoMovieProductionRenderChunk.js.map +1 -0
- package/lib/film/IAutoMovieProductionRenderJobPlan.d.ts +53 -0
- package/lib/film/IAutoMovieProductionRenderJobPlan.js +3 -0
- package/lib/film/IAutoMovieProductionRenderJobPlan.js.map +1 -0
- package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.d.ts +31 -0
- package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.js +3 -0
- package/lib/film/IAutoMovieProductionRenderRuntimeIdentity.js.map +1 -0
- package/lib/film/IAutoMovieProductionRenderTier.d.ts +25 -0
- package/lib/film/IAutoMovieProductionRenderTier.js +3 -0
- package/lib/film/IAutoMovieProductionRenderTier.js.map +1 -0
- package/lib/film/assertSingleGuidePass.d.ts +19 -0
- package/lib/film/assertSingleGuidePass.js +35 -0
- package/lib/film/assertSingleGuidePass.js.map +1 -0
- package/lib/film/equalOrderedScalars.d.ts +27 -0
- package/lib/film/equalOrderedScalars.js +52 -0
- package/lib/film/equalOrderedScalars.js.map +1 -0
- package/lib/film/index.d.ts +9 -0
- package/lib/film/index.js +26 -0
- package/lib/film/index.js.map +1 -0
- package/lib/film/normalizeAudioAssets.d.ts +21 -0
- package/lib/film/normalizeAudioAssets.js +56 -0
- package/lib/film/normalizeAudioAssets.js.map +1 -0
- package/lib/film/normalizeRenderTier.d.ts +19 -0
- package/lib/film/normalizeRenderTier.js +45 -0
- package/lib/film/normalizeRenderTier.js.map +1 -0
- package/lib/film/planProductionRenderJob.d.ts +48 -0
- package/lib/film/planProductionRenderJob.js +196 -0
- package/lib/film/planProductionRenderJob.js.map +1 -0
- package/lib/film/productionVisualDeliveryOccurrence.d.ts +20 -0
- package/lib/film/productionVisualDeliveryOccurrence.js +24 -0
- package/lib/film/productionVisualDeliveryOccurrence.js.map +1 -0
- package/lib/film/resolveProductionRenderTierFrameFormat.d.ts +21 -0
- package/lib/film/resolveProductionRenderTierFrameFormat.js +46 -0
- package/lib/film/resolveProductionRenderTierFrameFormat.js.map +1 -0
- package/lib/film/validDigest.d.ts +18 -0
- package/lib/film/validDigest.js +25 -0
- package/lib/film/validDigest.js.map +1 -0
- package/lib/film/validWaveAudioIdentity.d.ts +25 -0
- package/lib/film/validWaveAudioIdentity.js +76 -0
- package/lib/film/validWaveAudioIdentity.js.map +1 -0
- package/lib/frameName.d.ts +19 -0
- package/lib/frameName.js +24 -0
- package/lib/frameName.js.map +1 -0
- package/lib/framePattern.d.ts +16 -0
- package/lib/framePattern.js +21 -0
- package/lib/framePattern.js.map +1 -0
- package/lib/frameTimes.d.ts +20 -0
- package/lib/frameTimes.js +33 -0
- package/lib/frameTimes.js.map +1 -0
- package/lib/guidePassFrameName.d.ts +15 -0
- package/lib/guidePassFrameName.js +21 -0
- package/lib/guidePassFrameName.js.map +1 -0
- package/lib/guidePassFramePattern.d.ts +15 -0
- package/lib/guidePassFramePattern.js +21 -0
- package/lib/guidePassFramePattern.js.map +1 -0
- package/lib/guidePasses.d.ts +7 -0
- package/lib/guidePasses.js +24 -0
- package/lib/guidePasses.js.map +1 -0
- package/lib/guidePassesInternal/passExtension.d.ts +14 -0
- package/lib/guidePassesInternal/passExtension.js +18 -0
- package/lib/guidePassesInternal/passExtension.js.map +1 -0
- package/lib/index.d.ts +69 -0
- package/lib/index.js +86 -0
- package/lib/index.js.map +1 -0
- package/lib/isGuidePass.d.ts +15 -0
- package/lib/isGuidePass.js +20 -0
- package/lib/isGuidePass.js.map +1 -0
- package/lib/normalizeGuidePasses.d.ts +15 -0
- package/lib/normalizeGuidePasses.js +32 -0
- package/lib/normalizeGuidePasses.js.map +1 -0
- package/lib/planCaptionSidecar.d.ts +23 -0
- package/lib/planCaptionSidecar.js +56 -0
- package/lib/planCaptionSidecar.js.map +1 -0
- package/lib/planChunkedSequenceRender.d.ts +26 -0
- package/lib/planChunkedSequenceRender.js +132 -0
- package/lib/planChunkedSequenceRender.js.map +1 -0
- package/lib/planGuidePassOutputs.d.ts +19 -0
- package/lib/planGuidePassOutputs.js +31 -0
- package/lib/planGuidePassOutputs.js.map +1 -0
- package/lib/planPoseKeypointSidecar.d.ts +27 -0
- package/lib/planPoseKeypointSidecar.js +141 -0
- package/lib/planPoseKeypointSidecar.js.map +1 -0
- package/lib/planSequenceRender.d.ts +20 -0
- package/lib/planSequenceRender.js +99 -0
- package/lib/planSequenceRender.js.map +1 -0
- package/lib/planViewerFrameTimes.d.ts +33 -0
- package/lib/planViewerFrameTimes.js +74 -0
- package/lib/planViewerFrameTimes.js.map +1 -0
- package/lib/renderAndSee.d.ts +14 -0
- package/lib/renderAndSee.js +22 -0
- package/lib/renderAndSee.js.map +1 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.d.ts +41 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.js +3 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.js.map +1 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.d.ts +53 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.js +3 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.js.map +1 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.d.ts +27 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.js +3 -0
- package/lib/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.js.map +1 -0
- package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.d.ts +28 -0
- package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.js +77 -0
- package/lib/renderBudgetPreflight/assessAutoMovieRenderBudget.js.map +1 -0
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.d.ts +23 -0
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.js +55 -0
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetEvidence.js.map +1 -0
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.d.ts +17 -0
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.js +51 -0
- package/lib/renderBudgetPreflight/autoMovieRenderBudgetRefusal.js.map +1 -0
- package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.d.ts +22 -0
- package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.js +32 -0
- package/lib/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.js.map +1 -0
- package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.d.ts +23 -0
- package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.js +35 -0
- package/lib/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.js.map +1 -0
- package/lib/renderBudgetPreflight/index.d.ts +9 -0
- package/lib/renderBudgetPreflight/index.js +26 -0
- package/lib/renderBudgetPreflight/index.js.map +1 -0
- package/lib/renderBudgetPreflight/selectAutoMovieRenderBudget.d.ts +18 -0
- package/lib/renderBudgetPreflight/selectAutoMovieRenderBudget.js +22 -0
- package/lib/renderBudgetPreflight/selectAutoMovieRenderBudget.js.map +1 -0
- package/lib/renderCaptionSidecar.d.ts +13 -0
- package/lib/renderCaptionSidecar.js +17 -0
- package/lib/renderCaptionSidecar.js.map +1 -0
- package/lib/renderObservationAudit.d.ts +1 -0
- package/lib/renderObservationAudit.js +18 -0
- package/lib/renderObservationAudit.js.map +1 -0
- package/lib/renderPathStem.d.ts +22 -0
- package/lib/renderPathStem.js +64 -0
- package/lib/renderPathStem.js.map +1 -0
- package/lib/renderPoseKeypointSidecar.d.ts +15 -0
- package/lib/renderPoseKeypointSidecar.js +19 -0
- package/lib/renderPoseKeypointSidecar.js.map +1 -0
- package/lib/renderSequenceAndSee.d.ts +14 -0
- package/lib/renderSequenceAndSee.js +32 -0
- package/lib/renderSequenceAndSee.js.map +1 -0
- package/lib/renderSequenceVideo.d.ts +15 -0
- package/lib/renderSequenceVideo.js +35 -0
- package/lib/renderSequenceVideo.js.map +1 -0
- package/lib/renderVideo.d.ts +17 -0
- package/lib/renderVideo.js +45 -0
- package/lib/renderVideo.js.map +1 -0
- package/lib/screenplay/index.d.ts +1 -0
- package/lib/screenplay/index.js +18 -0
- package/lib/screenplay/index.js.map +1 -0
- package/lib/screenplay/renderScreenplay.d.ts +25 -0
- package/lib/screenplay/renderScreenplay.js +101 -0
- package/lib/screenplay/renderScreenplay.js.map +1 -0
- package/lib/screenplay/screenplaySceneSlug.d.ts +17 -0
- package/lib/screenplay/screenplaySceneSlug.js +21 -0
- package/lib/screenplay/screenplaySceneSlug.js.map +1 -0
- package/lib/sequenceRenderPlan.d.ts +5 -0
- package/lib/sequenceRenderPlan.js +22 -0
- package/lib/sequenceRenderPlan.js.map +1 -0
- package/lib/sequenceRenderVideo.d.ts +6 -0
- package/lib/sequenceRenderVideo.js +23 -0
- package/lib/sequenceRenderVideo.js.map +1 -0
- package/lib/shotBeat.d.ts +18 -0
- package/lib/shotBeat.js +23 -0
- package/lib/shotBeat.js.map +1 -0
- package/lib/sliceCaptionSidecar.d.ts +15 -0
- package/lib/sliceCaptionSidecar.js +57 -0
- package/lib/sliceCaptionSidecar.js.map +1 -0
- package/package.json +46 -3
- package/src/AUTOMOVIE_GUIDE_PASSES.ts +19 -0
- package/src/IAutoMovieCaptionEntry.ts +32 -0
- package/src/IAutoMovieCaptionSidecar.ts +29 -0
- package/src/IAutoMovieCapturedFrame.ts +24 -0
- package/src/IAutoMovieGuidePassOutput.ts +27 -0
- package/src/IAutoMoviePoseKeypointActor.ts +39 -0
- package/src/IAutoMoviePoseKeypointFrame.ts +28 -0
- package/src/IAutoMoviePoseKeypointSidecar.ts +25 -0
- package/src/IAutoMovieRenderAdapters.ts +39 -0
- package/src/IAutoMovieRenderAndSeeRequest.ts +38 -0
- package/src/IAutoMovieRenderAndSeeResult.ts +23 -0
- package/src/IAutoMovieRenderChunk.ts +62 -0
- package/src/IAutoMovieRenderChunkPlan.ts +40 -0
- package/src/IAutoMovieRenderPassManifest.ts +25 -0
- package/src/IAutoMovieRenderReassembly.ts +28 -0
- package/src/IAutoMovieRenderResult.ts +46 -0
- package/src/IAutoMovieSequenceRenderAdapters.ts +41 -0
- package/src/IAutoMovieSequenceRenderAndSeeRequest.ts +47 -0
- package/src/IAutoMovieSequenceRenderAndSeeResult.ts +23 -0
- package/src/IAutoMovieSequenceRenderFrame.ts +48 -0
- package/src/IAutoMovieSequenceRenderPlan.ts +88 -0
- package/src/IAutoMovieSequenceRenderResult.ts +52 -0
- package/src/IAutoMovieSequenceRenderShotSpan.ts +46 -0
- package/src/IAutoMovieSequenceRenderTransitionSpan.ts +46 -0
- package/src/audio/encodeAutoMovieWavPcm16.ts +65 -0
- package/src/audio/index.ts +2 -0
- package/src/audio/mixAutoMovieAudioPcm.ts +137 -0
- package/src/auditAutoMovieRenderObservation.ts +79 -0
- package/src/cache/createAutoMovieHttpArtifactStore.ts +84 -0
- package/src/caption/IAutoMovieBeatCaption.ts +23 -0
- package/src/caption/autoMovieCaptionLanguageComparisonKey.ts +23 -0
- package/src/caption/beatCaptions.ts +59 -0
- package/src/caption/canonicalProductionWebVtt.ts +76 -0
- package/src/caption/canonicalizeAutoMovieCaptionText.ts +24 -0
- package/src/caption/escapeWebVttText.ts +23 -0
- package/src/caption/index.ts +11 -0
- package/src/caption/inspectAutoMovieCaptionReadabilityWithRuntime.ts +231 -0
- package/src/caption/isAutoMovieWebVttIdentifier.ts +26 -0
- package/src/caption/parseAutoMovieCaptionLanguage.ts +160 -0
- package/src/caption/serializeAutoMovieWebVttCueText.ts +28 -0
- package/src/caption/serializeAutoMovieWebVttIdentifier.ts +27 -0
- package/src/caption/serializeAutoMovieWebVttSingleLineText.ts +26 -0
- package/src/caption/webVttCaptionLanguage.ts +30 -0
- package/src/caption/webVttTime.ts +30 -0
- package/src/captionPlan.ts +1 -0
- package/src/captionSidecar.ts +3 -0
- package/src/captionSlice.ts +1 -0
- package/src/chunkSequenceRender.ts +5 -0
- package/src/delivery/AUTOMOVIE_MP4_SRGB_COLOUR.ts +21 -0
- package/src/delivery/AUTOMOVIE_MP4_UNITY_MATRIX.ts +14 -0
- package/src/delivery/AUTOMOVIE_PRODUCTION_OPUS_PROFILE.ts +28 -0
- package/src/delivery/AutoMovieProductionPngRole.ts +18 -0
- package/src/delivery/IAutoMovieProductionPngProfile.ts +52 -0
- package/src/delivery/IAutoMovieProductionVideoProfile.ts +48 -0
- package/src/delivery/assertAutoMovieCaptureClock.ts +37 -0
- package/src/delivery/assertProductionOpusProfile.ts +179 -0
- package/src/delivery/assertProductionPngPicture.ts +62 -0
- package/src/delivery/assertProductionVideoProfile.ts +180 -0
- package/src/delivery/auditAutoMovieDecodedFrames.ts +157 -0
- package/src/delivery/auditAutoMovieEncodedPresentation.ts +86 -0
- package/src/delivery/index.ts +14 -0
- package/src/delivery/planAutoMovieCaptureUrl.ts +32 -0
- package/src/delivery/productionOpusDescription.ts +173 -0
- package/src/delivery/resolveProductionPngProfile.ts +70 -0
- package/src/delivery/resolveProductionVideoProfile.ts +48 -0
- package/src/ffmpegArgs.ts +61 -0
- package/src/film/AutoMovieOrderedScalar.ts +15 -0
- package/src/film/IAutoMovieProductionAudioAssetIdentity.ts +40 -0
- package/src/film/IAutoMovieProductionAudioAssetIdentityBase.ts +34 -0
- package/src/film/IAutoMovieProductionEncoderIdentity.ts +42 -0
- package/src/film/IAutoMovieProductionRenderChunk.ts +47 -0
- package/src/film/IAutoMovieProductionRenderJobPlan.ts +73 -0
- package/src/film/IAutoMovieProductionRenderRuntimeIdentity.ts +37 -0
- package/src/film/IAutoMovieProductionRenderTier.ts +27 -0
- package/src/film/assertSingleGuidePass.ts +38 -0
- package/src/film/equalOrderedScalars.ts +56 -0
- package/src/film/index.ts +9 -0
- package/src/film/normalizeAudioAssets.ts +74 -0
- package/src/film/normalizeRenderTier.ts +51 -0
- package/src/film/planProductionRenderJob.ts +353 -0
- package/src/film/productionVisualDeliveryOccurrence.ts +28 -0
- package/src/film/resolveProductionRenderTierFrameFormat.ts +60 -0
- package/src/film/validDigest.ts +23 -0
- package/src/film/validWaveAudioIdentity.ts +88 -0
- package/src/frameName.ts +24 -0
- package/src/framePattern.ts +19 -0
- package/src/frameTimes.ts +36 -0
- package/src/guidePassFrameName.ts +29 -0
- package/src/guidePassFramePattern.ts +27 -0
- package/src/guidePasses.ts +7 -0
- package/src/guidePassesInternal/passExtension.ts +19 -0
- package/src/index.ts +69 -0
- package/src/isGuidePass.ts +21 -0
- package/src/normalizeGuidePasses.ts +33 -0
- package/src/planCaptionSidecar.ts +98 -0
- package/src/planChunkedSequenceRender.ts +200 -0
- package/src/planGuidePassOutputs.ts +47 -0
- package/src/planPoseKeypointSidecar.ts +289 -0
- package/src/planSequenceRender.ts +175 -0
- package/src/planViewerFrameTimes.ts +98 -0
- package/src/renderAndSee.ts +30 -0
- package/src/renderBudgetPreflight/IAutoMovieRenderBudgetAssessment.ts +53 -0
- package/src/renderBudgetPreflight/IAutoMovieRenderBudgetEvidence.ts +61 -0
- package/src/renderBudgetPreflight/IAutoMovieRenderGraphicsIdentity.ts +29 -0
- package/src/renderBudgetPreflight/assessAutoMovieRenderBudget.ts +137 -0
- package/src/renderBudgetPreflight/autoMovieRenderBudgetEvidence.ts +100 -0
- package/src/renderBudgetPreflight/autoMovieRenderBudgetRefusal.ts +82 -0
- package/src/renderBudgetPreflight/autoMovieRenderTargetRendererOfGraphics.ts +40 -0
- package/src/renderBudgetPreflight/autoMovieRenderTargetSettingsOfShot.ts +59 -0
- package/src/renderBudgetPreflight/index.ts +9 -0
- package/src/renderBudgetPreflight/selectAutoMovieRenderBudget.ts +28 -0
- package/src/renderCaptionSidecar.ts +17 -0
- package/src/renderObservationAudit.ts +1 -0
- package/src/renderPathStem.ts +61 -0
- package/src/renderPoseKeypointSidecar.ts +19 -0
- package/src/renderSequenceAndSee.ts +34 -0
- package/src/renderSequenceVideo.ts +44 -0
- package/src/renderVideo.ts +65 -0
- package/src/screenplay/index.ts +1 -0
- package/src/screenplay/renderScreenplay.ts +128 -0
- package/src/screenplay/screenplaySceneSlug.ts +29 -0
- package/src/sequenceRenderPlan.ts +5 -0
- package/src/sequenceRenderVideo.ts +6 -0
- package/src/shotBeat.ts +19 -0
- package/src/sliceCaptionSidecar.ts +85 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jeongho Nam
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @automovie/render
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Plans how AutoMovie output becomes frames and a video file: frame schedules and file names, sequence timelines with trims and transitions, encoder arguments, captions, and a render-budget check a job runs before it draws. The plans are deterministic. Pixels and encoded bytes depend on the capture and encoding you supply.
|
|
4
|
+
|
|
5
|
+
The package launches nothing itself, which keeps it usable in a browser. You pass it adapters that capture a frame and run the encoder.
|
|
6
|
+
|
|
7
|
+
## Use
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @automovie/render @automovie/interface
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import type { IAutoMovieRenderSpec } from "@automovie/interface";
|
|
15
|
+
import { type IAutoMovieRenderAdapters, frameTimes, renderVideo } from "@automovie/render";
|
|
16
|
+
|
|
17
|
+
frameTimes(30, 2); // 60 instants: 0, 1/30, 2/30, ...
|
|
18
|
+
|
|
19
|
+
declare const spec: IAutoMovieRenderSpec;
|
|
20
|
+
declare const adapters: IAutoMovieRenderAdapters;
|
|
21
|
+
|
|
22
|
+
const result = await renderVideo(spec, 2, "frames", "out.mp4", adapters);
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
You write the two adapters, or take them from a generated production (see [Node tooling](#node-tooling)). `captureFrame(timeSeconds, index, dir)` draws the scene at that instant, writes the frame into `dir` and returns its path, and `encode(args, outputPath)` runs FFmpeg with the given arguments. Every instant is `index / fps`, never a running sum, so a schedule is identical on every machine.
|
|
26
|
+
|
|
27
|
+
## Entry points
|
|
28
|
+
|
|
29
|
+
- `frameTimes`, `ffmpegArgs` and `planSequenceRender` produce plans without doing any I/O.
|
|
30
|
+
- `renderVideo` renders one clip and `renderSequenceVideo` an edited sequence, both through your adapters.
|
|
31
|
+
- `assessAutoMovieRenderBudget` refuses a job whose memory it cannot bound.
|
|
32
|
+
- `planCaptionSidecar` and the delivery profiles cover captions and the delivered video's format.
|
|
33
|
+
|
|
34
|
+
## Node tooling
|
|
35
|
+
|
|
36
|
+
A ready-made host, a program that supplies both adapters, is in every generated production under `src/executable/render`: browser capture, FFmpeg export and MP4 handling. It belongs to the production, so read its source for those APIs. `npm run render` in a production runs it.
|
|
37
|
+
|
|
38
|
+
A finished render says only that capture and encoding ran, so watch and listen to the video before accepting it.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AutoMovieGuidePass } from "@automovie/interface";
|
|
2
|
+
/**
|
|
3
|
+
* Every member of the closed `AutoMovieGuidePass` union, in declaration order, as the runtime list a requested pass name is checked against.
|
|
4
|
+
*
|
|
5
|
+
* The `interface` package holds only types, so the value list lives here.
|
|
6
|
+
*
|
|
7
|
+
* The six lowercase names enumerate the current closed guide-pass union in deterministic declaration order; the readonly element type rejects a value outside that union. This registry supplies pass admission and default capture ordering without putting runtime values in the pure-type interface, and names rendering modes rather than authored scenes or consumer-specific entries.
|
|
8
|
+
*
|
|
9
|
+
* The fixed registry chooses no processing algorithm. Pass validators and output planners share this module-owned array for the process lifetime; it retains six names without a renderer or captured frame.
|
|
10
|
+
*/
|
|
11
|
+
export declare const AUTOMOVIE_GUIDE_PASSES: readonly AutoMovieGuidePass[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AUTOMOVIE_GUIDE_PASSES = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Every member of the closed `AutoMovieGuidePass` union, in declaration order, as the runtime list a requested pass name is checked against.
|
|
6
|
+
*
|
|
7
|
+
* The `interface` package holds only types, so the value list lives here.
|
|
8
|
+
*
|
|
9
|
+
* The six lowercase names enumerate the current closed guide-pass union in deterministic declaration order; the readonly element type rejects a value outside that union. This registry supplies pass admission and default capture ordering without putting runtime values in the pure-type interface, and names rendering modes rather than authored scenes or consumer-specific entries.
|
|
10
|
+
*
|
|
11
|
+
* The fixed registry chooses no processing algorithm. Pass validators and output planners share this module-owned array for the process lifetime; it retains six names without a renderer or captured frame.
|
|
12
|
+
*/
|
|
13
|
+
exports.AUTOMOVIE_GUIDE_PASSES = [
|
|
14
|
+
"beauty",
|
|
15
|
+
"depth",
|
|
16
|
+
"mask",
|
|
17
|
+
"normal",
|
|
18
|
+
"outline",
|
|
19
|
+
"pose",
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=AUTOMOVIE_GUIDE_PASSES.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AUTOMOVIE_GUIDE_PASSES.js","sourceRoot":"","sources":["../src/AUTOMOVIE_GUIDE_PASSES.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;GAQG;AACU,QAAA,sBAAsB,GAAkC;IACnE,QAAQ;IACR,OAAO;IACP,MAAM;IACN,QAAQ;IACR,SAAS;IACT,MAAM;CACP,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One caption span: the output frames `[frameStart, frameEnd)` during which one beat's shot is live, with that beat's shot caption and enclosing scene slug.
|
|
3
|
+
*
|
|
4
|
+
* A guide-frame consumer, such as an external diffusion pass, can use the caption as the prompt for those frames and the slug as scene context. A null caption carries no prompt; this declaration does not choose a consumer's fallback behavior.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/design.md#principled-representation A half-open frame interval is the representation that lets consecutive spans share a boundary without overlap, so the spans tile the output frames exactly and slicing can clip them with `max` and `min`.
|
|
7
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The span repeats the `IAutoMovieBeatCaption` fields beside the beat id and range, so a consumer reads one flat record without a second lookup into the screenplay.
|
|
8
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts No field carries a consumer-specific default prompt; null caption and slug are left for the consumer to interpret.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose gives the interval convention and how a consumer uses each field, and each member states its bound, its frame of reference, or its null cases.
|
|
10
|
+
*/
|
|
11
|
+
export interface IAutoMovieCaptionEntry {
|
|
12
|
+
/**
|
|
13
|
+
* First output frame of the span, inclusive, counted from the start of the sidecar: the whole render, or the chunk after slicing.
|
|
14
|
+
*/
|
|
15
|
+
frameStart: number;
|
|
16
|
+
/** One past the last output frame of the span, exclusive. */
|
|
17
|
+
frameEnd: number;
|
|
18
|
+
/** Id of the beat whose shot is live across the span. */
|
|
19
|
+
beat: string;
|
|
20
|
+
/**
|
|
21
|
+
* The beat node's shot caption, or null when the script has no tree or the beat authored none.
|
|
22
|
+
*/
|
|
23
|
+
caption: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* The enclosing scene's slug, `INT. LOCATION - TIMEOFDAY`, or null when the script has no tree or no scene encloses the beat.
|
|
26
|
+
*/
|
|
27
|
+
slug: string | null;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoMovieCaptionEntry.js","sourceRoot":"","sources":["../src/IAutoMovieCaptionEntry.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IAutoMovieCaptionEntry } from "./IAutoMovieCaptionEntry";
|
|
2
|
+
/**
|
|
3
|
+
* The per-beat caption track of one sequence render: the machine-readable sidecar a guide-frame consumer reads next to the captured frames.
|
|
4
|
+
*
|
|
5
|
+
* `planCaptionSidecar` produces it for the whole render, `sliceCaptionSidecar` re-bases it to one chunk, and `renderCaptionSidecar` serializes it.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/development/design.md#principled-representation Spans are addressed in output frames at the render's `fps`, the same integer clock the captured frame files use, so a consumer maps a span to files by index without time arithmetic.
|
|
8
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Four fields carry only what a consumer needs to place spans against frame files; the cut, shots and script stay with the planner.
|
|
9
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts The `frameCount` is stated explicitly so a slice can refuse a window beyond coverage instead of inferring coverage from the last span.
|
|
10
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose names the producer, slicer and serializer; members state the frame clock, how `frameCount` is computed, and the tiling guarantee of `entries`.
|
|
11
|
+
*/
|
|
12
|
+
export interface IAutoMovieCaptionSidecar {
|
|
13
|
+
/** Id of the sequence this sidecar captions. */
|
|
14
|
+
target: string;
|
|
15
|
+
/** Output frames per second the spans are addressed in. */
|
|
16
|
+
fps: number;
|
|
17
|
+
/**
|
|
18
|
+
* Total output frames covered: `round(runtime * fps)` for a whole render, or the window length after slicing.
|
|
19
|
+
*/
|
|
20
|
+
frameCount: number;
|
|
21
|
+
/**
|
|
22
|
+
* Caption spans in play order, covering every frame in `[0, frameCount)` exactly once, with adjacent spans naming different beats.
|
|
23
|
+
*/
|
|
24
|
+
entries: IAutoMovieCaptionEntry[];
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoMovieCaptionSidecar.js","sourceRoot":"","sources":["../src/IAutoMovieCaptionSidecar.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One captured frame artifact.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/development/design.md#principled-representation A zero-based index, clip-local second and host-reported path identify one captured output without deriving its location from an encoder pattern.
|
|
5
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface This artifact element is shared by render result records instead of duplicating frame identity fields in each wrapper.
|
|
6
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts A captured path records the adapter's actual return value rather than a fixture filename or guessed frame location.
|
|
7
|
+
* @evidence contracts/development/common.md#meaningful-documentation Property comments state zero-based indexing, seconds and that the path belongs to the capture host.
|
|
8
|
+
*/
|
|
9
|
+
export interface IAutoMovieCapturedFrame {
|
|
10
|
+
/**
|
|
11
|
+
* Zero-based frame index.
|
|
12
|
+
*/
|
|
13
|
+
index: number;
|
|
14
|
+
/**
|
|
15
|
+
* Clip-local sample time in seconds.
|
|
16
|
+
*/
|
|
17
|
+
timeSeconds: number;
|
|
18
|
+
/**
|
|
19
|
+
* Host path returned by `captureFrame`.
|
|
20
|
+
*/
|
|
21
|
+
path: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoMovieCapturedFrame.js","sourceRoot":"","sources":["../src/IAutoMovieCapturedFrame.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AutoMovieGuidePass } from "@automovie/interface";
|
|
2
|
+
/**
|
|
3
|
+
* Where one guide pass writes its frames inside a frame directory, as
|
|
4
|
+
* `planGuidePassOutputs` plans it.
|
|
5
|
+
*
|
|
6
|
+
* Paths join the frame directory and the default `png` five-digit frame name
|
|
7
|
+
* with `/`.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/development/design.md#principled-representation The record stores the first and last frame paths and the ffmpeg pattern, which are the three facts a capture writer and an encoder need to address one pass's sequence.
|
|
10
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Four plain fields per pass, with no frame list, because the pattern already addresses every frame between the first and last.
|
|
11
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Every field is derived from the shared naming rule; nothing is special-cased per pass beyond the untagged beauty name.
|
|
12
|
+
* @evidence contracts/development/common.md#meaningful-documentation The doc names the producer and the path spelling, and each member states which frame or input it addresses.
|
|
13
|
+
*/
|
|
14
|
+
export interface IAutoMovieGuidePassOutput {
|
|
15
|
+
/** The guide pass these paths belong to. */
|
|
16
|
+
pass: AutoMovieGuidePass;
|
|
17
|
+
/** Path of the pass's frame 0. */
|
|
18
|
+
firstFrame: string;
|
|
19
|
+
/** Path of the pass's last frame, numbered `frameCount - 1`. */
|
|
20
|
+
lastFrame: string;
|
|
21
|
+
/** Ffmpeg `-i` pattern matching every frame of the pass. */
|
|
22
|
+
inputPattern: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoMovieGuidePassOutput.js","sourceRoot":"","sources":["../src/IAutoMovieGuidePassOutput.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { IAutoMoviePoseKeypoint } from "@automovie/interface";
|
|
2
|
+
/**
|
|
3
|
+
* One performing actor's projected joints in one output frame of the
|
|
4
|
+
* pose-keypoint sidecar.
|
|
5
|
+
*
|
|
6
|
+
* `planPoseKeypointSidecar` writes one record per performance whose motion,
|
|
7
|
+
* skeleton and scene node resolve, in the shot's performance order. A
|
|
8
|
+
* pose-conditioned generator reads `keypoints` as the actor's skeleton on
|
|
9
|
+
* screen and `atmosphere`, when present, as how visible the actor is through
|
|
10
|
+
* the scene's fog.
|
|
11
|
+
*
|
|
12
|
+
* @evidence contracts/development/design.md#principled-representation The record keeps resolvePoseKeypoints output including joint order and off-frame flags, plus sceneFogTransmittance at the actor's root camera depth. That binary64 scalar predicts the viewer's fog law; GPU precision, per-joint depth variation, lighting and compositing prevent claiming exact captured-pixel agreement.
|
|
13
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface One record holds node identity, projected joints and an optional root-sampled atmosphere fraction. Per-joint fog is absent, so depth variation across an actor is an approximation rather than a proven negligible visual difference.
|
|
14
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts `atmosphere` is omitted rather than written as 1 or null for a scene without fog, so a sidecar of a fogless scene is byte-identical to one written before the field existed, and no consumer is special-cased.
|
|
15
|
+
* @evidence contracts/development/common.md#meaningful-documentation The doc states who writes the record, which performances produce one and in what order, how a consumer reads each member, and each member states its meaning, range and absence.
|
|
16
|
+
*/
|
|
17
|
+
export interface IAutoMoviePoseKeypointActor {
|
|
18
|
+
/** Id of the performing actor's scene node. */
|
|
19
|
+
node: string;
|
|
20
|
+
/**
|
|
21
|
+
* The actor's named joints projected to the frame, in
|
|
22
|
+
* `resolvePoseKeypoints` order, with off-frame joints flagged rather than
|
|
23
|
+
* clamped.
|
|
24
|
+
*/
|
|
25
|
+
keypoints: IAutoMoviePoseKeypoint[];
|
|
26
|
+
/**
|
|
27
|
+
* Fraction of the actor's own color that survives the scene's fog at the
|
|
28
|
+
* camera depth of the actor's world root: 1 at the lens, falling toward 0
|
|
29
|
+
* with distance, from `sceneFogTransmittance` over the scene's fog.
|
|
30
|
+
*
|
|
31
|
+
* Screen coordinates alone do not say whether the subject standing there is
|
|
32
|
+
* fully visible or barely separable from the haze, so a pose-conditioned
|
|
33
|
+
* host reads this to know. Present only when the scene declares fog.
|
|
34
|
+
*/
|
|
35
|
+
atmosphere?: number;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoMoviePoseKeypointActor.js","sourceRoot":"","sources":["../src/IAutoMoviePoseKeypointActor.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IAutoMoviePoseKeypointActor } from "./IAutoMoviePoseKeypointActor";
|
|
2
|
+
/**
|
|
3
|
+
* One output frame of the pose-keypoint sidecar: the live beat and every
|
|
4
|
+
* performing actor's projected joints.
|
|
5
|
+
*
|
|
6
|
+
* Unlike the caption sidecar, which stores run-length spans because a caption
|
|
7
|
+
* holds for a whole shot, the pose sidecar stores every frame, because poses
|
|
8
|
+
* change every frame.
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/development/design.md#principled-representation One record per output frame is the representation of a per-frame signal, and the frame index and beat are the same frame clock and shot-to-beat mapping the caption plan uses, so the two sidecars align frame for frame.
|
|
11
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The record holds only the frame index, the beat and the actor list; the clock itself lives once on the sidecar.
|
|
12
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Missing scenes or cameras keep the frame with an empty actor list, while unresolved motion, node or skeleton references skip that actor. A missing timeline shot refuses during sequence planning rather than producing an invented frame.
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation The doc states what one record covers and why the sidecar is per frame rather than run-length, and each member states its meaning.
|
|
14
|
+
*/
|
|
15
|
+
export interface IAutoMoviePoseKeypointFrame {
|
|
16
|
+
/** Output frame index, from 0, on the sidecar's `fps` clock. */
|
|
17
|
+
frame: number;
|
|
18
|
+
/**
|
|
19
|
+
* Id of the beat whose shot is live on this frame: the shot id without its
|
|
20
|
+
* `shot:` prefix, or the shot id itself when it has none.
|
|
21
|
+
*/
|
|
22
|
+
beat: string;
|
|
23
|
+
/** Every resolvable performing actor's keypoints on this frame, possibly none. */
|
|
24
|
+
actors: IAutoMoviePoseKeypointActor[];
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoMoviePoseKeypointFrame.js","sourceRoot":"","sources":["../src/IAutoMoviePoseKeypointFrame.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IAutoMoviePoseKeypointFrame } from "./IAutoMoviePoseKeypointFrame";
|
|
2
|
+
/**
|
|
3
|
+
* The per-frame pose-keypoint sidecar of one sequence render: the machine-readable, OpenPose-style companion to the rendered `pose` guide pass, as the caption sidecar accompanies the beauty frames.
|
|
4
|
+
*
|
|
5
|
+
* A diffusion host can read it frame for frame to drive pose-conditioned (ControlNet) generation. `planPoseKeypointSidecar` builds it and `renderPoseKeypointSidecar` serializes it for the host to write; this declaration does not implement that external host.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/development/design.md#principled-representation The sidecar is addressed in output frames on the render's own clock, `round(runtime * fps)` frames at `i / fps`, the same schedule the render captures, so frame `i` of the sidecar describes frame `i` of the video.
|
|
8
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The record holds the target, the clock, the frame count and the frame list, nothing a consumer could not use, and the planner and serializer are separate so a host can inspect or slice before writing.
|
|
9
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Every output frame has a record even when nothing resolves on it, and no host-specific field is added.
|
|
10
|
+
* @evidence contracts/development/common.md#meaningful-documentation The doc states what the sidecar accompanies, who reads it and for what, who builds and serializes it, and each member states its unit and invariant.
|
|
11
|
+
*/
|
|
12
|
+
export interface IAutoMoviePoseKeypointSidecar {
|
|
13
|
+
/** Id of the sequence the sidecar tracks. */
|
|
14
|
+
target: string;
|
|
15
|
+
/** Output frames per second the frames are addressed in, the render clock. */
|
|
16
|
+
fps: number;
|
|
17
|
+
/** Number of output frames, `round(runtime * fps)`, and of `frames`. */
|
|
18
|
+
frameCount: number;
|
|
19
|
+
/** One record per output frame, in play order, `frames[i].frame === i`. */
|
|
20
|
+
frames: IAutoMoviePoseKeypointFrame[];
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoMoviePoseKeypointSidecar.js","sourceRoot":"","sources":["../src/IAutoMoviePoseKeypointSidecar.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host I/O for rendering a clip. Scheduling remains deterministic while the caller owns capture, encoding and cleanup of files, sessions and processes.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/development/design.md#principled-representation Separate asynchronous capture and encoding callbacks expose the two host effects while preserving clip-local seconds and frame naming at the capture boundary.
|
|
5
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The renderer-agnostic loop receives host I/O through this record so no browser, GPU or ffmpeg implementation enters scheduling.
|
|
6
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts The callbacks are the supported injection seam, not replacements for a global or foreign method; their failures remain rejected promises.
|
|
7
|
+
* @evidence contracts/development/common.md#meaningful-documentation Members define clip-local seconds, zero-based index, destination directory, encoder arguments and returned written paths.
|
|
8
|
+
*/
|
|
9
|
+
export interface IAutoMovieRenderAdapters {
|
|
10
|
+
/**
|
|
11
|
+
* Render the scene at clip-local `timeSeconds` and write frame `index` into `dir` under its {@link frameName}. Returns the written path.
|
|
12
|
+
*
|
|
13
|
+
* @evidence contracts/development/implementation.md#principled-implementation renderVideo supplies each scheduled clip-local second and zero-based index in order, awaiting this promise before the next capture. The host is responsible for drawing and writing the corresponding frame, and the returned path is reported without independent filesystem or pixel validation.
|
|
14
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Three scalar capture arguments keep scene and renderer ownership with the supplied host, separate from the deterministic schedule and later encoder call.
|
|
15
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts This declared effect seam supplies the host operation instead of replacing a global renderer; rejection stops renderVideo before encoding, and the signature supplies no synthetic-frame fallback.
|
|
16
|
+
* @evidence contracts/development/common.md#meaningful-documentation The member defines clip-local seconds, frame ordinal, destination directory and returned path; the host must honor those naming and timing inputs, and reporting a path alone does not prove a file was written.
|
|
17
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms This erased callback signature selects no drawing or filesystem algorithm. renderVideo owns its O(F) scheduling loop, and the concrete host owns each frame's capture and write costs.
|
|
18
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The signature shares no capture work; renderVideo requests distinct scheduled frames, while the host must establish equivalence before reusing any rendered data or effect.
|
|
19
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources This erased member opens no session or file. The supplied capture implementation owns its drawing resources and written files, including cleanup after rejection; renderVideo retains the reported path in caller-owned result metadata and has no host cleanup capability.
|
|
20
|
+
*/
|
|
21
|
+
captureFrame: (timeSeconds: number, index: number, dir: string) => Promise<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Run ffmpeg with `args` (from {@link ffmpegArgs}); resolve with `outputPath`.
|
|
24
|
+
*
|
|
25
|
+
* @evidence contracts/development/implementation.md#principled-implementation renderVideo calls this capability once after every capture succeeds, supplying ffmpegArgs' planned argument vector and destination. The host owns actual encoding and must return its written output path; the orchestrator neither starts ffmpeg itself nor verifies the resulting container.
|
|
26
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Encoding is a separate asynchronous effect from frame capture, so the scheduling loop can await one host result without owning an encoder implementation.
|
|
27
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The host callback is the declared process seam; a rejected encode propagates rather than becoming a successful artifact, and no destination or argument vector selects a fixture result.
|
|
28
|
+
* @evidence contracts/development/common.md#meaningful-documentation The member states the planned encoder arguments and requested output path. Implementations must preserve those inputs while encoding; returning a string does not prove container or pixel correctness.
|
|
29
|
+
* @evidenceExclude contracts/development/implementation.md#efficient-algorithms This erased encoder signature chooses no codec algorithm. The concrete implementation owns input-frame reading, codec work and output writing; renderVideo merely awaits one call.
|
|
30
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work The signature coordinates no encoder cache; a host cannot equate encoding effects solely by destination name, and renderVideo invokes this capability once per render attempt.
|
|
31
|
+
* @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources This erased member launches no process or output stream. The host owns encoder resources and cleanup on success or rejection, while renderVideo retains its reported output path and argument array in caller-owned metadata.
|
|
32
|
+
*/
|
|
33
|
+
encode: (args: string[], outputPath: string) => Promise<string>;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoMovieRenderAdapters.js","sourceRoot":"","sources":["../src/IAutoMovieRenderAdapters.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IAutoMovieRenderSpec } from "@automovie/interface";
|
|
2
|
+
import { IAutoMovieRenderAdapters } from "./IAutoMovieRenderAdapters";
|
|
3
|
+
/**
|
|
4
|
+
* Host-supplied request for rendering a clip and returning inspectable artifacts.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/design.md#principled-representation The request couples one render spec and duration in seconds with explicit host paths and adapters, providing all inputs the clip orchestration needs.
|
|
7
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface A single request object groups clip rendering and artifact metadata inputs at the agent-facing boundary.
|
|
8
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Host effects enter through the declared adapters rather than source-specific branches or process-global replacements.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation Members identify seconds, requested video path, frame directory and host ownership of capture and encoding.
|
|
10
|
+
*/
|
|
11
|
+
export interface IAutoMovieRenderAndSeeRequest {
|
|
12
|
+
/**
|
|
13
|
+
* Render spec for the target shot or sequence.
|
|
14
|
+
*/
|
|
15
|
+
spec: IAutoMovieRenderSpec;
|
|
16
|
+
/**
|
|
17
|
+
* Target duration in seconds.
|
|
18
|
+
*/
|
|
19
|
+
durationSeconds: number;
|
|
20
|
+
/**
|
|
21
|
+
* Directory where captured frames are written.
|
|
22
|
+
*/
|
|
23
|
+
frameDir: string;
|
|
24
|
+
/**
|
|
25
|
+
* Requested encoded video path.
|
|
26
|
+
*/
|
|
27
|
+
outputPath: string;
|
|
28
|
+
/**
|
|
29
|
+
* Capture and encode adapters owned by the host.
|
|
30
|
+
*/
|
|
31
|
+
adapters: IAutoMovieRenderAdapters;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoMovieRenderAndSeeRequest.js","sourceRoot":"","sources":["../src/IAutoMovieRenderAndSeeRequest.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IAutoMovieRenderSpec } from "@automovie/interface";
|
|
2
|
+
import { IAutoMovieRenderResult } from "./IAutoMovieRenderResult";
|
|
3
|
+
/**
|
|
4
|
+
* JSON-friendly render artifact returned to an agent or host.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/design.md#principled-representation Extending the clip outcome adds the requested duration and a shallow spec snapshot without altering captured frame identity.
|
|
7
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The inheritance keeps encoded paths and frame metadata in the existing render result while this envelope owns inspection inputs.
|
|
8
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts The artifact records the supplied duration rather than inferring authored runtime from the encoder's output.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation Its added properties state the capture spec and requested seconds, while inherited result members define paths and frame metadata.
|
|
10
|
+
*/
|
|
11
|
+
export interface IAutoMovieRenderAndSeeResult extends IAutoMovieRenderResult {
|
|
12
|
+
/**
|
|
13
|
+
* Render spec snapshot used for the capture.
|
|
14
|
+
*/
|
|
15
|
+
spec: IAutoMovieRenderSpec;
|
|
16
|
+
/**
|
|
17
|
+
* Target duration in seconds.
|
|
18
|
+
*/
|
|
19
|
+
durationSeconds: number;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoMovieRenderAndSeeResult.js","sourceRoot":"","sources":["../src/IAutoMovieRenderAndSeeResult.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { IAutoMovieGuidePassOutput } from "./guidePasses";
|
|
2
|
+
import { IAutoMovieSequenceRenderFrame } from "./sequenceRenderPlan";
|
|
3
|
+
/**
|
|
4
|
+
* One independently renderable slice of a sequence render: a contiguous range of the whole plan's output frames with its own frame directory, paths and encoder invocation.
|
|
5
|
+
*
|
|
6
|
+
* A host can capture and encode one chunk at a time to limit each window's frame files; this declaration and the planner do not execute or bound that host's processes.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/design.md#principled-representation A chunk is a half-open range `[frameStart, frameEnd)` of global output indices with chunk-local file indices, so concatenating chunks in `index` order reproduces the whole schedule and every chunk's frame files start at `frame_00000`.
|
|
9
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The chunk repeats the whole plan's per-render fields (frame directory, first and last frame, input pattern, output path, ffmpeg arguments) so a host renders it with the same code path as an unchunked plan.
|
|
10
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Every sample field of a chunk frame is copied from the whole plan rather than recomputed, so a chunk cannot render differently from the same frames of the unchunked plan, and no chunk position is special-cased.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states what a chunk is for; members give the inclusive and exclusive bounds, the global and chunk-local frames of reference, and when the guide-pass field is present.
|
|
12
|
+
*/
|
|
13
|
+
export interface IAutoMovieRenderChunk {
|
|
14
|
+
/** Zero-based chunk ordinal in capture and concatenation order. */
|
|
15
|
+
index: number;
|
|
16
|
+
/** First global output frame index in this chunk, inclusive. */
|
|
17
|
+
frameStart: number;
|
|
18
|
+
/** One past the last global output frame index in this chunk, exclusive. */
|
|
19
|
+
frameEnd: number;
|
|
20
|
+
/** Number of frames in this chunk, `frameEnd - frameStart`. */
|
|
21
|
+
frameCount: number;
|
|
22
|
+
/** Global output time of this chunk's first frame, in seconds. */
|
|
23
|
+
startSeconds: number;
|
|
24
|
+
/** Global output time of this chunk's last frame, in seconds. */
|
|
25
|
+
endSeconds: number;
|
|
26
|
+
/**
|
|
27
|
+
* The chunk's frames. Each carries a chunk-local {@link IAutoMovieSequenceRenderFrame.index} and `path`, while every sample field (`timeSeconds`, `shot`, `shotTimeSeconds`, `blend`) is copied from the whole plan, preserving the same sampling inputs as those unchunked frames.
|
|
28
|
+
*/
|
|
29
|
+
frames: IAutoMovieSequenceRenderFrame[];
|
|
30
|
+
/** Directory this chunk's frame files are written to. */
|
|
31
|
+
frameDir: string;
|
|
32
|
+
/** Path of the chunk's first frame file. */
|
|
33
|
+
firstFrame: string;
|
|
34
|
+
/** Path of the chunk's last frame file. */
|
|
35
|
+
lastFrame: string;
|
|
36
|
+
/** Ffmpeg input pattern matching this chunk's frame files. */
|
|
37
|
+
inputPattern: string;
|
|
38
|
+
/**
|
|
39
|
+
* This chunk's encoded video path: the whole plan's output path tagged with the chunk label before its extension.
|
|
40
|
+
*/
|
|
41
|
+
outputPath: string;
|
|
42
|
+
/** Exact ffmpeg argument vector that encodes this chunk's frames. */
|
|
43
|
+
ffmpegArgs: string[];
|
|
44
|
+
/**
|
|
45
|
+
* Per-pass output locations inside this chunk's frame directory, with chunk-local indices; present only when the plan requested guide passes. The `beauty` pass's untagged paths coincide with {@link frames}' paths, because it is the base capture, and tagged passes sit beside them, such as `frame_00000.depth.png`.
|
|
46
|
+
*/
|
|
47
|
+
passOutputs?: IAutoMovieGuidePassOutput[];
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoMovieRenderChunk.js","sourceRoot":"","sources":["../src/IAutoMovieRenderChunk.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { IAutoMovieRenderChunk } from "./IAutoMovieRenderChunk";
|
|
2
|
+
import type { IAutoMovieRenderPassManifest } from "./IAutoMovieRenderPassManifest";
|
|
3
|
+
import type { IAutoMovieRenderReassembly } from "./IAutoMovieRenderReassembly";
|
|
4
|
+
import { IAutoMovieSequenceRenderPlan } from "./sequenceRenderPlan";
|
|
5
|
+
/**
|
|
6
|
+
* A long sequence render split into independently renderable chunks plus the plan to reassemble them.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/design.md#principled-representation The plan keeps the whole render's identity, rate and frame total beside the chunks, so a host can check that the chunks cover the render before reassembling it.
|
|
9
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Chunks, the video reassembly and the optional pass manifests are separate fields because the beauty video and tagged frame sequences finish differently.
|
|
10
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Absent `passManifests` means no passes were requested, and the plan carries no host-specific field.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states what the plan holds; members state what is copied from the whole plan, the shorter last chunk, and when pass manifests are present and how beauty and tagged passes finish.
|
|
12
|
+
*/
|
|
13
|
+
export interface IAutoMovieRenderChunkPlan {
|
|
14
|
+
/** Render target identity, copied from the whole plan. */
|
|
15
|
+
target: IAutoMovieSequenceRenderPlan["target"];
|
|
16
|
+
/** Output frames per second, copied from the whole plan. */
|
|
17
|
+
renderFps: number;
|
|
18
|
+
/** Total output frames across all chunks, equal to the whole plan's. */
|
|
19
|
+
frameCount: number;
|
|
20
|
+
/** Frames per chunk; the last chunk may be shorter. */
|
|
21
|
+
chunkFrames: number;
|
|
22
|
+
/** Number of chunks, `ceil(frameCount / chunkFrames)`. */
|
|
23
|
+
chunkCount: number;
|
|
24
|
+
/** The chunks, in capture order. */
|
|
25
|
+
chunks: IAutoMovieRenderChunk[];
|
|
26
|
+
/** How to stitch the chunk videos into the final video. */
|
|
27
|
+
reassembly: IAutoMovieRenderReassembly;
|
|
28
|
+
/**
|
|
29
|
+
* Per-pass whole-timeline walk orders, present only when guide passes were requested. The `beauty` pass has a video-concatenation plan through {@link reassembly}; tagged passes remain frame sequences whose walk order describes their reassembly for a consuming host.
|
|
30
|
+
*/
|
|
31
|
+
passManifests?: IAutoMovieRenderPassManifest[];
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoMovieRenderChunkPlan.js","sourceRoot":"","sources":["../src/IAutoMovieRenderChunkPlan.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AutoMovieGuidePass } from "@automovie/interface";
|
|
2
|
+
/**
|
|
3
|
+
* One guide pass's whole-timeline walk order across the chunks: how a host visits every frame of the pass without a video concatenation.
|
|
4
|
+
*
|
|
5
|
+
* Tagged passes end as frame sequences, so this manifest describes their reassembly; the per-chunk input patterns let a host that wants a video encode one per chunk.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/development/design.md#principled-representation Two arrays parallel to the chunk list describe the walk, because the chunk directories already order the frames and the pass tag only changes the file pattern inside each directory.
|
|
8
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The manifest carries only directories, patterns and the total, and leaves frame-level paths to each chunk's `passOutputs`.
|
|
9
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts The beauty pass gets a manifest like every other pass, and no pass name is treated specially here; the beauty pass additionally reassembles as video through the concat plan.
|
|
10
|
+
* @evidence contracts/development/common.md#meaningful-documentation The prose states that this is how a tagged pass is reassembled and why patterns are included; members state order, parallelism and the frame total.
|
|
11
|
+
*/
|
|
12
|
+
export interface IAutoMovieRenderPassManifest {
|
|
13
|
+
/** The guide pass this manifest walks. */
|
|
14
|
+
pass: AutoMovieGuidePass;
|
|
15
|
+
/** Chunk frame directories in play order. */
|
|
16
|
+
chunkFrameDirs: string[];
|
|
17
|
+
/** Per-chunk ffmpeg input patterns for this pass, parallel to {@link chunkFrameDirs}. */
|
|
18
|
+
inputPatterns: string[];
|
|
19
|
+
/** Total frames of the pass across all chunks, equal to the plan's frame count. */
|
|
20
|
+
frameCount: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAutoMovieRenderPassManifest.js","sourceRoot":"","sources":["../src/IAutoMovieRenderPassManifest.ts"],"names":[],"mappings":""}
|