hyperframes 0.8.212 → 0.8.213
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-JSM7YBQX.js → add-GRJ6BQMO.js} +11 -11
- package/dist/{agentPromptGenerator-NTPYCKOI.js → agentPromptGenerator-2HTUGEKK.js} +6 -6
- package/dist/{animatedGifPrep-XTK7UWXF.js → animatedGifPrep-7KPZBZXD.js} +6 -6
- package/dist/api.js +16 -16
- package/dist/{asset-SMY2EGPH.js → asset-YVIFFWCU.js} +2 -2
- package/dist/{assetCataloger-CVPWY34W.js → assetCataloger-IZW7LPCT.js} +7 -7
- package/dist/{audio-Y4OYLTWN.js → audio-X7274SUF.js} +307 -202
- package/dist/{auth-MDEHZR7R.js → auth-II6SIDJD.js} +1 -1
- package/dist/{autoUpdate-3FL6EDPM.js → autoUpdate-WJIT74BG.js} +2 -2
- package/dist/{backgroundChecks-A6TG2BT3.js → backgroundChecks-NMKJAES7.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-K2PBRRTQ.js → batchRender-I7GRY73M.js} +3 -3
- package/dist/{beats-RA6XK6J5.js → beats-6VXALJZT.js} +9 -9
- package/dist/{benchmark-EHU5O4PP.js → benchmark-RLIRA74V.js} +8 -8
- package/dist/{browser-7RUIZT2H.js → browser-7T3JMNTR.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-O2U2FYY2.js → bundleWithLocalizedFonts-C2LP6QZZ.js} +2 -2
- package/dist/{capture-77KDKKNK.js → capture-OZFDTN4A.js} +45 -16
- package/dist/{capture-JGYBORAG.js → capture-V4HWHG7C.js} +4 -4
- package/dist/{captureCompositionFrame-DZ7EHPZV.js → captureCompositionFrame-WZAVXCRQ.js} +11 -11
- package/dist/{catalog-CUP3SYAI.js → catalog-UFC7JS4T.js} +11 -11
- package/dist/{catch-up-ZGUCWH5Q.js → catch-up-YBNKJDWJ.js} +4 -4
- package/dist/{check-ITGFVBT6.js → check-ESQJHRGA.js} +36 -36
- package/dist/{checkAudio-CTLPD6YT.js → checkAudio-OIIBWFBF.js} +26 -11
- package/dist/{checkBrowser-G2N4JI6N.js → checkBrowser-WAWL6TKX.js} +30 -30
- package/dist/{chunk-N3J2MLXC.js → chunk-2GS2RUVI.js} +2 -2
- package/dist/{chunk-SXTWQ7CH.js → chunk-2WELGDXU.js} +3 -3
- package/dist/{chunk-PW7FCVHR.js → chunk-3OYLHBQZ.js} +1 -1
- package/dist/{chunk-U46JEU26.js → chunk-4645UHJF.js} +1 -0
- package/dist/{chunk-3YBXKWAF.js → chunk-46HYDDZ5.js} +1 -1
- package/dist/{chunk-WVIH5BBZ.js → chunk-4BXPCS5B.js} +13 -13
- package/dist/{chunk-6SG3RRAQ.js → chunk-53VXGZ3L.js} +2 -2
- package/dist/{chunk-UBUKKTNW.js → chunk-5ODMV7X6.js} +2 -2
- package/dist/{chunk-YRO3PXWU.js → chunk-6CGYINE7.js} +97 -2
- package/dist/{chunk-EC77ZBCP.js → chunk-76T7KAYD.js} +1 -1
- package/dist/{chunk-7Q5TBUC2.js → chunk-7I5N36JA.js} +2 -2
- package/dist/{chunk-AJAXP4HF.js → chunk-7JWRVKN4.js} +1 -1
- package/dist/{chunk-UE4CXHMF.js → chunk-7LOVQRUJ.js} +3 -3
- package/dist/{chunk-QUXWS5UG.js → chunk-AJ3QW6RX.js} +12 -5
- package/dist/{chunk-W55BW7KA.js → chunk-BE6XXZAR.js} +8 -8
- package/dist/{chunk-RDZKBIEB.js → chunk-BVHNFPRF.js} +2 -2
- package/dist/{chunk-ORJY6Z6G.js → chunk-CLA4XSBO.js} +3 -3
- package/dist/{chunk-P2VGMOX7.js → chunk-D3Q2TABU.js} +1 -1
- package/dist/{chunk-DS7ANFBV.js → chunk-DJFEYX23.js} +1 -1
- package/dist/{chunk-ZCYSQ3NQ.js → chunk-DKEZSH6M.js} +2 -2
- package/dist/{chunk-25MKZTRT.js → chunk-DQ26IA5P.js} +1 -1
- package/dist/{chunk-YVT5IU6J.js → chunk-ENE4IKFX.js} +9 -9
- package/dist/{chunk-N7XJHZ35.js → chunk-EQ66MVWZ.js} +1 -1
- package/dist/{chunk-64XQS7AP.js → chunk-F4EX52FU.js} +1 -1
- package/dist/{chunk-JZNQQI5M.js → chunk-FGIMC5I4.js} +5 -5
- package/dist/{chunk-DXPC7Z6L.js → chunk-FHO3FXTW.js} +1 -1
- package/dist/{chunk-NXDKBFEO.js → chunk-GNSNCIHF.js} +13 -13
- package/dist/{chunk-GVE6I5EL.js → chunk-H3I2VLLL.js} +13 -1
- package/dist/{chunk-UYEZTK4U.js → chunk-HPTFD6MO.js} +10 -10
- package/dist/{chunk-45JN2GIZ.js → chunk-HWHPYCBZ.js} +1 -1
- package/dist/{chunk-T7KNW7PE.js → chunk-I3G45TWG.js} +1 -1
- package/dist/{chunk-R5B6GXQM.js → chunk-IHYWP4V5.js} +1 -1
- package/dist/{chunk-MX2GMAAW.js → chunk-ISMOBMWF.js} +34 -23
- package/dist/{chunk-UXH6E5HC.js → chunk-KL2UJXCY.js} +2 -2
- package/dist/{chunk-YACECUHX.js → chunk-KSMCX5EP.js} +3 -3
- package/dist/{chunk-OL5E4Y4L.js → chunk-KVFOQ3EM.js} +46 -23
- package/dist/{chunk-BYRXSKIY.js → chunk-KY67MTBH.js} +1 -1
- package/dist/{chunk-GQ724553.js → chunk-L34IH4SH.js} +4 -4
- package/dist/{chunk-OSCWTA2O.js → chunk-LALMFSLB.js} +5 -5
- package/dist/{chunk-MJCIAZSK.js → chunk-LGDRKQKL.js} +1 -1
- package/dist/{chunk-XGXTZNES.js → chunk-LTQXIYNL.js} +2 -2
- package/dist/{chunk-XEWMJWNW.js → chunk-LYON3VGF.js} +2 -2
- package/dist/{chunk-V6OSE6VT.js → chunk-MBSESQED.js} +1 -1
- package/dist/{chunk-SPDSRBIN.js → chunk-MFC2PE7D.js} +1 -1
- package/dist/{chunk-DVVTBVKA.js → chunk-N3MOQTRS.js} +7 -7
- package/dist/chunk-N3ZAIZF3.js +4870 -0
- package/dist/{chunk-JLGVBK5M.js → chunk-N4XNRHFM.js} +18 -4
- package/dist/{chunk-A2WPZE2R.js → chunk-NGJS5H5E.js} +1 -1
- package/dist/{chunk-7ZAVTGGT.js → chunk-NP4G4WPP.js} +9 -9
- package/dist/{chunk-NGSENR4J.js → chunk-O63A26XQ.js} +1 -1
- package/dist/{chunk-YX5ELTKV.js → chunk-PAZ7WUYZ.js} +2 -2
- package/dist/{chunk-F5XADOGC.js → chunk-QHWVCKC5.js} +1 -1
- package/dist/{chunk-CODPTVC2.js → chunk-S3ZWVEGQ.js} +1 -1
- package/dist/{chunk-Y3U7ECBH.js → chunk-STK62RL7.js} +1 -1
- package/dist/{chunk-RJILJ4OR.js → chunk-SZOCI3JJ.js} +2 -2
- package/dist/{chunk-FW6CYA5D.js → chunk-TCCCAEZD.js} +2 -2
- package/dist/{chunk-W2VJTKIW.js → chunk-TDNPJHEQ.js} +7 -7
- package/dist/{chunk-7W7ANGR4.js → chunk-TLXK5A2N.js} +18 -18
- package/dist/{chunk-RQC4PHO3.js → chunk-TWCICOCI.js} +1 -1
- package/dist/{chunk-HXZNCXQX.js → chunk-UBDO4EHA.js} +9 -0
- package/dist/{chunk-BLVHVXRU.js → chunk-V2H5UABS.js} +3 -3
- package/dist/{chunk-2YDIEZSF.js → chunk-VTX27LET.js} +3 -3
- package/dist/{chunk-TPO32Z65.js → chunk-WSEPFRJV.js} +1 -1
- package/dist/{chunk-UULZKCBI.js → chunk-XNY2KI2Z.js} +1 -1
- package/dist/{chunk-5TQ4AEPF.js → chunk-Z65ZQYBW.js} +3 -3
- package/dist/{chunk-3JQ2YOKL.js → chunk-Z7QHOT65.js} +1 -1
- package/dist/{chunk-J7GPSY5N.js → chunk-ZGG53XZX.js} +5 -5
- package/dist/{chunk-VKD23SIO.js → chunk-ZSRNM6LP.js} +1 -1
- package/dist/{chunk-KZZWYIEB.js → chunk-ZTCILR3V.js} +1 -1
- package/dist/{clean-FBZ7GHRY.js → clean-XBQ54UZX.js} +16 -16
- package/dist/cli.js +62 -59
- package/dist/{cloud-VYSWJ7UO.js → cloud-E2GUGXXL.js} +4 -4
- package/dist/{cloudrun-U6LI7KLV.js → cloudrun-IAPFT66T.js} +4 -4
- package/dist/commands/layout-audit.browser.js +7 -10
- package/dist/{compare-YR7BMEHJ.js → compare-2VPIOCLV.js} +27 -27
- package/dist/{compiler-6YCAUK7Z.js → compiler-3ED6KJYN.js} +3 -3
- package/dist/{component-HVSM6FJV.js → component-IH2KSDNM.js} +3 -3
- package/dist/{compositions-QTFL2VNL.js → compositions-MIMF2GM3.js} +10 -10
- package/dist/{delete-2FHCQ72T.js → delete-5H5EYSYK.js} +2 -2
- package/dist/{deploy-6S45QWG6.js → deploy-DMQT34K2.js} +1 -1
- package/dist/{deterministicFonts-LKAGUNE5.js → deterministicFonts-2ISM3LMW.js} +1 -1
- package/dist/{dist-B4KLCLZ5.js → dist-ANQ2CIIO.js} +2 -2
- package/dist/{dist-NCI6JOJZ.js → dist-OKQM7BQ3.js} +3 -1
- package/dist/{doctor-4MRS6RED.js → doctor-MTRZJQZZ.js} +10 -10
- package/dist/{events-4VBBY7PP.js → events-2GNMM2YS.js} +2 -2
- package/dist/{events-FN45HVPM.js → events-TBKM6B5H.js} +5 -3
- package/dist/{feedback-T67P2CDA.js → feedback-6NNSKXQP.js} +7 -7
- package/dist/{ffmpeg-ED7ZK6XH.js → ffmpeg-622QCJLB.js} +6 -6
- package/dist/{figma-UXAWKPOY.js → figma-TFHZ3N5A.js} +3 -3
- package/dist/fontLocalizeCli.js +10 -10
- package/dist/{get-EFH3PPJA.js → get-P6RA7MAU.js} +2 -2
- package/dist/{gpuPolicy-ZADQMXQT.js → gpuPolicy-CK2XDEAM.js} +6 -6
- package/dist/{grade-compare-425BFHSF.js → grade-compare-LK6U7OJD.js} +28 -28
- package/dist/{heifImagePrep-ZJM7N2XY.js → heifImagePrep-3OXKQUEZ.js} +7 -7
- package/dist/{help-23PPB2BD.js → help-YENCFXYK.js} +1 -1
- package/dist/{history-CHJV33M5.js → history-V3E4UCMY.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +64 -64
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-36YPISVA.js → info-ZGKQMX3Z.js} +7 -7
- package/dist/{init-U6EE2EIU.js → init-D6PJI2TA.js} +26 -26
- package/dist/{inspect-NI2RMUFR.js → inspect-UCHLILOX.js} +28 -28
- package/dist/{installer-K3HIZ5CF.js → installer-CV2OKJFW.js} +4 -4
- package/dist/{keyframes-I6T2IT6I.js → keyframes-2IJTDJ7K.js} +6 -6
- package/dist/{lambda-WL64Z2F3.js → lambda-GKZBKWTK.js} +10 -10
- package/dist/{layout-R2YZ4N6P.js → layout-KKPRCTME.js} +28 -28
- package/dist/{lint-IAAG6Z65.js → lint-NAC6M4NT.js} +7 -7
- package/dist/{lintProject-EM7Y2ZRB.js → lintProject-MSATZIK7.js} +1 -1
- package/dist/{list-3O6743DJ.js → list-QRMXOTNB.js} +2 -2
- package/dist/{localPage-L5FRBCNP.js → localPage-KMXALM7A.js} +6 -6
- package/dist/{login-27TRFTYB.js → login-GBN5ZMEA.js} +4 -4
- package/dist/{manager-D6TE4ENP.js → manager-GPDDRQIW.js} +7 -7
- package/dist/{media-treatment-E3YLZVXC.js → media-treatment-4Q7G27JJ.js} +12 -12
- package/dist/{models-2Q3TGNH5.js → models-7KJF4LYJ.js} +10 -10
- package/dist/{motionShot-XYW2HMVI.js → motionShot-DQAX2QTZ.js} +14 -14
- package/dist/{normalize-audio-D5WNUNDM.js → normalize-audio-K7VCJQYJ.js} +8 -8
- package/dist/{open-3KO7UUPC.js → open-ZSBVR3KC.js} +11 -11
- package/dist/{parakeetRunner-WX6L6MW5.js → parakeetRunner-XXZHJYKO.js} +11 -11
- package/dist/{pipeline-WYIO4KGN.js → pipeline-KNLOS5CL.js} +9 -9
- package/dist/{play-ZM3ZUJSZ.js → play-GQWF7MU5.js} +19 -19
- package/dist/{preflight-7OMCIXNM.js → preflight-UMKQ5C5W.js} +7 -7
- package/dist/{present-E2PLH2GJ.js → present-X7BPH35M.js} +15 -15
- package/dist/{preview-TVRM75FN.js → preview-5Q7HPEOF.js} +17 -17
- package/dist/{producer-M5F6KZEF.js → producer-IXOPGETH.js} +1 -1
- package/dist/{projectConfig-VFKGY3XE.js → projectConfig-YGI5AINR.js} +6 -6
- package/dist/{publication-AF33R7LF.js → publication-ZSDCS2ST.js} +2 -2
- package/dist/{publish-Z7HGDQ5R.js → publish-S2IIRPFZ.js} +10 -10
- package/dist/{remove-background-PN3KCBT4.js → remove-background-F2WFDCNM.js} +10 -10
- package/dist/{render-I3HBIJX3.js → render-CHRSSQNM.js} +29 -29
- package/dist/{render-SEODWRRR.js → render-NVHUPEDG.js} +14 -14
- package/dist/{render-IZNPEXMU.js → render-WYBQO4SR.js} +5 -5
- package/dist/{render-batch-MQSORY55.js → render-batch-SDGA2643.js} +5 -5
- package/dist/renderSetupWorker.js +1 -1
- package/dist/{resolver-HXE4F2G4.js → resolver-3W2OPVGC.js} +4 -4
- package/dist/{sherpa-NPT6S3RP.js → sherpa-HCPAOYGA.js} +10 -10
- package/dist/{skills-P3BI55YP.js → skills-KOVM4OP5.js} +5 -5
- package/dist/{skillsUpdateCheck-43Q4ZHWN.js → skillsUpdateCheck-ISMQFMPY.js} +3 -3
- package/dist/{snapshot-YLT64YQS.js → snapshot-K7LVZDHG.js} +303 -88
- package/dist/{src-7S7K4QUN.js → src-FUMXFZYG.js} +9 -9
- package/dist/{src-OHJ7USRX.js → src-QEFKMRH7.js} +9 -5
- package/dist/{staticProjectServer-RP3MW2EW.js → staticProjectServer-MF57NBIU.js} +17 -17
- package/dist/studio/assets/{hyperframes-player-DHfuW7Lt.js → hyperframes-player-Bb6n05RB.js} +1 -1
- package/dist/studio/assets/{index-CkjUY33q.js → index-DOtf09XR.js} +1 -1
- package/dist/studio/assets/{index-CWgIsKzV.js → index-pq574E5O.js} +119 -119
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-BZPZCJL6.js → studio-api-Y4S3W7XE.js} +9 -9
- package/dist/{studioServer-QLRIXNYM.js → studioServer-5LUZQOQV.js} +48 -48
- package/dist/{telemetry-QOBPRUWF.js → telemetry-TJMB5BTF.js} +3 -3
- package/dist/{timeline-OLQFVWVU.js → timeline-CU6CIWYL.js} +17 -17
- package/dist/{tokens-BAHLVGEC.js → tokens-7P4N2FWN.js} +2 -2
- package/dist/{transcribe-3NHUWW4J.js → transcribe-FZ7JK6QS.js} +15 -15
- package/dist/{transcribe-HR6BFDUR.js → transcribe-TFDEQFMG.js} +9 -9
- package/dist/{updateCheck-BGHPCA7J.js → updateCheck-HUDVZHVM.js} +2 -2
- package/dist/{upgrade-NFI6JOME.js → upgrade-KP4RQZKY.js} +2 -2
- package/dist/{urlDownloader-P35K74RS.js → urlDownloader-5SHSHWMB.js} +5 -5
- package/dist/{validate-Q57ZCI4Q.js → validate-VWX423M4.js} +22 -22
- package/dist/{video-OO2M2AKD.js → video-K4L2YFU2.js} +7 -7
- package/dist/warmCheck.js +36 -36
- package/package.json +1 -1
- package/dist/chunk-W5OBRMZ6.js +0 -4870
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
Semaphore,
|
|
9
9
|
prepareHeifImageInputs,
|
|
10
10
|
withMediaProbeSlot
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2GS2RUVI.js";
|
|
12
12
|
import {
|
|
13
13
|
EncoderInterruptedError,
|
|
14
14
|
encoderFailureError,
|
|
15
15
|
prepareAnimatedGifInputs
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PAZ7WUYZ.js";
|
|
17
17
|
import {
|
|
18
18
|
GENERIC_FAMILIES,
|
|
19
19
|
collectFontFamilyCustomProperties,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
iterateFontFamilyDeclarations,
|
|
22
22
|
normalizeSystemFontPrimaryFamilies,
|
|
23
23
|
resolveFontFamilyDeclarationFamilies
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-N4XNRHFM.js";
|
|
25
25
|
import {
|
|
26
26
|
parseEncoderOptions
|
|
27
27
|
} from "./chunk-G6OKQMJI.js";
|
|
@@ -101,6 +101,7 @@ import {
|
|
|
101
101
|
extractVideoFramesRange,
|
|
102
102
|
extractionFrameCountForDuration,
|
|
103
103
|
fetchPublicHttpsText,
|
|
104
|
+
ffmpegSeekSeconds,
|
|
104
105
|
fingerprintElementId,
|
|
105
106
|
formatFfmpegError,
|
|
106
107
|
formatHdrAutoPromotionWarning,
|
|
@@ -170,8 +171,9 @@ import {
|
|
|
170
171
|
validateEngineConfigSnapshot,
|
|
171
172
|
verifyDiskDrawElementSamples,
|
|
172
173
|
videoAudioId,
|
|
174
|
+
videoStartOnMediaTimeline,
|
|
173
175
|
writeCapturedFrame
|
|
174
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-KVFOQ3EM.js";
|
|
175
177
|
import {
|
|
176
178
|
assignBundledRuntimeCompositionIds,
|
|
177
179
|
emitMountedModuleScripts,
|
|
@@ -183,7 +185,7 @@ import {
|
|
|
183
185
|
parsesAsScript,
|
|
184
186
|
prepareFlattenedInnerRoot,
|
|
185
187
|
stripSdrPngColourTags
|
|
186
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-AJ3QW6RX.js";
|
|
187
189
|
import {
|
|
188
190
|
collectScratchLeftovers,
|
|
189
191
|
removeScratch,
|
|
@@ -204,7 +206,7 @@ import {
|
|
|
204
206
|
parseVfxChain,
|
|
205
207
|
resolveAuthoredTimingWindow,
|
|
206
208
|
toFps
|
|
207
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-KY67MTBH.js";
|
|
208
210
|
import {
|
|
209
211
|
COMPOSITION_SOURCE_URL,
|
|
210
212
|
HF_COLOR_GRADING_ATTR,
|
|
@@ -239,7 +241,7 @@ import {
|
|
|
239
241
|
sourceTimeAt,
|
|
240
242
|
styleElementsFor,
|
|
241
243
|
timeAtSourceTime
|
|
242
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-N3ZAIZF3.js";
|
|
243
245
|
import {
|
|
244
246
|
TRANSITIONS,
|
|
245
247
|
convertTransfer,
|
|
@@ -255,7 +257,7 @@ import {
|
|
|
255
257
|
import {
|
|
256
258
|
lintHyperframeHtml,
|
|
257
259
|
resolveReferencedStart
|
|
258
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-4645UHJF.js";
|
|
259
261
|
import {
|
|
260
262
|
isUnresolvedAssetPlaceholder,
|
|
261
263
|
readProjectFile,
|
|
@@ -2609,7 +2611,7 @@ async function blitHdrVideoLayer(canvas, el, time, fps, hdrVideoFrameSources, hd
|
|
|
2609
2611
|
);
|
|
2610
2612
|
if (effectiveIndex === null) return;
|
|
2611
2613
|
const mediaTime = (frameSource.mediaStart ?? 0) + effectiveIndex / fps;
|
|
2612
|
-
if (isVideoHiddenBeforeStreamStart(frameSource.
|
|
2614
|
+
if (isVideoHiddenBeforeStreamStart(frameSource.videoStartSeconds, mediaTime)) return;
|
|
2613
2615
|
if (hdrPerf) hdrPerf.hdrVideoLayerBlits += 1;
|
|
2614
2616
|
const lease = await frameSource.windows.lease(effectiveIndex);
|
|
2615
2617
|
if (!lease) return;
|
|
@@ -3327,10 +3329,7 @@ async function extractHdrVideoFrames(args) {
|
|
|
3327
3329
|
initialWindow,
|
|
3328
3330
|
abortSignal
|
|
3329
3331
|
);
|
|
3330
|
-
extractionWindows.set(videoId, {
|
|
3331
|
-
window: window2,
|
|
3332
|
-
videoStreamLeadSeconds: metadata.videoStreamLeadSeconds
|
|
3333
|
-
});
|
|
3332
|
+
extractionWindows.set(videoId, { window: window2, metadata });
|
|
3334
3333
|
prep.hdrVideoStartTimes.set(videoId, window2.compositionStart);
|
|
3335
3334
|
const frameSize = dims.width * dims.height * 6;
|
|
3336
3335
|
const frames = window2.finalFrameOnly ? 1 : Math.ceil(window2.durationSeconds * fps);
|
|
@@ -3348,15 +3347,16 @@ async function extractHdrVideoFrames(args) {
|
|
|
3348
3347
|
const video = composition.videos.find((v) => v.id === videoId);
|
|
3349
3348
|
const planned = extractionWindows.get(videoId);
|
|
3350
3349
|
if (!video || !planned) continue;
|
|
3351
|
-
const { window: window2 } = planned;
|
|
3350
|
+
const { window: window2, metadata } = planned;
|
|
3352
3351
|
mkdirSync2(framesDir, { recursive: true });
|
|
3353
3352
|
const frameDir = mkdtempSync2(join8(framesDir, `hdr_${tempDirSafePrefix(videoId)}-`));
|
|
3354
3353
|
createdFrameDirs.add(frameDir);
|
|
3355
3354
|
const dims = prep.hdrExtractionDims.get(videoId) ?? { width, height };
|
|
3356
3355
|
const frameSize = dims.width * dims.height * 6;
|
|
3357
3356
|
const extractionMediaStart = window2.extractionMediaStart ?? window2.mediaStart;
|
|
3357
|
+
const ffmpegSeek = ffmpegSeekSeconds(metadata, extractionMediaStart);
|
|
3358
3358
|
const scale = `scale=${dims.width}:${dims.height}:force_original_aspect_ratio=increase,crop=${dims.width}:${dims.height}`;
|
|
3359
|
-
const firstTick = window2.finalFrameOnly ? 0 : await probeFirstTick(srcPath,
|
|
3359
|
+
const firstTick = window2.finalFrameOnly ? 0 : await probeFirstTick(srcPath, ffmpegSeek, fps, runFfmpegImpl, abortSignal);
|
|
3360
3360
|
const totalFrames = window2.finalFrameOnly ? 1 : Math.max(1, Math.ceil(window2.durationSeconds * fps - firstTick - 1e-9)) + Number(video.loop);
|
|
3361
3361
|
const windowFrames = Math.min(totalFrames, hdrWindowFrames(frameSize, windowBytes));
|
|
3362
3362
|
const windows = createHdrFrameWindows({
|
|
@@ -3369,10 +3369,19 @@ async function extractHdrVideoFrames(args) {
|
|
|
3369
3369
|
const ffmpegArgs = window2.finalFrameOnly ? (
|
|
3370
3370
|
// Decode before seeking for the one-frame path. Input-side seeking can
|
|
3371
3371
|
// return zero frames for valid unindexed/negative-base transports.
|
|
3372
|
-
[
|
|
3372
|
+
[
|
|
3373
|
+
"-i",
|
|
3374
|
+
srcPath,
|
|
3375
|
+
"-ss",
|
|
3376
|
+
String(Math.max(0, ffmpegSeek)),
|
|
3377
|
+
"-frames:v",
|
|
3378
|
+
"1",
|
|
3379
|
+
"-vf",
|
|
3380
|
+
scale
|
|
3381
|
+
]
|
|
3373
3382
|
) : hdrWindowFfmpegArgs({
|
|
3374
3383
|
srcPath,
|
|
3375
|
-
|
|
3384
|
+
ffmpegSeek,
|
|
3376
3385
|
fps,
|
|
3377
3386
|
fpsArg: fpsToFfmpegArg(job.config.fps),
|
|
3378
3387
|
firstTick,
|
|
@@ -3422,7 +3431,7 @@ async function extractHdrVideoFrames(args) {
|
|
|
3422
3431
|
scratch: Buffer.allocUnsafe(frameSize),
|
|
3423
3432
|
loop: video.loop,
|
|
3424
3433
|
mediaStart: extractionMediaStart,
|
|
3425
|
-
|
|
3434
|
+
videoStartSeconds: videoStartOnMediaTimeline(metadata)
|
|
3426
3435
|
});
|
|
3427
3436
|
}
|
|
3428
3437
|
return { sources: out, estimatedBytes, releaseReservation };
|
|
@@ -3445,7 +3454,7 @@ function hdrWindowFfmpegArgs(a) {
|
|
|
3445
3454
|
const filters = [`fps=${a.fpsArg}:start_time=${(a.firstTick / a.fps).toFixed(6)}`, a.scale];
|
|
3446
3455
|
if (trim > 0) filters.push(`trim=start_frame=${trim}`);
|
|
3447
3456
|
return [
|
|
3448
|
-
...["-ss", (a.
|
|
3457
|
+
...["-ss", (a.ffmpegSeek + seekFrame / a.fps).toFixed(6), "-i", a.srcPath],
|
|
3449
3458
|
...["-vf", filters.join(","), "-frames:v", String(a.frames), "-fps_mode", "passthrough"]
|
|
3450
3459
|
];
|
|
3451
3460
|
}
|
|
@@ -5928,7 +5937,7 @@ function placeAudio(audio, window2) {
|
|
|
5928
5937
|
}
|
|
5929
5938
|
|
|
5930
5939
|
// ../core/dist/generated/position-edits-render-inline.js
|
|
5931
|
-
var POSITION_EDITS_RENDER_IIFE = '"use strict";(()=>{function x(){return globalThis}function
|
|
5940
|
+
var POSITION_EDITS_RENDER_IIFE = '"use strict";(()=>{function x(){return globalThis}function T(e,t){if(typeof window>"u")return;let o=x(),r=o.__hf?.onSwallowed;if(r)try{r({label:e,error:t})}catch(s){}(o.__hfDebug||o.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${e} swallowed:`,t)}var P=null;function R(e,t){if(P)try{P({source:"hf-preview",type:"analytics",event:e,properties:t??{}})}catch(o){T("runtime.analytics.site1",o)}}var I="http://www.w3.org/1999/xhtml";function N(e){return e!=null&&e.nodeType===1}function _(e){return N(e)&&(e.namespaceURI===I||e.namespaceURI==="http://www.w3.org/2000/svg")}var y="data-hf-edit-base-x",w="data-hf-edit-base-y",m="data-hf-edit-original-translate",k=e=>{let t=parseFloat(e??"");return Number.isFinite(t)?t:0},C=e=>{let t=[],o=0,r="";for(let s of e.trim())s==="("&&(o+=1),s===")"&&(o=Math.max(0,o-1)),/\\s/.test(s)&&o===0?(r&&t.push(r),r=""):r+=s;return r&&t.push(r),t},$=/^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)px$/,E=(e,t)=>$.test(e)&&$.test(t)?`${parseFloat(e)+parseFloat(t)}px`:`calc(${e} + ${t})`,O=(e,t,o)=>{if(!e||e==="none")return`${t} ${o}`;let[r,s,a]=C(e);if(r===void 0)return`${t} ${o}`;if(s===void 0)return`${E(r,t)} ${o}`;let i=a===void 0?"":` ${a}`;return`${E(r,t)} ${E(s,o)}${i}`},j=e=>{try{e.ownerDocument.defaultView?.gsap?.getProperty?.(e,"x")}catch{}},V=e=>{let t=e.style.getPropertyValue("translate").trim();if(t)return t==="none"?"":t;try{let o=e.ownerDocument.defaultView,r=o?o.getComputedStyle(e).getPropertyValue("translate").trim():"";return r==="none"?"":r}catch{return""}},b=new WeakMap;function B(e,t){let o=b.get(e);if(!t?.force&&o!==void 0&&e.style.getPropertyValue("translate")!==o){R("position_edit_fold_skipped",{hfId:e.getAttribute("data-hf-id")});return}let r=k(e.getAttribute("data-x"))-k(e.getAttribute(y)),s=k(e.getAttribute("data-y"))-k(e.getAttribute(w));e.hasAttribute(m)||e.setAttribute(m,V(e)),o===void 0&&j(e);let a=e.getAttribute(m)??"",i=O(a,`${r}px`,`${s}px`);e.style.setProperty("translate",i),b.set(e,e.style.getPropertyValue("translate"))}function S(e,t){let o=e.querySelectorAll(`[${m}]:not([${y}]):not([${w}])`);for(let a=0;a<o.length;a++){let i=o[a];if(i===void 0||!_(i))continue;let g=i.getAttribute(m)??"";g===""?i.style.removeProperty("translate"):i.style.setProperty("translate",g),i.removeAttribute(m),b.delete(i)}let r=e.querySelectorAll(`[${y}], [${w}]`),s=0;for(let a=0;a<r.length;a++){let i=r[a];i===void 0||!_(i)||(B(i,t),s+=1)}return s}var L="__hfPositionEditsSeekReapplyWrapped",D=new WeakSet,F=new WeakMap,H=new WeakMap;function M(e){let t=e,o=()=>{try{S(t.document)}catch{}},r=n=>typeof n=="function"&&(D.has(n)||!!n[L]),s=n=>{D.add(n);try{Object.defineProperty(n,L,{value:!0})}catch{}},a=n=>{if(typeof n!="function"||r(n))return n;let l=function(...u){let d=n.apply(this,u);return o(),d};return s(l),l},i=(n,l)=>{let u=F.get(n);if(u?.has(l))return!0;let d=Object.getOwnPropertyDescriptor(n,l);if(d?.configurable===!1){let c=n[l];return typeof c=="function"&&(n[l]=a(c),o()),!1}let p=n[l],f=d?.set;return Object.defineProperty(n,l,{configurable:!0,enumerable:d?.enumerable??!0,get:()=>p,set:c=>{p=a(c),f?.call(n,c)}}),p=a(p),u??(u=new Set),u.add(l),F.set(n,u),o(),!0},g=(n,l)=>{let u=H.get(t),d=Object.getOwnPropertyDescriptor(t,n);if(!u?.has(n)){if(d?.configurable===!1){let c=t[n];return c?i(c,l):!1}let f=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:d?.enumerable??!0,get:()=>f,set:c=>{f=c,f&&i(f,l)}}),u??(u=new Set),u.add(n),H.set(t,u)}let p=t[n];return p?i(p,l):!1},h=()=>{let n=g("__hf","seek"),l=g("__player","renderSeek");return n&&l};if(h())return;let v=120,A=t.setInterval(()=>{if(h()){t.clearInterval(A);return}v-=1,v<=0&&t.clearInterval(A)},50)}function W(){document.querySelector(`[${y}], [${w}]`)&&(S(document),M(window))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",W,{once:!0}):W();})();\n';
|
|
5932
5941
|
function getPositionEditsRenderScript() {
|
|
5933
5942
|
return POSITION_EDITS_RENDER_IIFE;
|
|
5934
5943
|
}
|
|
@@ -7082,7 +7091,7 @@ async function readLocalFont(absPath) {
|
|
|
7082
7091
|
return { kind: "inline", buffer: Buffer.concat(chunks, totalBytes) };
|
|
7083
7092
|
}
|
|
7084
7093
|
async function embedLocalFontFaces(html, projectDir) {
|
|
7085
|
-
const { fontToDataUri: toDataUri } = await import("./deterministicFonts-
|
|
7094
|
+
const { fontToDataUri: toDataUri } = await import("./deterministicFonts-2ISM3LMW.js");
|
|
7086
7095
|
const styleBlockRe = /<style\b[^>]*>([\s\S]*?)<\/style>/gi;
|
|
7087
7096
|
const fontFaceRe = /@font-face\s*\{([^}]*)\}/gi;
|
|
7088
7097
|
let result = html;
|
|
@@ -8501,6 +8510,7 @@ function validateNoGpuEncode(config) {
|
|
|
8501
8510
|
function validateNoSystemFonts(compiledHtml) {
|
|
8502
8511
|
const customProperties = collectFontFamilyCustomProperties(compiledHtml);
|
|
8503
8512
|
for (const { surface, declaration } of iterateFontFamilyDeclarations(compiledHtml)) {
|
|
8513
|
+
if (surface === "font") continue;
|
|
8504
8514
|
const families = resolveFontFamilyDeclarationFamilies(declaration, customProperties);
|
|
8505
8515
|
if (families.length === 0) continue;
|
|
8506
8516
|
const primaryRaw = families[0];
|
|
@@ -14338,6 +14348,7 @@ function readVideoMetadata(value, field) {
|
|
|
14338
14348
|
// while carrying non-zero edit-list/transport timestamps in new plans.
|
|
14339
14349
|
videoStreamStartSeconds: record.videoStreamStartSeconds === void 0 ? 0 : readFiniteNumber(record.videoStreamStartSeconds, `${field}.videoStreamStartSeconds`),
|
|
14340
14350
|
videoStreamLeadSeconds: record.videoStreamLeadSeconds === void 0 ? 0 : readFiniteNumber(record.videoStreamLeadSeconds, `${field}.videoStreamLeadSeconds`),
|
|
14351
|
+
mediaTimeOffsetSeconds: record.mediaTimeOffsetSeconds === void 0 ? 0 : readFiniteNumber(record.mediaTimeOffsetSeconds, `${field}.mediaTimeOffsetSeconds`),
|
|
14341
14352
|
width: readPositiveInteger(record.width, `${field}.width`),
|
|
14342
14353
|
height: readPositiveInteger(record.height, `${field}.height`),
|
|
14343
14354
|
fps: readFiniteNumber(record.fps, `${field}.fps`),
|
|
@@ -16412,7 +16423,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
|
|
|
16412
16423
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
16413
16424
|
if (probeResult.probeSession) {
|
|
16414
16425
|
try {
|
|
16415
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
16426
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-QEFKMRH7.js");
|
|
16416
16427
|
await closeCaptureSession2(probeResult.probeSession);
|
|
16417
16428
|
} catch (err) {
|
|
16418
16429
|
log.warn("[plan] probe session close failed", {
|
|
@@ -18144,7 +18155,7 @@ function startServer(options = {}) {
|
|
|
18144
18155
|
});
|
|
18145
18156
|
async function shutdown(signal) {
|
|
18146
18157
|
log.info(`Received ${signal}, shutting down`);
|
|
18147
|
-
const { drainBrowserPool } = await import("./src-
|
|
18158
|
+
const { drainBrowserPool } = await import("./src-QEFKMRH7.js");
|
|
18148
18159
|
await drainBrowserPool().catch(() => {
|
|
18149
18160
|
});
|
|
18150
18161
|
const handle = await Promise.race([
|
|
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = true ? "0.8.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.8.
|
|
9
|
+
var VERSION = true ? "0.8.213" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.8.213" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-H3I2VLLL.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-76T7KAYD.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
|
|
|
84
84
|
try {
|
|
85
85
|
const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
|
|
86
86
|
import("./system-MVRF5UM2.js"),
|
|
87
|
-
import("./ffmpeg-
|
|
87
|
+
import("./ffmpeg-622QCJLB.js")
|
|
88
88
|
]);
|
|
89
89
|
const sys = getSystemMeta();
|
|
90
90
|
const parts = [
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
renderFrameIdForRenderId,
|
|
41
41
|
resolveAuthoredTimingWindow,
|
|
42
42
|
toFps
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-KY67MTBH.js";
|
|
44
44
|
import {
|
|
45
45
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
46
46
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
sourceTimeAt,
|
|
84
84
|
timeAtSourceTime,
|
|
85
85
|
volumeSegmentSampleCount
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-N3ZAIZF3.js";
|
|
87
87
|
import {
|
|
88
88
|
redactTelemetryString,
|
|
89
89
|
redactUrlQueryStrings
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
} from "./chunk-WE42NVH7.js";
|
|
102
102
|
import {
|
|
103
103
|
resolveReferencedStart
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-4645UHJF.js";
|
|
105
105
|
import {
|
|
106
106
|
FFMPEG_PATH_ENV,
|
|
107
107
|
FFPROBE_PATH_ENV,
|
|
@@ -9308,6 +9308,12 @@ async function buildProbeFactsText(filePath, signal) {
|
|
|
9308
9308
|
}
|
|
9309
9309
|
return JSON.stringify(facts);
|
|
9310
9310
|
}
|
|
9311
|
+
function videoStartOnMediaTimeline(metadata) {
|
|
9312
|
+
return (metadata.videoStreamLeadSeconds ?? 0) + (metadata.mediaTimeOffsetSeconds ?? 0);
|
|
9313
|
+
}
|
|
9314
|
+
function ffmpegSeekSeconds(metadata, mediaTime) {
|
|
9315
|
+
return mediaTime - (metadata.mediaTimeOffsetSeconds ?? 0);
|
|
9316
|
+
}
|
|
9311
9317
|
function resolvePlayableVideoDuration(metadata) {
|
|
9312
9318
|
return Number.isFinite(metadata.videoStreamDurationSeconds) && metadata.videoStreamDurationSeconds > 0 ? (metadata.videoStreamLeadSeconds ?? 0) + metadata.videoStreamDurationSeconds : metadata.durationSeconds;
|
|
9313
9319
|
}
|
|
@@ -9604,6 +9610,7 @@ async function extractMediaMetadata(filePath) {
|
|
|
9604
9610
|
videoStreamDurationSeconds: effectiveStreamDuration,
|
|
9605
9611
|
videoStreamStartSeconds: streamStart,
|
|
9606
9612
|
videoStreamLeadSeconds: streamLeadSeconds(output, videoStream),
|
|
9613
|
+
mediaTimeOffsetSeconds: mediaTimeOffsetSeconds(output),
|
|
9607
9614
|
width: videoStream.width || stillImage()?.width || 0,
|
|
9608
9615
|
height: videoStream.height || stillImage()?.height || 0,
|
|
9609
9616
|
fps,
|
|
@@ -9766,6 +9773,7 @@ async function probeAudioMetadata(filePath, signal) {
|
|
|
9766
9773
|
bitrate: output.format.bit_rate ? parseInt(output.format.bit_rate) : void 0,
|
|
9767
9774
|
latestStreamLeadSeconds: latestStreamLeadSeconds(output),
|
|
9768
9775
|
audioStreamLeadSeconds: streamLeadSeconds(output, audioStream),
|
|
9776
|
+
mediaTimeOffsetSeconds: mediaTimeOffsetSeconds(output),
|
|
9769
9777
|
audioStreamCount: audioStreams.length,
|
|
9770
9778
|
audioStream: audioStreamIndex
|
|
9771
9779
|
};
|
|
@@ -9780,6 +9788,12 @@ function streamLeadSeconds(output, stream) {
|
|
|
9780
9788
|
const start = parseFloat(stream.start_time ?? "");
|
|
9781
9789
|
return Number.isFinite(start) && starts.length > 0 ? Math.max(0, start - Math.min(...starts)) : 0;
|
|
9782
9790
|
}
|
|
9791
|
+
var BROWSER_PLAYS_FROM_TIMESTAMP_ZERO = /\b(mp4|webm)\b/;
|
|
9792
|
+
function mediaTimeOffsetSeconds(output) {
|
|
9793
|
+
const starts = audioVideoStreamStarts(output);
|
|
9794
|
+
const fromZero = BROWSER_PLAYS_FROM_TIMESTAMP_ZERO.test(output?.format.format_name ?? "");
|
|
9795
|
+
return fromZero && starts.length > 0 ? Math.max(0, Math.min(...starts)) : 0;
|
|
9796
|
+
}
|
|
9783
9797
|
function latestStreamLeadSeconds(output) {
|
|
9784
9798
|
const starts = audioVideoStreamStarts(output);
|
|
9785
9799
|
return starts.length > 0 ? Math.max(...starts) - Math.min(...starts) : 0;
|
|
@@ -13079,7 +13093,7 @@ async function runSegmentedExtraction(job) {
|
|
|
13079
13093
|
...decodeArgs,
|
|
13080
13094
|
"-noaccurate_seek",
|
|
13081
13095
|
"-ss",
|
|
13082
|
-
String(seek),
|
|
13096
|
+
String(job.ffmpegSeek(seek)),
|
|
13083
13097
|
"-i",
|
|
13084
13098
|
videoPath,
|
|
13085
13099
|
// Read one frame past the segment and keep exactly its own frames.
|
|
@@ -13181,11 +13195,12 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
13181
13195
|
args.push("-c:v", decoderForCodec(metadata.videoCodec));
|
|
13182
13196
|
}
|
|
13183
13197
|
const decodeArgs = [...args];
|
|
13198
|
+
const ffmpegSeek = (mediaTime) => ffmpegSeekSeconds(metadata, mediaTime);
|
|
13184
13199
|
if (options.finalFrameOnly) {
|
|
13185
|
-
args.push("-i", videoPath, "-ss", String(startTime), "-frames:v", "1");
|
|
13200
|
+
args.push("-i", videoPath, "-ss", String(Math.max(0, ffmpegSeek(startTime))), "-frames:v", "1");
|
|
13186
13201
|
} else {
|
|
13187
13202
|
if (sampleAtOutputFps) args.push("-noaccurate_seek");
|
|
13188
|
-
args.push("-ss", String(startTime), "-i", videoPath, "-t", String(duration));
|
|
13203
|
+
args.push("-ss", String(ffmpegSeek(startTime)), "-i", videoPath, "-t", String(duration));
|
|
13189
13204
|
}
|
|
13190
13205
|
const vfFilters = [];
|
|
13191
13206
|
if (keepsHdrForChrome) {
|
|
@@ -13193,7 +13208,7 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
13193
13208
|
}
|
|
13194
13209
|
const samplingAt = vfFilters.length;
|
|
13195
13210
|
const samplingFilters = (seek) => sampleAtOutputFps ? [
|
|
13196
|
-
...metadata.isVFR ? [] : undoTickRoundingOnTheSourceFrameGrid(seek, metadata
|
|
13211
|
+
...metadata.isVFR ? [] : undoTickRoundingOnTheSourceFrameGrid(seek, videoStartOnMediaTimeline(metadata)),
|
|
13197
13212
|
"settb=intb/2",
|
|
13198
13213
|
"setpts=PTS-lte(TB\\,0.001)",
|
|
13199
13214
|
`fps=${ffmpegFps}:start_time=0:round=up`
|
|
@@ -13227,6 +13242,7 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
13227
13242
|
const extract = (hwaccel) => sampleAtOutputFps && (options.frameRanges || boundVfrFrameCount || totalFrames > segmentFrames) ? runSegmentedExtraction({
|
|
13228
13243
|
decodeArgs: [...hwaccel, ...decodeArgs],
|
|
13229
13244
|
filterAndEncodeArgs: (seek) => [...filterArgsFor(seek), ...encodeArgs],
|
|
13245
|
+
ffmpegSeek,
|
|
13230
13246
|
videoPath,
|
|
13231
13247
|
startTime,
|
|
13232
13248
|
fps,
|
|
@@ -13463,13 +13479,17 @@ async function resolveFinalFrameExtractionWindow(videoPath, video, metadata, win
|
|
|
13463
13479
|
if (!window2.ensureFinalFrame) return window2;
|
|
13464
13480
|
const playableDuration = resolvePlayableVideoDuration(metadata);
|
|
13465
13481
|
const videoStreamLead = metadata.videoStreamLeadSeconds ?? 0;
|
|
13466
|
-
const
|
|
13467
|
-
|
|
13468
|
-
|
|
13469
|
-
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13482
|
+
const lastInstantTheBrowserPlays = playableDuration - FINAL_FRAME_LOGICAL_DURATION_SECONDS;
|
|
13483
|
+
const finalFrameTimestamp = Math.min(
|
|
13484
|
+
lastInstantTheBrowserPlays,
|
|
13485
|
+
videoStartOnMediaTimeline(metadata) + await extractFinalVideoFrameTimestamp(
|
|
13486
|
+
videoPath,
|
|
13487
|
+
{
|
|
13488
|
+
videoStreamDurationSeconds: playableDuration - videoStreamLead,
|
|
13489
|
+
videoStreamStartSeconds: metadata.videoStreamStartSeconds
|
|
13490
|
+
},
|
|
13491
|
+
signal
|
|
13492
|
+
)
|
|
13473
13493
|
);
|
|
13474
13494
|
if (window2.mediaStart < finalFrameTimestamp - 1e-9) return window2;
|
|
13475
13495
|
const sourceRemaining = playableDuration - video.mediaStart;
|
|
@@ -14057,7 +14077,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
14057
14077
|
sourceFps: work.metadata.fps,
|
|
14058
14078
|
finalFrameSeconds: storedFinalFrame.seconds,
|
|
14059
14079
|
lastPacketSeconds: storedFinalFrame.lastPacketSeconds,
|
|
14060
|
-
streamLeadSeconds: work.metadata
|
|
14080
|
+
streamLeadSeconds: videoStartOnMediaTimeline(work.metadata)
|
|
14061
14081
|
});
|
|
14062
14082
|
if (storedTailFrames !== null) {
|
|
14063
14083
|
const totalFrames = firstTailFrame + storedTailFrames;
|
|
@@ -14299,8 +14319,8 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
14299
14319
|
};
|
|
14300
14320
|
}
|
|
14301
14321
|
var BROWSER_SHOWS_UPCOMING_FIRST_FRAME_WITHIN_SECONDS = 1;
|
|
14302
|
-
function isVideoHiddenBeforeStreamStart(
|
|
14303
|
-
return (
|
|
14322
|
+
function isVideoHiddenBeforeStreamStart(videoStartSeconds, mediaTime) {
|
|
14323
|
+
return (videoStartSeconds ?? 0) - mediaTime >= BROWSER_SHOWS_UPCOMING_FIRST_FRAME_WITHIN_SECONDS - 1e-6;
|
|
14304
14324
|
}
|
|
14305
14325
|
function getFrameIndexAtTime(extracted, globalTime, videoStart, loop = false, mediaStart = 0, holdLastFrame = false, playbackRate = 1) {
|
|
14306
14326
|
let localTime = Math.max(0, globalTime - videoStart);
|
|
@@ -14321,7 +14341,7 @@ function getFrameIndexAtTime(extracted, globalTime, videoStart, loop = false, me
|
|
|
14321
14341
|
const frameIndex = Math.floor(shownTime * extracted.fps);
|
|
14322
14342
|
if (frameIndex < 0 || extracted.totalFrames <= 0) return null;
|
|
14323
14343
|
if (isVideoHiddenBeforeStreamStart(
|
|
14324
|
-
extracted.metadata
|
|
14344
|
+
videoStartOnMediaTimeline(extracted.metadata),
|
|
14325
14345
|
mediaStart + sourceTime
|
|
14326
14346
|
)) {
|
|
14327
14347
|
return null;
|
|
@@ -16590,11 +16610,12 @@ async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, durat
|
|
|
16590
16610
|
removeScratch(cycleDir);
|
|
16591
16611
|
}
|
|
16592
16612
|
}
|
|
16593
|
-
const
|
|
16594
|
-
const
|
|
16595
|
-
const
|
|
16613
|
+
const ffmpegStart = ffmpegSeekSeconds(metadata ?? {}, mediaStart);
|
|
16614
|
+
const inputSeek = ffmpegStart >= (metadata?.latestStreamLeadSeconds ?? 0);
|
|
16615
|
+
const start = formatFilterNumber(ffmpegStart);
|
|
16616
|
+
const timestampTrim = inputSeek ? null : `atrim=start=${start}:end=${formatFilterNumber(ffmpegStart + sourceDuration)},asetpts=PTS-${start}/TB,aresample=async=1:first_pts=0`;
|
|
16596
16617
|
const fromSidecar = audioSidecarUrl !== void 0 && inputSeek && normalizedPlaybackRate === 1;
|
|
16597
|
-
const warmUp = fromSidecar ? Math.min(SIDECAR_WARM_UP_SECONDS,
|
|
16618
|
+
const warmUp = fromSidecar ? Math.min(SIDECAR_WARM_UP_SECONDS, ffmpegStart) : 0;
|
|
16598
16619
|
const outputArgs = preparedAudioOutputArgs(
|
|
16599
16620
|
metadata,
|
|
16600
16621
|
normalizedPlaybackRate,
|
|
@@ -16609,7 +16630,7 @@ async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, durat
|
|
|
16609
16630
|
const args = [
|
|
16610
16631
|
...readsUrl ? FAIL_ON_READ_ERROR_INSTEAD_OF_ENDING_THERE : [],
|
|
16611
16632
|
...urlInputArgs(readFrom),
|
|
16612
|
-
...inputSeek ? ["-ss", String(
|
|
16633
|
+
...inputSeek ? ["-ss", String(ffmpegStart - warmUp), "-t", String(sourceDuration + warmUp)] : [],
|
|
16613
16634
|
"-i",
|
|
16614
16635
|
readFrom
|
|
16615
16636
|
];
|
|
@@ -18887,6 +18908,8 @@ export {
|
|
|
18887
18908
|
declareProbeFactsUrl,
|
|
18888
18909
|
PROBE_FACTS_VERSION,
|
|
18889
18910
|
buildProbeFactsText,
|
|
18911
|
+
videoStartOnMediaTimeline,
|
|
18912
|
+
ffmpegSeekSeconds,
|
|
18890
18913
|
resolvePlayableVideoDuration,
|
|
18891
18914
|
probeMediaProfile,
|
|
18892
18915
|
extractMediaMetadata,
|
|
@@ -15,16 +15,16 @@ import {
|
|
|
15
15
|
findFFmpeg,
|
|
16
16
|
findFFprobe,
|
|
17
17
|
getFFmpegInstallHint
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-I3G45TWG.js";
|
|
19
19
|
import {
|
|
20
20
|
registerBrowserSessionCleanup
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BVHNFPRF.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_VP9_CPU_USED,
|
|
24
24
|
SDR_RGB_TO_BT709_FILTER,
|
|
25
25
|
SDR_RGB_TO_TAGGED_BT709_FILTER,
|
|
26
26
|
renderProvenanceArgs
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-KVFOQ3EM.js";
|
|
28
28
|
import {
|
|
29
29
|
runCancellableProcess
|
|
30
30
|
} from "./chunk-X6JUUQCM.js";
|
|
@@ -391,7 +391,7 @@ async function decoderTransposesDimensions(inputPath) {
|
|
|
391
391
|
}
|
|
392
392
|
async function probeMedia(inputPath) {
|
|
393
393
|
const isImage = inferInputKind(inputPath) === "image";
|
|
394
|
-
const engine = await import("./src-
|
|
394
|
+
const engine = await import("./src-QEFKMRH7.js");
|
|
395
395
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
396
396
|
if (isImage) {
|
|
397
397
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LGDRKQKL.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-2GICKZ3I.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-KVFOQ3EM.js";
|
|
33
33
|
import {
|
|
34
34
|
getFreeDiskMb,
|
|
35
35
|
getShmSizeMb,
|
|
@@ -41,14 +41,14 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
getUpdateMeta,
|
|
43
43
|
withMeta
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-O63A26XQ.js";
|
|
45
45
|
import {
|
|
46
46
|
CONFIG_PATH,
|
|
47
47
|
withFileLock
|
|
48
48
|
} from "./chunk-ZCHULPJZ.js";
|
|
49
49
|
import {
|
|
50
50
|
VERSION
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-KL2UJXCY.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeErrorMessage
|
|
54
54
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -240,7 +240,7 @@ function checkEnvironment() {
|
|
|
240
240
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
241
241
|
}
|
|
242
242
|
async function checkWhisper() {
|
|
243
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
243
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-GPDDRQIW.js");
|
|
244
244
|
const result = findWhisper();
|
|
245
245
|
if (result) {
|
|
246
246
|
return { ok: true, detail: result.executablePath };
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
DEFAULT_REGISTRY_URL,
|
|
9
9
|
fetchItemFile,
|
|
10
10
|
validRegistryItem
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HWHPYCBZ.js";
|
|
12
12
|
import {
|
|
13
13
|
publishRegistryFile,
|
|
14
14
|
registryTargetPath
|
|
15
15
|
} from "./chunk-T2WJO4XM.js";
|
|
16
16
|
import {
|
|
17
17
|
validateVariables
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KY67MTBH.js";
|
|
19
19
|
import {
|
|
20
20
|
realProjectRoot
|
|
21
21
|
} from "./chunk-OFQWTKPW.js";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KVFOQ3EM.js";
|
|
11
11
|
|
|
12
12
|
// src/browser/gpuPolicy.ts
|
|
13
13
|
function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
|
|
|
17
17
|
return "auto";
|
|
18
18
|
}
|
|
19
19
|
async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
|
|
20
|
-
const { resolveBrowserGpuMode } = await import("./src-
|
|
20
|
+
const { resolveBrowserGpuMode } = await import("./src-QEFKMRH7.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
getMimeType,
|
|
9
9
|
injectMediaCodecMapIntoHtml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BE6XXZAR.js";
|
|
11
11
|
import {
|
|
12
12
|
PROXY_VARIANT_CONFIG,
|
|
13
13
|
ProxyCapacityError,
|
|
@@ -18,23 +18,23 @@ import {
|
|
|
18
18
|
recordProxyRequest,
|
|
19
19
|
resolveProxy,
|
|
20
20
|
resolveProxyVariantRequest
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TCCCAEZD.js";
|
|
22
22
|
import {
|
|
23
23
|
findStageProxyBox
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NGJS5H5E.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveAutoProxy
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QHWVCKC5.js";
|
|
28
28
|
import {
|
|
29
29
|
listenOnBrowserSafePort
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KVFOQ3EM.js";
|
|
31
31
|
import {
|
|
32
32
|
stripSdrPngColourTags
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-AJ3QW6RX.js";
|
|
34
34
|
import {
|
|
35
35
|
PREVIEW_PROXY_BOX_PARAM,
|
|
36
36
|
parsePreviewProxyBox
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-KY67MTBH.js";
|
|
38
38
|
import {
|
|
39
39
|
decodeWellFormedEscapes
|
|
40
40
|
} from "./chunk-X4SBDDLS.js";
|