hyperframes 0.8.206 → 0.8.207
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/bin/hyperframes.mjs +1 -0
- package/dist/{add-FFMNAJXJ.js → add-LXFWHBE3.js} +19 -18
- package/dist/{agentPromptGenerator-KYO5MKTW.js → agentPromptGenerator-D2E62ZP5.js} +1 -1
- package/dist/{animatedGifPrep-BIIIIVWL.js → animatedGifPrep-VBPJZKFT.js} +12 -12
- package/dist/api.js +30 -30
- package/dist/{appHistory-QVCSAOI4.js → appHistory-HIBH6XZW.js} +3 -1
- package/dist/{asset-IPUHGZSL.js → asset-JX4RW3GO.js} +2 -2
- package/dist/{assetCataloger-M5FWXLAJ.js → assetCataloger-JKKOPBCF.js} +14 -13
- package/dist/{audio-VYWWM4DB.js → audio-OXQ3L6DW.js} +22 -22
- package/dist/{auth-GZQZCUPL.js → auth-JAL7P7ZA.js} +1 -1
- package/dist/{autoUpdate-GJUDDLLO.js → autoUpdate-MRI2AICE.js} +2 -2
- package/dist/{backgroundChecks-BTMSW34Z.js → backgroundChecks-ORR46PBY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-LI2BJRGO.js → batchRender-IFZYPGIW.js} +9 -9
- package/dist/{beats-H73CSYT4.js → beats-UDLOEW6U.js} +19 -19
- package/dist/{benchmark-XT3A5REC.js → benchmark-VTVDNKSO.js} +14 -14
- package/dist/{browser-VIOK66YK.js → browser-QJC4BL2Y.js} +6 -6
- package/dist/{bundleWithLocalizedFonts-PFRVWYOO.js → bundleWithLocalizedFonts-Z2JTBNDS.js} +2 -2
- package/dist/{capture-252WNPCD.js → capture-2P4JERSX.js} +14 -3
- package/dist/{capture-KKD5GMAF.js → capture-GLM2ACPM.js} +73 -33
- package/dist/{captureCompositionFrame-YLYVGNN2.js → captureCompositionFrame-A2A5MGQB.js} +18 -18
- package/dist/{captureFile-LYOJOUIE.js → captureFile-RPUEOZO6.js} +1 -1
- package/dist/{catalog-6IJGNN3T.js → catalog-5ZLVUQVJ.js} +25 -24
- package/dist/{catch-up-BFW7Z35W.js → catch-up-FRMVYJHZ.js} +5 -5
- package/dist/{check-XUWBZASR.js → check-WVY7SM7C.js} +47 -47
- package/dist/{checkAudio-2NRR3VHQ.js → checkAudio-PLEQY3SZ.js} +16 -16
- package/dist/{checkBrowser-JW74KWTF.js → checkBrowser-XSZUA2DQ.js} +40 -40
- package/dist/{chunk-2S263R6D.js → chunk-526VSRZ4.js} +9 -9
- package/dist/{chunk-SFYLZX5C.js → chunk-5KBMYSF2.js} +54 -15
- package/dist/{chunk-2ST4WAFY.js → chunk-5PCALX6G.js} +13 -1
- package/dist/{chunk-AJSU6KGS.js → chunk-5PYRU5DT.js} +13 -13
- package/dist/{chunk-AYH5ANVS.js → chunk-5YHQBCWH.js} +52 -3
- package/dist/{chunk-QVTCXN42.js → chunk-63DP5CB2.js} +29 -3
- package/dist/{chunk-FNNGQ3DB.js → chunk-6IYIS2U7.js} +2 -2
- package/dist/{chunk-VDVVQNTK.js → chunk-6KCFVLO6.js} +5 -5
- package/dist/{chunk-DEVZJ4AL.js → chunk-6KOHY5EP.js} +7 -7
- package/dist/{chunk-CIHW6VM2.js → chunk-6Z7XDUUJ.js} +1 -1
- package/dist/{chunk-PQYWYBEQ.js → chunk-7PJ3AJB2.js} +1 -1
- package/dist/{chunk-VW2LVMKB.js → chunk-7RWUY3BJ.js} +47 -55
- package/dist/{chunk-3CISA3OS.js → chunk-AF3L5JJX.js} +1 -1
- package/dist/chunk-BDJIQZN2.js +4830 -0
- package/dist/{chunk-4CY5RXXC.js → chunk-C53ZNJDZ.js} +4 -4
- package/dist/{chunk-FULMZCDW.js → chunk-CVZO6TFE.js} +10 -10
- package/dist/{chunk-6ZFDNEMY.js → chunk-DJQZ7DEH.js} +15 -15
- package/dist/{chunk-E2ZZSDDQ.js → chunk-DML6BD4K.js} +2 -2
- package/dist/{chunk-PNKLOMHQ.js → chunk-EG3B2VWK.js} +2 -2
- package/dist/{chunk-XOM3XTJ4.js → chunk-EGRIVMCQ.js} +1 -1
- package/dist/{chunk-3CS6QYL7.js → chunk-FEO7YW7V.js} +8 -8
- package/dist/{chunk-H4JO7VSI.js → chunk-FVAI7AHF.js} +12 -12
- package/dist/{chunk-PLGGKTCB.js → chunk-GXUONASF.js} +13 -20
- package/dist/{chunk-CZYS6UKP.js → chunk-H3LQ5X6Q.js} +19 -19
- package/dist/{chunk-AXEEZKIL.js → chunk-HA3V4XAF.js} +6 -6
- package/dist/{chunk-G6W55MTX.js → chunk-HM7SUIQD.js} +38 -9
- package/dist/{chunk-VEA7Z4PZ.js → chunk-HVOTYAS4.js} +15 -7
- package/dist/{chunk-3R6SXPHD.js → chunk-I2TDHVFV.js} +2 -2
- package/dist/{chunk-36QE3P6B.js → chunk-I3TYUQLB.js} +1 -1
- package/dist/{chunk-63DGZRZP.js → chunk-IBZHSU2J.js} +1 -1
- package/dist/{chunk-AEC4T4IF.js → chunk-ID766OZB.js} +12 -12
- package/dist/{chunk-5QKJPCQ4.js → chunk-IK4JY2LI.js} +2 -2
- package/dist/{chunk-UMUVGNOH.js → chunk-IW5P4KK7.js} +3 -3
- package/dist/{chunk-AAX2A7LQ.js → chunk-IYZT62UR.js} +1 -1
- package/dist/chunk-JKE24AG7.js +62 -0
- package/dist/chunk-JLCAHJUO.js +91 -0
- package/dist/{chunk-N7ZMDVAK.js → chunk-JLGVBK5M.js} +1 -1
- package/dist/{chunk-2RT7MXFL.js → chunk-JQ32262N.js} +1 -1
- package/dist/{chunk-RW4DMP2Y.js → chunk-KDHHPJOG.js} +4 -4
- package/dist/{chunk-DZG565OO.js → chunk-LCCYYTEK.js} +1 -1
- package/dist/{chunk-RDDVQSNQ.js → chunk-LK6KPVX2.js} +167 -55
- package/dist/{chunk-42KN6I6A.js → chunk-LPI7HX4G.js} +2 -2
- package/dist/{chunk-WHD5IAHI.js → chunk-LXP6XWJL.js} +2 -2
- package/dist/{chunk-T6SD37JZ.js → chunk-MAUGXKSI.js} +4 -4
- package/dist/{chunk-ZTEKVSZ6.js → chunk-MMJAHBH2.js} +1 -1
- package/dist/{chunk-TSJVPPXT.js → chunk-MSHL6CF2.js} +1 -1
- package/dist/{chunk-OFRRUYBA.js → chunk-NHA4NRBE.js} +135 -24
- package/dist/{chunk-OZUAVHFE.js → chunk-NHL5CMO2.js} +3 -3
- package/dist/{chunk-7SXL476O.js → chunk-NJNC2DQV.js} +27 -26
- package/dist/{chunk-FMWACL3L.js → chunk-NSC5A4IR.js} +1 -1
- package/dist/{chunk-MRF4AMKD.js → chunk-NWGXTUYS.js} +32 -10
- package/dist/{chunk-X5HHHFTX.js → chunk-PL36HK3U.js} +3 -3
- package/dist/{chunk-BBUK6A7Q.js → chunk-PUIG6DHT.js} +5 -5
- package/dist/{chunk-CPSGXAYD.js → chunk-QE4WRS3N.js} +3 -3
- package/dist/{chunk-FJW757TF.js → chunk-QTWXVOZI.js} +1 -1
- package/dist/{chunk-WYB3VKLK.js → chunk-QZ2JQ6O4.js} +6 -6
- package/dist/{chunk-MFHYBSJC.js → chunk-RPZNQV6D.js} +3 -3
- package/dist/{chunk-2BGOB2QK.js → chunk-SE2MXV2N.js} +136 -25
- package/dist/{chunk-GAV56VJL.js → chunk-SXOD5J7T.js} +2 -2
- package/dist/{chunk-VHVSBOZH.js → chunk-T4JGFCXU.js} +3 -3
- package/dist/{chunk-HJAJ6W4V.js → chunk-TSTONNOD.js} +2 -2
- package/dist/chunk-TSYRN646.js +84 -0
- package/dist/{chunk-CNVHMLPI.js → chunk-U32PA6DI.js} +1 -1
- package/dist/{chunk-ZNAOBFU5.js → chunk-UAT2UMTP.js} +1 -1
- package/dist/{chunk-QL4ZYSIB.js → chunk-UKM3JYNB.js} +5 -71
- package/dist/{chunk-Z3XXLTVB.js → chunk-UUOIH4RW.js} +3 -3
- package/dist/{chunk-CMDVJP4T.js → chunk-UYPWH7PH.js} +10 -10
- package/dist/{chunk-3B2DBUQX.js → chunk-VAVDAOUA.js} +1 -1
- package/dist/{chunk-G6QDFWDN.js → chunk-VBPNCOD7.js} +2 -2
- package/dist/{chunk-NNLQTG3M.js → chunk-VH4PNYOS.js} +1 -1
- package/dist/{chunk-IXXVS2Z4.js → chunk-VQB7G5BM.js} +1 -1
- package/dist/{chunk-FLREUEHW.js → chunk-W4DMQZL5.js} +1 -1
- package/dist/{chunk-RXATE6FZ.js → chunk-WC4MTXGN.js} +22 -0
- package/dist/{chunk-F2ASNL2K.js → chunk-WL263XM2.js} +1 -1
- package/dist/{chunk-HEP5XMXV.js → chunk-XAGBSYIQ.js} +9 -2
- package/dist/{chunk-4DGLKB2H.js → chunk-XKW4Z7BU.js} +1 -1
- package/dist/chunk-XMRA7CQG.js +22 -0
- package/dist/{chunk-NVLPW3DG.js → chunk-XULJBZ7K.js} +2 -2
- package/dist/{chunk-X7RXXBYM.js → chunk-YJK6HOL5.js} +2 -2
- package/dist/{chunk-2MLMO25E.js → chunk-ZCJ5EGLU.js} +26 -6
- package/dist/{chunk-L5MFWGGU.js → chunk-ZYGIDXAK.js} +528 -327
- package/dist/{clean-N5VSKUVS.js → clean-TL3IPJDN.js} +27 -27
- package/dist/cli.js +55 -55
- package/dist/{cloud-74NF5FXC.js → cloud-EYMRPJNY.js} +4 -4
- package/dist/{cloudrun-7UOH335V.js → cloudrun-TOJ36NLX.js} +11 -11
- package/dist/commands/layout-audit.browser.js +3 -15
- package/dist/{compare-AY2LS2TZ.js → compare-MP5EOW4D.js} +41 -41
- package/dist/{compiler-4MHMC777.js → compiler-NOPVLJ2S.js} +8 -8
- package/dist/{component-CFWQOAZI.js → component-ASACDCZK.js} +3 -3
- package/dist/{compositions-DXLJTDSP.js → compositions-WKNZJY34.js} +16 -16
- package/dist/{contactSheet-5APX35L3.js → contactSheet-YOBPATEM.js} +2 -2
- package/dist/{delete-GB4MS7LM.js → delete-DQTFHP3G.js} +2 -2
- package/dist/{deploy-NXD3Q3KD.js → deploy-HHCFOUFM.js} +1 -1
- package/dist/{deterministicFonts-775YXAQ2.js → deterministicFonts-LKAGUNE5.js} +3 -3
- package/dist/{dist-ZY6IFESG.js → dist-L4Z4ZEYW.js} +6 -3
- package/dist/{dist-3ZJMZU75.js → dist-NQEYA4ZX.js} +36 -36
- package/dist/docs/rendering.md +3 -0
- package/dist/{doctor-CVY2XXKS.js → doctor-JDM65CP7.js} +19 -19
- package/dist/{events-T3CLIYRG.js → events-MBRNA3UF.js} +3 -3
- package/dist/{events-RYQYEWBV.js → events-RKRHRLJD.js} +2 -2
- package/dist/{feedback-K5ZMMLTA.js → feedback-LZWIWV5J.js} +17 -17
- package/dist/{ffmpeg-UNDAJ2IC.js → ffmpeg-4PZKSIGE.js} +14 -14
- package/dist/{figma-MYYCX635.js → figma-QFNYUT3F.js} +3 -3
- package/dist/fontLocalizeCli.js +19 -18
- package/dist/{get-JVIDYMVP.js → get-2B5ENJOH.js} +2 -2
- package/dist/{gpuPolicy-KEX7GDRJ.js → gpuPolicy-E5FB2GFR.js} +12 -12
- package/dist/{grade-compare-QEF6VASJ.js → grade-compare-4GUAPJHE.js} +39 -39
- package/dist/{gsapParserAcorn-LZJKCFQI.js → gsapParserAcorn-5YD4N6HQ.js} +2 -2
- package/dist/hangReport.js +47 -0
- package/dist/{heifImagePrep-A3ZPVQGU.js → heifImagePrep-C2RYIEER.js} +13 -13
- package/dist/{help-XPPSLIRY.js → help-XGDAXV67.js} +1 -1
- package/dist/{history-OFOPRD27.js → history-WNFF6HGU.js} +107 -59
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +74 -69
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-7RF6FQX5.js → info-BR2LKGJD.js} +16 -16
- package/dist/{init-NTIXWA3D.js → init-P6UWPUY3.js} +58 -57
- package/dist/{inspect-MYMCV5E7.js → inspect-MSRPF7ZO.js} +38 -38
- package/dist/{installer-PYJIJ3PJ.js → installer-MPUQS3ZX.js} +10 -10
- package/dist/{keyframes-UJ52PYE4.js → keyframes-J6K66QTO.js} +11 -11
- package/dist/{lambda-SBNUYEQE.js → lambda-LJ2OSWFJ.js} +32 -13
- package/dist/{layout-IOMCOABO.js → layout-CDY65XGA.js} +38 -38
- package/dist/{lint-AQWHHMPS.js → lint-CAUNBGPX.js} +12 -9
- package/dist/{lintProject-5A4SCW3S.js → lintProject-ZTSX3AWT.js} +6 -3
- package/dist/{list-WKAJ5SP3.js → list-33BYQNRZ.js} +2 -2
- package/dist/{login-3ZDK5JOA.js → login-5QMRKOHK.js} +4 -4
- package/dist/{manager-QYFYWZOK.js → manager-3JOHHPVR.js} +16 -16
- package/dist/{manager-F2YREC5X.js → manager-RMYSZ3KI.js} +7 -3
- package/dist/{media-treatment-4OLWVHUY.js → media-treatment-4WP22CFN.js} +22 -22
- package/dist/{models-MR55FAUX.js → models-HPWCHAZX.js} +27 -27
- package/dist/{motionShot-DC47S7BT.js → motionShot-I7GDIROQ.js} +22 -22
- package/dist/{normalize-audio-M2TK4NG5.js → normalize-audio-VTMXPSC7.js} +14 -14
- package/dist/{open-YXWBWTKL.js → open-SAO7OQTT.js} +19 -19
- package/dist/{parakeetRunner-J6QR3GTG.js → parakeetRunner-ZYPBIA73.js} +24 -24
- package/dist/{pipeline-7MJ5H4SW.js → pipeline-VNBMR6QU.js} +15 -15
- package/dist/{play-S562STR4.js → play-7VI6A7KN.js} +28 -28
- package/dist/{preflight-QWGXMISC.js → preflight-VWV7L45J.js} +16 -16
- package/dist/{present-PGOHZT3L.js → present-CSJGYOFF.js} +23 -23
- package/dist/{preview-JU75H4QN.js → preview-B246ZTVO.js} +48 -36
- package/dist/{producer-H66OMZLW.js → producer-WJLFDVQJ.js} +1 -1
- package/dist/{projectConfig-COSP24YT.js → projectConfig-OMR46ZWQ.js} +14 -13
- package/dist/{publication-J3XYHPGB.js → publication-AA7NNYET.js} +8 -8
- package/dist/{publish-7GCCEPJZ.js → publish-TJ4QVVSP.js} +17 -16
- package/dist/{remove-background-WRCGIU32.js → remove-background-LQ2V7W7N.js} +19 -19
- package/dist/{render-5J5PP3UK.js → render-AWEEPG3F.js} +34 -32
- package/dist/{render-QS3YJCBR.js → render-E5QJG74D.js} +14 -11
- package/dist/{render-VUVTK2JM.js → render-JLTNZ36U.js} +80 -48
- package/dist/{render-batch-Q2LQ3D4P.js → render-batch-U4T4VSCM.js} +14 -11
- package/dist/renderSetupWorker.js +10 -7
- package/dist/{resolver-QCBWPRSC.js → resolver-GXCTUKPV.js} +10 -10
- package/dist/{screenshotCapture-I5EDCITF.js → screenshotCapture-X6OKIXCB.js} +1 -1
- package/dist/{sherpa-IZ22SC5W.js → sherpa-4VZWVHWZ.js} +23 -23
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -0
- package/dist/skills/hyperframes-cli/references/lambda.md +3 -0
- package/dist/skills/hyperframes-cli/references/preview-render.md +3 -0
- package/dist/{skills-3RFMPMJA.js → skills-WUKR7SUE.js} +8 -8
- package/dist/{skillsUpdateCheck-DWBFVUBT.js → skillsUpdateCheck-YXRBY3JC.js} +3 -3
- package/dist/{snapshot-5PHA43DK.js → snapshot-Q7S2FTNG.js} +123 -70
- package/dist/{src-36BQVJL3.js → src-CLAALR5W.js} +20 -19
- package/dist/{src-4YJKYMNF.js → src-ZOXUSGAP.js} +19 -11
- package/dist/{staticProjectServer-3XFB76XS.js → staticProjectServer-DQ7PIDPA.js} +25 -25
- package/dist/studio/assets/hyperframes-player-Cm5aBiKq.js +478 -0
- package/dist/studio/assets/{index-CwreIGoq.js → index-BF9YeBnC.js} +131 -131
- package/dist/studio/assets/{index-BNuxGFZK.js → index-BrqAmMRt.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-WL6EZ4KE.js → studio-api-NUE227JM.js} +17 -17
- package/dist/{studioServer-ZS5RA6U3.js → studioServer-HVOKP4VI.js} +71 -69
- package/dist/{synthesize-QCRP3NI7.js → synthesize-QZHRXGRY.js} +26 -4
- package/dist/{telemetry-W3LRO3TB.js → telemetry-2Y5JXLDB.js} +3 -3
- package/dist/{timeline-BDO5DYWP.js → timeline-WOQGXFRV.js} +27 -27
- package/dist/{tokens-47CEMYFV.js → tokens-T3OHTWUC.js} +2 -2
- package/dist/{transcribe-XF3NL6JI.js → transcribe-4U74P5TG.js} +21 -21
- package/dist/{transcribe-GEPVJO3A.js → transcribe-JZ3BO546.js} +31 -31
- package/dist/{tts-QM4RFE7U.js → tts-AY4JO5NQ.js} +2 -2
- package/dist/{updateCheck-BON6ZFYP.js → updateCheck-6EUAGAM4.js} +2 -2
- package/dist/{upgrade-KIF5Z4J3.js → upgrade-55K6F4MP.js} +2 -2
- package/dist/upstreamProxy-W5FWAT5Z.js +17 -0
- package/dist/{urlDownloader-UDRHVUWR.js → urlDownloader-47JMOLNN.js} +11 -11
- package/dist/{validate-2OPSQT3W.js → validate-QBJ3SBS4.js} +31 -31
- package/dist/{video-ECWXMY4F.js → video-3ZAUNAR3.js} +16 -14
- package/dist/warmCheck.js +47 -47
- package/package.json +2 -1
- package/dist/chunk-4YYJOFKS.js +0 -28
- package/dist/chunk-KLIPVNCO.js +0 -4824
- package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +0 -478
- package/dist/{chunk-X7A7C4JS.js → chunk-EHFZEKQM.js} +3 -3
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
renderFrameIdForRenderId,
|
|
30
30
|
resolveAuthoredTimingWindow,
|
|
31
31
|
toFps
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-7RWUY3BJ.js";
|
|
33
33
|
import {
|
|
34
34
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
35
35
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
sourceTimeAt,
|
|
73
73
|
timeAtSourceTime,
|
|
74
74
|
volumeSegmentSampleCount
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-BDJIQZN2.js";
|
|
76
76
|
import {
|
|
77
77
|
redactTelemetryString,
|
|
78
78
|
redactUrlQueryStrings
|
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
} from "./chunk-4UMPIPCQ.js";
|
|
91
91
|
import {
|
|
92
92
|
resolveReferencedStart
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-ZCJ5EGLU.js";
|
|
94
94
|
import {
|
|
95
95
|
FFMPEG_PATH_ENV,
|
|
96
96
|
FFPROBE_PATH_ENV,
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
} from "./chunk-PBNWRWKA.js";
|
|
103
103
|
import {
|
|
104
104
|
isPathInside
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-SE2MXV2N.js";
|
|
106
106
|
import {
|
|
107
107
|
parseHTML
|
|
108
108
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -1452,6 +1452,8 @@ async function launchBrowser(fingerprint) {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
function forceCloseBrowserProcess(browser) {
|
|
1454
1454
|
const proc = browser.process?.();
|
|
1455
|
+
for (const stream of proc?.stdio ?? []) stream?.on("error", () => {
|
|
1456
|
+
});
|
|
1455
1457
|
if (proc && !proc.killed) {
|
|
1456
1458
|
try {
|
|
1457
1459
|
proc.kill("SIGKILL");
|
|
@@ -1783,6 +1785,19 @@ var DrawElementCaptureError = class extends Error {
|
|
|
1783
1785
|
this.frameIndex = frameIndex;
|
|
1784
1786
|
}
|
|
1785
1787
|
};
|
|
1788
|
+
function markRejectionHandled(promise) {
|
|
1789
|
+
promise.catch(() => {
|
|
1790
|
+
});
|
|
1791
|
+
}
|
|
1792
|
+
function asDrawElementCaptureFailure(frameIndex, encodeResult) {
|
|
1793
|
+
const wrapped = encodeResult.catch((cause) => {
|
|
1794
|
+
if (isDrawElementCaptureError(cause)) throw cause;
|
|
1795
|
+
const reason = cause instanceof Error ? cause.message : String(cause);
|
|
1796
|
+
throw new DrawElementCaptureError(frameIndex, reason, cause);
|
|
1797
|
+
});
|
|
1798
|
+
markRejectionHandled(wrapped);
|
|
1799
|
+
return wrapped;
|
|
1800
|
+
}
|
|
1786
1801
|
function isDrawElementCaptureError(error) {
|
|
1787
1802
|
let current = error;
|
|
1788
1803
|
for (let depth = 0; depth < 5 && typeof current === "object" && current !== null; depth++) {
|
|
@@ -7844,13 +7859,14 @@ async function captureFrameToBufferPipelined(session, frameIndex, time) {
|
|
|
7844
7859
|
"boundary screenshot requested on an injected canvas page"
|
|
7845
7860
|
);
|
|
7846
7861
|
}
|
|
7847
|
-
const
|
|
7862
|
+
const produced = await produceDrawElementFrame(
|
|
7848
7863
|
page,
|
|
7849
7864
|
options.width,
|
|
7850
7865
|
options.height,
|
|
7851
7866
|
options.quality ?? 80,
|
|
7852
7867
|
true
|
|
7853
7868
|
);
|
|
7869
|
+
const encodeResult = asDrawElementCaptureFailure(frameIndex, produced.encodeResult);
|
|
7854
7870
|
const captureTimeMs = Date.now() - startTime;
|
|
7855
7871
|
session.capturePerf.frames += 1;
|
|
7856
7872
|
session.capturePerf.seekMs += seekMs;
|
|
@@ -7929,7 +7945,10 @@ async function captureFramesBatchPipelined(session, frameIndices, times) {
|
|
|
7929
7945
|
const frameIndex = frameIndices[i];
|
|
7930
7946
|
const encodeResult = encodeResults[i];
|
|
7931
7947
|
if (frameIndex === void 0 || !encodeResult) break;
|
|
7932
|
-
results.push({
|
|
7948
|
+
results.push({
|
|
7949
|
+
frameIndex,
|
|
7950
|
+
encodeResult: asDrawElementCaptureFailure(frameIndex, encodeResult)
|
|
7951
|
+
});
|
|
7933
7952
|
}
|
|
7934
7953
|
if (failedAt !== null) {
|
|
7935
7954
|
if (isRecoverableDrawElementError(error)) {
|
|
@@ -9882,6 +9901,34 @@ function lockedGopCodecParams(codec, gopSize) {
|
|
|
9882
9901
|
const shared = "scenecut=0:open-gop=0:repeat-headers=1";
|
|
9883
9902
|
return codec === "h264" ? shared : `keyint=${gopSize}:min-keyint=${gopSize}:${shared}`;
|
|
9884
9903
|
}
|
|
9904
|
+
function keyframeIntervalToGopSize(fps, seconds) {
|
|
9905
|
+
return Math.max(1, Math.round(fpsToNumber(fps) * seconds));
|
|
9906
|
+
}
|
|
9907
|
+
var BITRATE_PATTERN = /^(\d+(?:\.\d+)?)([kKmMgG]?)$/;
|
|
9908
|
+
function bitrateToBitsPerSecond(value) {
|
|
9909
|
+
const match = BITRATE_PATTERN.exec(value);
|
|
9910
|
+
if (!match) throw new Error(`[chunkEncoder] invalid bitrate ${JSON.stringify(value)}`);
|
|
9911
|
+
const unit = match[2].toLowerCase();
|
|
9912
|
+
const scale = { g: 1e9, m: 1e6, k: 1e3 }[unit] ?? 1;
|
|
9913
|
+
return Number(match[1]) * scale;
|
|
9914
|
+
}
|
|
9915
|
+
function appendRateCapArgs(args, options) {
|
|
9916
|
+
const { maxBitrate, bufferSize } = options;
|
|
9917
|
+
if (maxBitrate === void 0) {
|
|
9918
|
+
if (bufferSize !== void 0) throw new Error("[chunkEncoder] bufferSize requires maxBitrate");
|
|
9919
|
+
return;
|
|
9920
|
+
}
|
|
9921
|
+
const codec = options.codec ?? "h264";
|
|
9922
|
+
if (codec !== "h264" && codec !== "h265") {
|
|
9923
|
+
throw new Error(`[chunkEncoder] maxBitrate is not supported for codec ${codec}`);
|
|
9924
|
+
}
|
|
9925
|
+
const cap = bitrateToBitsPerSecond(maxBitrate);
|
|
9926
|
+
const buffer = bufferSize !== void 0 ? bitrateToBitsPerSecond(bufferSize) : cap * 2;
|
|
9927
|
+
if (cap <= 0 || buffer <= 0) {
|
|
9928
|
+
throw new Error("[chunkEncoder] maxBitrate and bufferSize must be positive");
|
|
9929
|
+
}
|
|
9930
|
+
args.push("-maxrate", String(Math.round(cap)), "-bufsize", String(Math.round(buffer)));
|
|
9931
|
+
}
|
|
9885
9932
|
function buildEncoderArgs(options, inputArgs, outputPath, gpuEncoder = null) {
|
|
9886
9933
|
const {
|
|
9887
9934
|
fps,
|
|
@@ -9901,6 +9948,7 @@ function buildEncoderArgs(options, inputArgs, outputPath, gpuEncoder = null) {
|
|
|
9901
9948
|
}
|
|
9902
9949
|
const args = ["-xerror", ...inputArgs, "-r", fpsToFfmpegArg(fps)];
|
|
9903
9950
|
const shouldUseGpu = useGpu && gpuEncoder !== null;
|
|
9951
|
+
appendRateCapArgs(args, options);
|
|
9904
9952
|
if (codec === "h264" || codec === "h265") {
|
|
9905
9953
|
if (shouldUseGpu) {
|
|
9906
9954
|
const encoderName = getGpuEncoderName(gpuEncoder, codec);
|
|
@@ -10606,6 +10654,7 @@ function buildStreamingArgs(options, outputPath, gpuEncoder = null) {
|
|
|
10606
10654
|
}
|
|
10607
10655
|
args.push("-r", fpsToFfmpegArg(fps));
|
|
10608
10656
|
const shouldUseGpu = useGpu && gpuEncoder !== null;
|
|
10657
|
+
appendRateCapArgs(args, options);
|
|
10609
10658
|
if (codec === "h264" || codec === "h265") {
|
|
10610
10659
|
if (shouldUseGpu) {
|
|
10611
10660
|
const encoderName = getGpuEncoderName(gpuEncoder, codec);
|
|
@@ -10968,7 +11017,7 @@ function isMemberGroupHidden(groupsById, el) {
|
|
|
10968
11017
|
}
|
|
10969
11018
|
|
|
10970
11019
|
// ../engine/src/services/videoFrameExtractor.ts
|
|
10971
|
-
import { copyFileSync as
|
|
11020
|
+
import { copyFileSync as copyFileSync3, existsSync as existsSync9, linkSync as linkSync2, mkdirSync as mkdirSync6, rmSync as rmSync6 } from "fs";
|
|
10972
11021
|
import { join as join11 } from "path";
|
|
10973
11022
|
import { cpus } from "os";
|
|
10974
11023
|
|
|
@@ -12112,47 +12161,98 @@ import {
|
|
|
12112
12161
|
lstatSync as lstatSync2,
|
|
12113
12162
|
mkdirSync as mkdirSync5,
|
|
12114
12163
|
readdirSync as readdirSync5,
|
|
12115
|
-
rmSync as
|
|
12164
|
+
rmSync as rmSync5,
|
|
12116
12165
|
statSync as statSync6,
|
|
12117
12166
|
utimesSync,
|
|
12118
12167
|
writeFileSync as writeFileSync3
|
|
12119
12168
|
} from "fs";
|
|
12120
12169
|
|
|
12121
12170
|
// ../engine/src/utils/renameWithRetry.ts
|
|
12122
|
-
import { renameSync } from "fs";
|
|
12123
|
-
import { rename } from "fs/promises";
|
|
12171
|
+
import { copyFileSync as copyFileSync2, renameSync } from "fs";
|
|
12172
|
+
import { copyFile, rename } from "fs/promises";
|
|
12173
|
+
|
|
12174
|
+
// ../engine/src/utils/removeScratch.ts
|
|
12175
|
+
import { AsyncLocalStorage } from "async_hooks";
|
|
12176
|
+
import { rmSync as rmSync4 } from "fs";
|
|
12177
|
+
var collecting = new AsyncLocalStorage();
|
|
12178
|
+
function removeScratch(path) {
|
|
12179
|
+
try {
|
|
12180
|
+
rmSync4(path, { recursive: true, force: true });
|
|
12181
|
+
} catch {
|
|
12182
|
+
collecting.getStore()?.push(path);
|
|
12183
|
+
}
|
|
12184
|
+
}
|
|
12185
|
+
async function collectScratchLeftovers(run, report) {
|
|
12186
|
+
const left = [];
|
|
12187
|
+
try {
|
|
12188
|
+
return await collecting.run(left, run);
|
|
12189
|
+
} finally {
|
|
12190
|
+
report(left);
|
|
12191
|
+
}
|
|
12192
|
+
}
|
|
12193
|
+
|
|
12194
|
+
// ../engine/src/utils/renameWithRetry.ts
|
|
12124
12195
|
var RETRYABLE = /* @__PURE__ */ new Set(["EPERM", "EACCES", "EBUSY"]);
|
|
12125
12196
|
var BACKOFF_MS = [10, 20, 40, 80, 160, 320, 640];
|
|
12126
12197
|
function isRetryable(error, platform) {
|
|
12127
12198
|
if (platform !== "win32") return false;
|
|
12128
12199
|
return RETRYABLE.has(error?.code ?? "");
|
|
12129
12200
|
}
|
|
12201
|
+
function nextStep(error, attempt, options, platform) {
|
|
12202
|
+
if (!isRetryable(error, platform)) return "throw";
|
|
12203
|
+
if (attempt < BACKOFF_MS.length) return "wait";
|
|
12204
|
+
return options.copyFallback ? "copy" : "throw";
|
|
12205
|
+
}
|
|
12130
12206
|
function sleepSync(ms) {
|
|
12131
12207
|
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
|
|
12132
12208
|
}
|
|
12133
12209
|
function renameWithRetry(from, to, options = {}) {
|
|
12134
12210
|
const doRename = options.rename ?? renameSync;
|
|
12211
|
+
const doCopy = options.copy ?? copyFileSync2;
|
|
12135
12212
|
const platform = options.platform ?? process.platform;
|
|
12136
12213
|
for (let attempt = 0; ; attempt++) {
|
|
12137
12214
|
try {
|
|
12138
12215
|
doRename(from, to);
|
|
12139
12216
|
return;
|
|
12140
12217
|
} catch (error) {
|
|
12141
|
-
|
|
12142
|
-
|
|
12218
|
+
const step = nextStep(error, attempt, options, platform);
|
|
12219
|
+
if (step === "throw") throw error;
|
|
12220
|
+
if (step === "wait") {
|
|
12221
|
+
sleepSync(BACKOFF_MS[attempt]);
|
|
12222
|
+
continue;
|
|
12223
|
+
}
|
|
12224
|
+
try {
|
|
12225
|
+
doCopy(from, to);
|
|
12226
|
+
} catch {
|
|
12227
|
+
throw error;
|
|
12228
|
+
}
|
|
12229
|
+
removeScratch(from);
|
|
12230
|
+
return;
|
|
12143
12231
|
}
|
|
12144
12232
|
}
|
|
12145
12233
|
}
|
|
12146
12234
|
async function renameWithRetryAsync(from, to, options = {}) {
|
|
12147
12235
|
const doRename = options.rename ?? rename;
|
|
12236
|
+
const doCopy = options.copy ?? copyFile;
|
|
12148
12237
|
const platform = options.platform ?? process.platform;
|
|
12149
12238
|
for (let attempt = 0; ; attempt++) {
|
|
12150
12239
|
try {
|
|
12151
12240
|
await doRename(from, to);
|
|
12152
12241
|
return;
|
|
12153
12242
|
} catch (error) {
|
|
12154
|
-
|
|
12155
|
-
|
|
12243
|
+
const step = nextStep(error, attempt, options, platform);
|
|
12244
|
+
if (step === "throw") throw error;
|
|
12245
|
+
if (step === "wait") {
|
|
12246
|
+
await new Promise((resolve2) => setTimeout(resolve2, BACKOFF_MS[attempt]));
|
|
12247
|
+
continue;
|
|
12248
|
+
}
|
|
12249
|
+
try {
|
|
12250
|
+
await doCopy(from, to);
|
|
12251
|
+
} catch {
|
|
12252
|
+
throw error;
|
|
12253
|
+
}
|
|
12254
|
+
removeScratch(from);
|
|
12255
|
+
return;
|
|
12156
12256
|
}
|
|
12157
12257
|
}
|
|
12158
12258
|
}
|
|
@@ -12240,7 +12340,7 @@ function publishCacheEntry(entry, partialDir) {
|
|
|
12240
12340
|
const winner = adoptPublishedWinner(entry, partialDir);
|
|
12241
12341
|
if (winner) return winner;
|
|
12242
12342
|
try {
|
|
12243
|
-
|
|
12343
|
+
rmSync5(entry.dir, { recursive: true, force: true });
|
|
12244
12344
|
} catch {
|
|
12245
12345
|
return { dir: partialDir, published: false };
|
|
12246
12346
|
}
|
|
@@ -12302,7 +12402,7 @@ function directorySizeBytes(path) {
|
|
|
12302
12402
|
}
|
|
12303
12403
|
function removeDir(path) {
|
|
12304
12404
|
try {
|
|
12305
|
-
|
|
12405
|
+
rmSync5(path, { recursive: true, force: true });
|
|
12306
12406
|
} catch {
|
|
12307
12407
|
}
|
|
12308
12408
|
}
|
|
@@ -12947,9 +13047,6 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
12947
13047
|
throw new Error("frameRanges extraction needs a constant-frame-rate source");
|
|
12948
13048
|
}
|
|
12949
13049
|
const args = urlInputArgs(videoPath);
|
|
12950
|
-
if (decodeWithVideoToolbox) {
|
|
12951
|
-
args.push("-hwaccel", "videotoolbox");
|
|
12952
|
-
}
|
|
12953
13050
|
if (codecMayHaveAlpha(metadata.videoCodec)) {
|
|
12954
13051
|
args.push("-c:v", decoderForCodec(metadata.videoCodec));
|
|
12955
13052
|
}
|
|
@@ -12997,8 +13094,8 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
12997
13094
|
const segmentFrames = Math.round(EXTRACTION_SEGMENT_SECONDS * fps);
|
|
12998
13095
|
const totalFrames = extractionFrameCountForDuration(duration, normalizedFps, metadata.isVFR);
|
|
12999
13096
|
const boundVfrFrameCount = metadata.isVFR && totalFrames > 0;
|
|
13000
|
-
const
|
|
13001
|
-
decodeArgs,
|
|
13097
|
+
const extract = (hwaccel) => sampleAtOutputFps && (options.frameRanges || boundVfrFrameCount || totalFrames > segmentFrames) ? runSegmentedExtraction({
|
|
13098
|
+
decodeArgs: [...hwaccel, ...decodeArgs],
|
|
13002
13099
|
filterAndEncodeArgs: (seek) => [...filterArgsFor(seek), ...encodeArgs],
|
|
13003
13100
|
videoPath,
|
|
13004
13101
|
startTime,
|
|
@@ -13009,10 +13106,17 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
13009
13106
|
segmentFrames
|
|
13010
13107
|
),
|
|
13011
13108
|
runOptions
|
|
13012
|
-
}) :
|
|
13013
|
-
() => runFfmpeg(
|
|
13109
|
+
}) : inExtractionSlot(
|
|
13110
|
+
() => runFfmpeg(
|
|
13111
|
+
[...hwaccel, ...args, ...filterArgsFor(startTime), ...encodeArgs],
|
|
13112
|
+
runOptions
|
|
13113
|
+
),
|
|
13014
13114
|
signal
|
|
13015
13115
|
);
|
|
13116
|
+
let processResult = await extract(decodeWithVideoToolbox ? ["-hwaccel", "videotoolbox"] : []);
|
|
13117
|
+
const ffmpegExitedFailing = processResult.terminationReason === "exit" && !processResult.success && !processResult.failureReason;
|
|
13118
|
+
const videoToolboxWasOptional = decodeWithVideoToolbox && !keepsHdrForChrome;
|
|
13119
|
+
if (ffmpegExitedFailing && videoToolboxWasOptional) processResult = await extract([]);
|
|
13016
13120
|
if (processResult.failureReason === "external_interruption") {
|
|
13017
13121
|
throw new VideoSourceExtractionError(
|
|
13018
13122
|
"external_interruption",
|
|
@@ -13311,7 +13415,7 @@ function linkOrCopyFrame(src, dest) {
|
|
|
13311
13415
|
try {
|
|
13312
13416
|
linkSync2(src, dest);
|
|
13313
13417
|
} catch {
|
|
13314
|
-
|
|
13418
|
+
copyFileSync3(src, dest);
|
|
13315
13419
|
}
|
|
13316
13420
|
}
|
|
13317
13421
|
function supersetGroupingKey(work, fps) {
|
|
@@ -13401,7 +13505,7 @@ function planSupersetGroups(misses, fps) {
|
|
|
13401
13505
|
}
|
|
13402
13506
|
function sliceSupersetMember(member, superset, outputDir, fps, configuredFps) {
|
|
13403
13507
|
const { work } = member.miss;
|
|
13404
|
-
|
|
13508
|
+
rmSync6(outputDir, { recursive: true, force: true });
|
|
13405
13509
|
mkdirSync6(outputDir, { recursive: true });
|
|
13406
13510
|
const requestedFrames = extractionFrameCountForDuration(
|
|
13407
13511
|
work.videoDuration,
|
|
@@ -13733,14 +13837,14 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
13733
13837
|
maxTransientRetries,
|
|
13734
13838
|
onRetry: () => {
|
|
13735
13839
|
recordTransientRetries(1);
|
|
13736
|
-
|
|
13840
|
+
rmSync6(outputDir, { recursive: true, force: true });
|
|
13737
13841
|
}
|
|
13738
13842
|
}
|
|
13739
13843
|
);
|
|
13740
13844
|
return attempted2.result;
|
|
13741
13845
|
}
|
|
13742
13846
|
const partialDir = partialCacheEntryDir(cacheTarget.entry);
|
|
13743
|
-
|
|
13847
|
+
rmSync6(partialDir, { recursive: true, force: true });
|
|
13744
13848
|
mkdirSync6(partialDir, { recursive: true });
|
|
13745
13849
|
const attempted = await runVideoExtractionWithRetry(
|
|
13746
13850
|
() => extractVideoFramesRange(
|
|
@@ -13758,7 +13862,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
13758
13862
|
maxTransientRetries,
|
|
13759
13863
|
onRetry: () => {
|
|
13760
13864
|
recordTransientRetries(1);
|
|
13761
|
-
|
|
13865
|
+
rmSync6(partialDir, { recursive: true, force: true });
|
|
13762
13866
|
mkdirSync6(partialDir, { recursive: true });
|
|
13763
13867
|
}
|
|
13764
13868
|
}
|
|
@@ -13842,7 +13946,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
13842
13946
|
} catch {
|
|
13843
13947
|
return null;
|
|
13844
13948
|
} finally {
|
|
13845
|
-
|
|
13949
|
+
rmSync6(probeDir, { recursive: true, force: true });
|
|
13846
13950
|
}
|
|
13847
13951
|
}
|
|
13848
13952
|
async function executeDirectMiss(miss, maxTransientRetries = options.maxTransientRetries ?? 0) {
|
|
@@ -13878,7 +13982,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
13878
13982
|
if (!first) return [];
|
|
13879
13983
|
const tempDir = cacheRootDir ? join11(cacheRootDir, `${group.groupId}.partial-${process.pid}`) : join11(options.outputDir, group.groupId);
|
|
13880
13984
|
try {
|
|
13881
|
-
|
|
13985
|
+
rmSync6(tempDir, { recursive: true, force: true });
|
|
13882
13986
|
const superset = await extractVideoFramesRange(
|
|
13883
13987
|
first.videoPath,
|
|
13884
13988
|
group.groupId,
|
|
@@ -13911,7 +14015,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
13911
14015
|
);
|
|
13912
14016
|
return fallback;
|
|
13913
14017
|
} finally {
|
|
13914
|
-
|
|
14018
|
+
rmSync6(tempDir, { recursive: true, force: true });
|
|
13915
14019
|
}
|
|
13916
14020
|
}
|
|
13917
14021
|
const preparedExtractions = await Promise.all(
|
|
@@ -14220,7 +14324,7 @@ var FrameLookupTable = class {
|
|
|
14220
14324
|
for (const video of this.videos.values()) {
|
|
14221
14325
|
if (video.extracted.ownedByLookup) continue;
|
|
14222
14326
|
if (existsSync9(video.extracted.outputDir)) {
|
|
14223
|
-
|
|
14327
|
+
rmSync6(video.extracted.outputDir, { recursive: true, force: true });
|
|
14224
14328
|
}
|
|
14225
14329
|
}
|
|
14226
14330
|
this.videos.clear();
|
|
@@ -14725,7 +14829,7 @@ async function queryElementStacking(page, nativeHdrIds) {
|
|
|
14725
14829
|
}
|
|
14726
14830
|
|
|
14727
14831
|
// ../engine/src/services/audioMixer.ts
|
|
14728
|
-
import { closeSync as closeSync4, existsSync as existsSync11, mkdirSync as mkdirSync7, mkdtempSync as mkdtempSync8, openSync as openSync4, rmSync as
|
|
14832
|
+
import { closeSync as closeSync4, existsSync as existsSync11, mkdirSync as mkdirSync7, mkdtempSync as mkdtempSync8, openSync as openSync4, rmSync as rmSync8, writeFileSync as writeFileSync7 } from "fs";
|
|
14729
14833
|
import { join as join15, dirname as dirname7, isAbsolute, relative } from "path";
|
|
14730
14834
|
|
|
14731
14835
|
// ../engine/src/utils/notMediaPayload.ts
|
|
@@ -14845,7 +14949,7 @@ import { cpus as cpus2 } from "os";
|
|
|
14845
14949
|
|
|
14846
14950
|
// ../engine/src/services/aacEncode.ts
|
|
14847
14951
|
import { execFile as execFile3 } from "child_process";
|
|
14848
|
-
import { mkdtempSync as mkdtempSync5, readFileSync as readFileSync5,
|
|
14952
|
+
import { mkdtempSync as mkdtempSync5, readFileSync as readFileSync5, writeFileSync as writeFileSync4 } from "fs";
|
|
14849
14953
|
import { dirname as dirname5, join as join12 } from "path";
|
|
14850
14954
|
var SAMPLE_RATE = 48e3;
|
|
14851
14955
|
var FRAME_SAMPLES = 1024;
|
|
@@ -14971,7 +15075,7 @@ async function encodeAac(input, outputPath, totalDuration, {
|
|
|
14971
15075
|
const slowest = Math.max(...results.map((result) => result.durationMs));
|
|
14972
15076
|
return { ...muxed, durationMs: slowest + muxed.durationMs };
|
|
14973
15077
|
} finally {
|
|
14974
|
-
|
|
15078
|
+
removeScratch(dir);
|
|
14975
15079
|
}
|
|
14976
15080
|
}
|
|
14977
15081
|
|
|
@@ -15436,7 +15540,6 @@ import {
|
|
|
15436
15540
|
openSync as openSync3,
|
|
15437
15541
|
readFileSync as readFileSync7,
|
|
15438
15542
|
readSync,
|
|
15439
|
-
rmSync as rmSync8,
|
|
15440
15543
|
statSync as statSync7,
|
|
15441
15544
|
writeFileSync as writeFileSync6,
|
|
15442
15545
|
writeSync as writeSync2
|
|
@@ -15809,7 +15912,7 @@ async function withFxBrowser(options, body) {
|
|
|
15809
15912
|
`Audio FX failed for track ${options.trackId}: ${err.message}`
|
|
15810
15913
|
);
|
|
15811
15914
|
} finally {
|
|
15812
|
-
|
|
15915
|
+
removeScratch(hostDir);
|
|
15813
15916
|
await lease?.release().catch(() => void 0);
|
|
15814
15917
|
}
|
|
15815
15918
|
}
|
|
@@ -16328,7 +16431,7 @@ async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, durat
|
|
|
16328
16431
|
failure: failure2
|
|
16329
16432
|
};
|
|
16330
16433
|
} finally {
|
|
16331
|
-
|
|
16434
|
+
removeScratch(cycleDir);
|
|
16332
16435
|
}
|
|
16333
16436
|
}
|
|
16334
16437
|
const inputSeek = mediaStart >= (metadata?.latestStreamLeadSeconds ?? 0);
|
|
@@ -16502,7 +16605,7 @@ async function mixAudioTracksFlat(tracks, outputPath, totalDuration, signal, con
|
|
|
16502
16605
|
currentArgs[currentArgs.indexOf("-filter_complex_script")] = "-/filter_complex";
|
|
16503
16606
|
return await runFfmpeg(currentArgs, { signal, timeout: ffmpegProcessTimeout });
|
|
16504
16607
|
} finally {
|
|
16505
|
-
|
|
16608
|
+
removeScratch(scriptDir);
|
|
16506
16609
|
}
|
|
16507
16610
|
};
|
|
16508
16611
|
let useNormalize = true;
|
|
@@ -16622,7 +16725,7 @@ async function mixGroupMembersFlat(memberTracks, outputPath, totalDuration, sign
|
|
|
16622
16725
|
currentArgs[currentArgs.indexOf("-filter_complex_script")] = "-/filter_complex";
|
|
16623
16726
|
return await runFfmpeg(currentArgs, { signal, timeout: ffmpegProcessTimeout });
|
|
16624
16727
|
} finally {
|
|
16625
|
-
|
|
16728
|
+
removeScratch(scriptDir);
|
|
16626
16729
|
}
|
|
16627
16730
|
};
|
|
16628
16731
|
let useNormalize = true;
|
|
@@ -16683,8 +16786,8 @@ async function sumInSlices(tracks, scratchDir, totalDuration, signal, config) {
|
|
|
16683
16786
|
signal,
|
|
16684
16787
|
config
|
|
16685
16788
|
);
|
|
16686
|
-
|
|
16687
|
-
|
|
16789
|
+
removeScratch(running.srcPath);
|
|
16790
|
+
removeScratch(slicePath);
|
|
16688
16791
|
if (!folded.success) return folded;
|
|
16689
16792
|
running = wavTrack(id, foldedPath);
|
|
16690
16793
|
}
|
|
@@ -16700,10 +16803,10 @@ async function mixGroupMembers(memberTracks, outputPath, totalDuration, signal,
|
|
|
16700
16803
|
try {
|
|
16701
16804
|
const summed = await sumInSlices(memberTracks, scratchDir, totalDuration, signal, config);
|
|
16702
16805
|
if (!summed.success) return summed;
|
|
16703
|
-
renameWithRetry(summed.track.srcPath, outputPath);
|
|
16806
|
+
renameWithRetry(summed.track.srcPath, outputPath, { copyFallback: true });
|
|
16704
16807
|
return { success: true, degradedAutomation: summed.degradedAutomation };
|
|
16705
16808
|
} finally {
|
|
16706
|
-
|
|
16809
|
+
removeScratch(scratchDir);
|
|
16707
16810
|
}
|
|
16708
16811
|
}
|
|
16709
16812
|
async function mixAudioTracks(tracks, outputPath, totalDuration, signal, config) {
|
|
@@ -16737,7 +16840,7 @@ async function mixAudioTracks(tracks, outputPath, totalDuration, signal, config)
|
|
|
16737
16840
|
error: summed.degradedAutomation ? "Volume automation exceeded this ffmpeg build's expression limits; rendered at base volume" : mixed.error
|
|
16738
16841
|
} : mixed;
|
|
16739
16842
|
} finally {
|
|
16740
|
-
|
|
16843
|
+
removeScratch(scratchDir);
|
|
16741
16844
|
}
|
|
16742
16845
|
}
|
|
16743
16846
|
async function mixThroughFloatSum(tracks, masterChain, outputPath, workDir, totalDuration, signal, config) {
|
|
@@ -16770,7 +16873,8 @@ async function mixThroughFloatSum(tracks, masterChain, outputPath, workDir, tota
|
|
|
16770
16873
|
failures: [failure]
|
|
16771
16874
|
};
|
|
16772
16875
|
}
|
|
16773
|
-
if (config?.keepEncoderInputAt)
|
|
16876
|
+
if (config?.keepEncoderInputAt)
|
|
16877
|
+
renameWithRetry(encoderInput, config.keepEncoderInputAt, { copyFallback: true });
|
|
16774
16878
|
return {
|
|
16775
16879
|
...sum,
|
|
16776
16880
|
outputPath,
|
|
@@ -17023,7 +17127,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
17023
17127
|
).catch((err) => {
|
|
17024
17128
|
internalController.abort();
|
|
17025
17129
|
try {
|
|
17026
|
-
|
|
17130
|
+
rmSync8(workDir, { recursive: true, force: true });
|
|
17027
17131
|
} catch {
|
|
17028
17132
|
}
|
|
17029
17133
|
throw err;
|
|
@@ -17048,7 +17152,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
17048
17152
|
});
|
|
17049
17153
|
const removeWorkDir = () => {
|
|
17050
17154
|
try {
|
|
17051
|
-
|
|
17155
|
+
rmSync8(workDir, { recursive: true, force: true });
|
|
17052
17156
|
} catch {
|
|
17053
17157
|
}
|
|
17054
17158
|
};
|
|
@@ -17207,7 +17311,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
17207
17311
|
// ../engine/src/services/parallelCoordinator.ts
|
|
17208
17312
|
import { cpus as cpus3, freemem } from "os";
|
|
17209
17313
|
import { existsSync as existsSync12, mkdirSync as mkdirSync8, readdirSync as readdirSync6 } from "fs";
|
|
17210
|
-
import { copyFile, readFile as readFile2 } from "fs/promises";
|
|
17314
|
+
import { copyFile as copyFile2, readFile as readFile2 } from "fs/promises";
|
|
17211
17315
|
import { join as join17 } from "path";
|
|
17212
17316
|
import { getHeapStatistics } from "v8";
|
|
17213
17317
|
|
|
@@ -17513,18 +17617,20 @@ function resolveParallelWorkerTimeoutMs(enabled) {
|
|
|
17513
17617
|
const parsed = raw ? Number(raw) : Number.NaN;
|
|
17514
17618
|
return Number.isFinite(parsed) && parsed > 0 ? parsed : 3e4;
|
|
17515
17619
|
}
|
|
17516
|
-
async function captureFrameRange(session, task, captureOptions, signal, onFrameCaptured, onFrameBuffer, phaseTimeoutMs, diagnosticFor, onWorkerPhase) {
|
|
17620
|
+
async function captureFrameRange(session, task, captureOptions, signal, onFrameCaptured, onFrameBuffer, phaseTimeoutMs, diagnosticFor, onWorkerPhase, onWorkerOperation) {
|
|
17517
17621
|
let framesCaptured = 0;
|
|
17518
17622
|
const outputOffset = task.outputFrameOffset ?? 0;
|
|
17519
17623
|
const stride = task.frameStride ?? 1;
|
|
17520
17624
|
const runCaptureOperation = (phase, frameIndex, operation) => {
|
|
17521
|
-
const diagnostic = diagnosticFor(phase, frameIndex);
|
|
17625
|
+
const diagnostic = { ...diagnosticFor(phase, frameIndex), readStep: () => session.captureStep };
|
|
17522
17626
|
if (framesCaptured === 0) onWorkerPhase?.(diagnostic);
|
|
17627
|
+
onWorkerOperation?.(diagnostic);
|
|
17523
17628
|
return withParallelWorkerDeadline(operation(), diagnostic, phaseTimeoutMs, signal);
|
|
17524
17629
|
};
|
|
17525
17630
|
const awaitEncode = (frameIndex, encodeResult) => {
|
|
17526
17631
|
const diagnostic = diagnosticFor("frame_encode", frameIndex);
|
|
17527
17632
|
if (framesCaptured === 0) onWorkerPhase?.(diagnostic);
|
|
17633
|
+
onWorkerOperation?.(diagnostic);
|
|
17528
17634
|
return withParallelWorkerDeadline(encodeResult, diagnostic, phaseTimeoutMs, signal);
|
|
17529
17635
|
};
|
|
17530
17636
|
if (onFrameBuffer && session.workerEncodeEnabled) {
|
|
@@ -17670,7 +17776,7 @@ async function verifyDiskDrawElementSamples(session, task, streaming) {
|
|
|
17670
17776
|
assertDiskSampleAboveFloor(db, verifyMinDb, idx, task.workerId);
|
|
17671
17777
|
}
|
|
17672
17778
|
}
|
|
17673
|
-
async function executeWorkerTask(task, serverUrl, captureOptions, createBeforeCaptureHook, signal, onFrameCaptured, onFrameBuffer, config, parallel, onFailure, onWorkerPhase) {
|
|
17779
|
+
async function executeWorkerTask(task, serverUrl, captureOptions, createBeforeCaptureHook, signal, onFrameCaptured, onFrameBuffer, config, parallel, onFailure, onWorkerPhase, onWorkerOperation) {
|
|
17674
17780
|
const startTime = Date.now();
|
|
17675
17781
|
let framesCaptured = 0;
|
|
17676
17782
|
if (!existsSync12(task.outputDir)) mkdirSync8(task.outputDir, { recursive: true });
|
|
@@ -17743,7 +17849,8 @@ async function executeWorkerTask(task, serverUrl, captureOptions, createBeforeCa
|
|
|
17743
17849
|
onFrameBuffer,
|
|
17744
17850
|
phaseTimeoutMs,
|
|
17745
17851
|
diagnosticFor,
|
|
17746
|
-
onWorkerPhase
|
|
17852
|
+
onWorkerPhase,
|
|
17853
|
+
onWorkerOperation
|
|
17747
17854
|
);
|
|
17748
17855
|
await verifyDiskDrawElementSamples(activeSession, task, Boolean(onFrameBuffer));
|
|
17749
17856
|
perf = getCapturePerfSummary(activeSession);
|
|
@@ -17883,7 +17990,8 @@ async function executeParallelCapture(serverUrl, workDir, tasks, captureOptions,
|
|
|
17883
17990
|
config,
|
|
17884
17991
|
parallel,
|
|
17885
17992
|
onFailure,
|
|
17886
|
-
onWorkerPhase
|
|
17993
|
+
onWorkerPhase,
|
|
17994
|
+
hooks?.onWorkerOperation
|
|
17887
17995
|
)
|
|
17888
17996
|
)
|
|
17889
17997
|
);
|
|
@@ -17918,7 +18026,7 @@ async function mergeWorkerFrames(workDir, tasks, outputDir) {
|
|
|
17918
18026
|
try {
|
|
17919
18027
|
await renameWithRetryAsync(sourcePath, targetPath);
|
|
17920
18028
|
} catch {
|
|
17921
|
-
await
|
|
18029
|
+
await copyFile2(sourcePath, targetPath);
|
|
17922
18030
|
}
|
|
17923
18031
|
});
|
|
17924
18032
|
await Promise.all(copyTasks);
|
|
@@ -18489,6 +18597,8 @@ export {
|
|
|
18489
18597
|
readRenderProvenance,
|
|
18490
18598
|
ENCODER_PRESETS,
|
|
18491
18599
|
getEncoderPreset,
|
|
18600
|
+
keyframeIntervalToGopSize,
|
|
18601
|
+
appendRateCapArgs,
|
|
18492
18602
|
buildEncoderArgs,
|
|
18493
18603
|
encodeFramesFromDir,
|
|
18494
18604
|
buildConcatArgs,
|
|
@@ -18512,6 +18622,8 @@ export {
|
|
|
18512
18622
|
fetchPublicHttpsText,
|
|
18513
18623
|
downloadToTemp,
|
|
18514
18624
|
isHttpUrl,
|
|
18625
|
+
removeScratch,
|
|
18626
|
+
collectScratchLeftovers,
|
|
18515
18627
|
renameWithRetry,
|
|
18516
18628
|
renameWithRetryAsync,
|
|
18517
18629
|
directorySizeBytes,
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LK6KPVX2.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-ZOXUSGAP.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
writeNewFileSync
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XMRA7CQG.js";
|
|
10
10
|
import {
|
|
11
11
|
normalizeSkillSlug
|
|
12
12
|
} from "./chunk-HVW7ABXD.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_REGISTRY_URL
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XKW4Z7BU.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/projectConfig.ts
|
|
18
18
|
import { readFileSync, writeFileSync } from "fs";
|
|
@@ -14,19 +14,19 @@ import {
|
|
|
14
14
|
} from "./chunk-DKPNNYBZ.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveCaptureBrowserGpuMode
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LPI7HX4G.js";
|
|
18
18
|
import {
|
|
19
19
|
requestCliExit
|
|
20
20
|
} from "./chunk-JVBRJMOP.js";
|
|
21
|
+
import {
|
|
22
|
+
processIsAlive
|
|
23
|
+
} from "./chunk-KGPLIH7B.js";
|
|
21
24
|
import {
|
|
22
25
|
withHyperframesBrowserMarker
|
|
23
26
|
} from "./chunk-K4MJX7SR.js";
|
|
24
27
|
import {
|
|
25
28
|
normalizeErrorMessage
|
|
26
29
|
} from "./chunk-T2EUWCJE.js";
|
|
27
|
-
import {
|
|
28
|
-
processIsAlive
|
|
29
|
-
} from "./chunk-KGPLIH7B.js";
|
|
30
30
|
|
|
31
31
|
// src/browser/windowsChromeWatchdog.ts
|
|
32
32
|
import { spawn } from "child_process";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
VALID_CANVAS_RESOLUTIONS,
|
|
9
9
|
resolveResolutionFlagPair
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NHA4NRBE.js";
|
|
11
11
|
|
|
12
12
|
// src/utils/parseOutputResolution.ts
|
|
13
13
|
function parseOutputResolutionFlag(raw, options) {
|
|
@@ -1278,7 +1278,7 @@ async function withFigmaErrors(command, fn) {
|
|
|
1278
1278
|
} catch (err) {
|
|
1279
1279
|
if (err instanceof Error) {
|
|
1280
1280
|
try {
|
|
1281
|
-
const { trackCommandFailure } = await import("./events-
|
|
1281
|
+
const { trackCommandFailure } = await import("./events-MBRNA3UF.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|