hyperframes 0.9.4 → 0.9.6
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-KGLQRDOR.js → add-FI2ERBMZ.js} +11 -11
- package/dist/{agentPromptGenerator-43OTO3ZQ.js → agentPromptGenerator-DZTXHJV3.js} +5 -5
- package/dist/{animatedGifPrep-AELBI6OZ.js → animatedGifPrep-GXQA4KCD.js} +5 -5
- package/dist/api.d.ts +2 -0
- package/dist/api.js +19 -19
- package/dist/{asset-IDDA6YDA.js → asset-BRSG6JNL.js} +2 -2
- package/dist/{assetCataloger-3ODHJX74.js → assetCataloger-KVWF4SRK.js} +6 -6
- package/dist/{audio-YL5WE2ZH.js → audio-BVZOX6LU.js} +502 -143
- package/dist/{auth-73AQ4C6J.js → auth-HFFN7USX.js} +2 -2
- package/dist/{autoUpdate-PRACQEE2.js → autoUpdate-JNGMUXLZ.js} +2 -2
- package/dist/{backgroundChecks-GF7DD3CT.js → backgroundChecks-O4ADPXOL.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-PHXZBVEA.js → batchRender-A2HW6QW7.js} +3 -3
- package/dist/{beats-RIYL6FAW.js → beats-F7Q3G6VW.js} +7 -7
- package/dist/{benchmark-ZXWBR4Q2.js → benchmark-4BDMIYTW.js} +8 -8
- package/dist/{billing-FFWAEIQ6.js → billing-35NVMZWK.js} +1 -1
- package/dist/{browser-RQVUIRKR.js → browser-S6ADXSB7.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-U23CIGZT.js → bundleWithLocalizedFonts-EE27EYEU.js} +2 -2
- package/dist/{capture-XLIZO7S4.js → capture-CXDJO524.js} +18 -18
- package/dist/{capture-DKLV3MKZ.js → capture-LWWBL6SH.js} +3 -3
- package/dist/{captureCompositionFrame-IDLA33HO.js → captureCompositionFrame-BB2ZGM6R.js} +10 -10
- package/dist/{catalog-GCEMAJ2A.js → catalog-RQ6HIUBG.js} +18 -15
- package/dist/{catch-up-JGEVDQYE.js → catch-up-PBAXR7FI.js} +4 -4
- package/dist/{check-UFFVDSOH.js → check-O4V4UWE3.js} +35 -35
- package/dist/{checkAudio-AJHD4QXP.js → checkAudio-EUT3AO3L.js} +8 -8
- package/dist/{checkBrowser-HZPWQLY6.js → checkBrowser-QQUBR4QI.js} +29 -29
- package/dist/{chunk-R4KSPN37.js → chunk-27AVZR7K.js} +17 -17
- package/dist/{chunk-Y5PWLNW3.js → chunk-2FNUCIHD.js} +1 -1
- package/dist/{chunk-KXU3FDXG.js → chunk-2KO357TJ.js} +1 -1
- package/dist/chunk-2KYY75JP.js +134 -0
- package/dist/{chunk-HVWZ5V2N.js → chunk-3SB24TVT.js} +1 -1
- package/dist/{chunk-BXE6GDIL.js → chunk-44T2V4EW.js} +1 -1
- package/dist/{chunk-LSFXDBHZ.js → chunk-47IBOMXH.js} +3 -3
- package/dist/{chunk-VUGARSNN.js → chunk-4E7G2GME.js} +1 -1
- package/dist/{chunk-VBR3OBZU.js → chunk-4III3SDC.js} +9 -9
- package/dist/{chunk-CS6UO5NC.js → chunk-4VOK22DG.js} +1 -1
- package/dist/{chunk-G5X2YP75.js → chunk-5BCFV2HE.js} +3 -3
- package/dist/{chunk-5T2D2XYR.js → chunk-6GZB32Q5.js} +1 -1
- package/dist/{chunk-HWIGWPIG.js → chunk-6JMNJYYR.js} +1 -1
- package/dist/{chunk-SYHDFH34.js → chunk-6UOHLXVU.js} +2 -2
- package/dist/{chunk-T6NMZNAE.js → chunk-7DKGU6CY.js} +2 -2
- package/dist/{chunk-CPXT5NUE.js → chunk-AB3ZXWI3.js} +1 -1
- package/dist/{chunk-OKMXRVAN.js → chunk-APVBITVZ.js} +55 -16
- package/dist/{chunk-AVJDYPVP.js → chunk-BIJBGCF4.js} +1 -1
- package/dist/{chunk-C3OOOE6D.js → chunk-BMRZP6X6.js} +1 -1
- package/dist/{chunk-EYYILEMR.js → chunk-BQQTZET2.js} +2 -2
- package/dist/{chunk-RDE3O5OK.js → chunk-BUDP4GF4.js} +1 -1
- package/dist/{chunk-VSDUDDHB.js → chunk-C47ZGVKT.js} +7 -7
- package/dist/{chunk-7UVXHPVS.js → chunk-CUAZHDVV.js} +3 -3
- package/dist/{chunk-XZ2DZYFD.js → chunk-DETBSOYO.js} +1 -1
- package/dist/{chunk-DAF2SYII.js → chunk-DUSSDJJC.js} +2 -2
- package/dist/{chunk-CQL77BAS.js → chunk-E2VWKW2A.js} +2 -2
- package/dist/{chunk-IWMVCOUX.js → chunk-FB366S4I.js} +5 -5
- package/dist/{chunk-YL6X26WT.js → chunk-FDZXVTBY.js} +1 -1
- package/dist/{chunk-W6NEVGAE.js → chunk-FIIFME5M.js} +1 -1
- package/dist/{chunk-OOGTMIN4.js → chunk-FM7VWSN3.js} +1 -1
- package/dist/{chunk-MYTROPEC.js → chunk-FP37FSOT.js} +2 -2
- package/dist/{chunk-SEFLUI7L.js → chunk-G4VDT5D7.js} +1 -1
- package/dist/{chunk-WRIA42TA.js → chunk-GKVERDJ2.js} +1 -1
- package/dist/{chunk-XHLPTVXH.js → chunk-GP7OHHXR.js} +1 -1
- package/dist/{chunk-KW2ZREKY.js → chunk-GR3LU4D5.js} +1 -1
- package/dist/{chunk-QAB2ZMFL.js → chunk-GYPSZFRF.js} +2 -2
- package/dist/{chunk-ZDBN76JQ.js → chunk-HTTGTROQ.js} +1 -1
- package/dist/{chunk-UWNLBTFA.js → chunk-I2OMLFBJ.js} +1 -1
- package/dist/{chunk-LBETJASR.js → chunk-I47SIQGX.js} +4 -4
- package/dist/{chunk-K3AKRESE.js → chunk-IG3GSBHB.js} +2 -2
- package/dist/{chunk-6LDW4TLQ.js → chunk-IVFZG3CU.js} +2 -2
- package/dist/{chunk-HZMM3D6P.js → chunk-JFIBO4CZ.js} +1 -1
- package/dist/{chunk-2RLI5ISA.js → chunk-JLKEXS4I.js} +2 -2
- package/dist/{chunk-SGTO3Y2K.js → chunk-JLLNDU2F.js} +84 -8
- package/dist/{chunk-TGX5AWVQ.js → chunk-KAWNVSAE.js} +7 -7
- package/dist/{chunk-DUZII3C4.js → chunk-KJDQS24S.js} +2 -2
- package/dist/{chunk-NYQRWXZZ.js → chunk-KJLZZ4MY.js} +1 -1
- package/dist/{chunk-EOVTVB5X.js → chunk-KXAGCBVO.js} +250 -137
- package/dist/{chunk-7SYZRT4L.js → chunk-L6MNWJTL.js} +1 -1
- package/dist/{chunk-Q4PFOT6Z.js → chunk-LS4CCRTK.js} +1 -1
- package/dist/{chunk-VGARKT5Y.js → chunk-M4WEGGF7.js} +2 -2
- package/dist/{chunk-ZXD4YXXC.js → chunk-ODKXNWDL.js} +2 -2
- package/dist/{chunk-6U4EV64B.js → chunk-P5GOQDA2.js} +8 -8
- package/dist/{chunk-GS4C2FNZ.js → chunk-PWYAOU4I.js} +1 -1
- package/dist/{chunk-IIBNGLEX.js → chunk-QDB7EFLI.js} +259 -50
- package/dist/{chunk-5PKNT2BQ.js → chunk-RYNMIBZM.js} +2 -2
- package/dist/{chunk-65ERKMRH.js → chunk-SAWXMCHB.js} +1 -1
- package/dist/{chunk-A2PZLDHN.js → chunk-SWWDVPVO.js} +7 -4
- package/dist/{chunk-KBKDDTOZ.js → chunk-T57ARBNR.js} +7 -7
- package/dist/{chunk-VGIEM4JZ.js → chunk-TIXW6JWD.js} +1 -1
- package/dist/chunk-TNWWLO4T.js +5030 -0
- package/dist/{chunk-R5XOR2IO.js → chunk-TS4HYR6I.js} +1 -1
- package/dist/{chunk-AQW3ZDDM.js → chunk-VFOCEFRZ.js} +5 -5
- package/dist/{chunk-SXGR4GCO.js → chunk-VG4JPJMI.js} +2 -2
- package/dist/{chunk-TLYTMIXP.js → chunk-VWRIARRR.js} +12 -12
- package/dist/{chunk-T46SP3UD.js → chunk-W3G7DNCR.js} +2 -2
- package/dist/{chunk-6OBVJUMS.js → chunk-WCET3OHQ.js} +4 -4
- package/dist/{chunk-U7DQYDRQ.js → chunk-XC3LDNBH.js} +1 -1
- package/dist/{chunk-VVPDROQU.js → chunk-YDG5LVIK.js} +4 -4
- package/dist/{chunk-QT7F5JKP.js → chunk-YFISKULK.js} +2 -2
- package/dist/{chunk-F4LQGW5F.js → chunk-YIWNZ2CI.js} +13 -13
- package/dist/{chunk-WTUIK6Y4.js → chunk-YOZPHSYV.js} +2 -0
- package/dist/{chunk-DRXVRDUX.js → chunk-YUMVQB2F.js} +1 -1
- package/dist/{chunk-YBFS5PCE.js → chunk-YVUOJW4H.js} +1 -1
- package/dist/{chunk-FI7SOWBQ.js → chunk-YY7YI2FW.js} +1 -1
- package/dist/{chunk-RISL4HHS.js → chunk-ZP3LPFTA.js} +9 -9
- package/dist/{chunk-5NWS6KLM.js → chunk-ZR2GMFNH.js} +2 -2
- package/dist/{chunk-H7KAHDJJ.js → chunk-ZV5GD5LV.js} +3 -3
- package/dist/{clean-T7DQNAR2.js → clean-2AFJGFIG.js} +15 -15
- package/dist/cli.js +58 -57
- package/dist/{cloud-S4DTHZEW.js → cloud-JM5MFMVV.js} +4 -4
- package/dist/{cloudrun-TWSNNKIV.js → cloudrun-PNVETMPA.js} +4 -4
- package/dist/{compare-UZS33RAM.js → compare-ST4DXEMX.js} +26 -26
- package/dist/{compiler-SKQTN3EA.js → compiler-UCX3MZVN.js} +2 -2
- package/dist/{component-RHX4425M.js → component-ECFJIDUD.js} +3 -3
- package/dist/{compositions-PE5F4Z6K.js → compositions-ZCAD47PD.js} +9 -9
- package/dist/{curve-NFVM6GS3.js → curve-NYXZWGPO.js} +9 -9
- package/dist/{cuts-EKHMAUOZ.js → cuts-CKUCNNOX.js} +10 -10
- package/dist/{delete-IQQLQS7T.js → delete-MVGSOWSC.js} +2 -2
- package/dist/{deploy-GG24Q4EE.js → deploy-WBKPSWPG.js} +4 -4
- package/dist/{describeProject-DCUVSIOQ.js → describeProject-ZDI5B6JO.js} +6 -6
- package/dist/{diff-IQVYEYA3.js → diff-3UYDXIEZ.js} +21 -21
- package/dist/{dist-4KKPG6A5.js → dist-XRAW3URT.js} +2 -2
- package/dist/{doctor-BEFL6PWV.js → doctor-A4HMMBII.js} +9 -9
- package/dist/{energy-LZY5CQVP.js → energy-RN6KTYH6.js} +10 -10
- package/dist/{events-C335VVXI.js → events-6NE2NRCQ.js} +12 -12
- package/dist/{events-VSDE4FFW.js → events-AO3FEPL3.js} +3 -3
- package/dist/{events-Z4I2YBA4.js → events-LSEMS2LO.js} +2 -2
- package/dist/{extract-N4KV7KUQ.js → extract-6UO4QR77.js} +10 -10
- package/dist/{face-DCKACTUC.js → face-FTKPGC2O.js} +10 -10
- package/dist/{feedback-FQ2P62K7.js → feedback-GSKVBGA7.js} +6 -6
- package/dist/{ffmpeg-HYYU3M6K.js → ffmpeg-HPMQUKY4.js} +5 -5
- package/dist/{figma-JWZLYFMJ.js → figma-UIWB3XSX.js} +3 -3
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{frames-Z6ATQUGJ.js → frames-U3LLSXSV.js} +11 -11
- package/dist/{generate-FHVQMXVB.js → generate-AFCKBHGB.js} +13 -13
- package/dist/{get-FBUXTOJS.js → get-J3TJCAZW.js} +2 -2
- package/dist/{gpuPolicy-MNPLXHRJ.js → gpuPolicy-W2OEEW7Y.js} +5 -5
- package/dist/{grade-compare-ELKVVO7W.js → grade-compare-AOXNJ53Z.js} +27 -27
- package/dist/{heifImagePrep-ALPO36IR.js → heifImagePrep-4RSVCLPX.js} +6 -6
- package/dist/{help-JHGASQ27.js → help-5NYIBLJJ.js} +2 -1
- package/dist/{history-R3MGVTZ2.js → history-KAXYCLVT.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +64 -64
- package/dist/hyperframes-player.global.js +90 -3
- package/dist/{info-G4NZMSC5.js → info-Z6KNUMH6.js} +7 -7
- package/dist/{init-DS4YZTWE.js → init-GSMXQX3U.js} +30 -27
- package/dist/{ink-6KESLHVK.js → ink-IPPBJFH3.js} +10 -10
- package/dist/{inspect-T3YH6Y7Z.js → inspect-MXIGEN6Z.js} +27 -27
- package/dist/{installer-YVNEAOSW.js → installer-JXI2JC3T.js} +4 -4
- package/dist/{keyframes-6QMTPUAB.js → keyframes-Z53YGH5F.js} +6 -6
- package/dist/{lambda-PVKMQ5RR.js → lambda-KD7ZRYVK.js} +9 -9
- package/dist/{layout-ZNH7EW6L.js → layout-NLDWEPDQ.js} +27 -27
- package/dist/{lint-FF7YK3QK.js → lint-MSZMGQO5.js} +6 -6
- package/dist/{list-TJTH6NN6.js → list-OLNBKKB4.js} +2 -2
- package/dist/{localPage-TUWJD4GJ.js → localPage-BQ2LKHED.js} +5 -5
- package/dist/{login-3GRKVAMH.js → login-TBJVG5PZ.js} +4 -4
- package/dist/{look-5ZFSZPPB.js → look-T5V6JBD5.js} +10 -10
- package/dist/{manager-POO6RLB4.js → manager-FHVSGJNR.js} +6 -6
- package/dist/{measure-OYR7XHOE.js → measure-KI3XY2MJ.js} +11 -11
- package/dist/{media-treatment-PJ3NZ2PR.js → media-treatment-UZI55RS3.js} +11 -11
- package/dist/{media-use-PQUFJ2ZJ.js → media-use-2PIPVWX4.js} +1 -1
- package/dist/{models-RCJQAORM.js → models-MV4HBZKZ.js} +9 -9
- package/dist/{motionShot-2UAWH6B2.js → motionShot-A3TWOBRE.js} +13 -13
- package/dist/{normalize-audio-ESIM3KEX.js → normalize-audio-37WYHLP4.js} +8 -8
- package/dist/{open-A3DRPHEK.js → open-4PPPV45S.js} +11 -11
- package/dist/{parakeetRunner-W2EYPYLF.js → parakeetRunner-J22MMWSM.js} +10 -10
- package/dist/{pipeline-KIFB5R5M.js → pipeline-GE4LBTRO.js} +8 -8
- package/dist/{play-26X5I67T.js → play-MZSW7GIL.js} +18 -18
- package/dist/{preflight-RF5UZJUA.js → preflight-NXMN7P4B.js} +6 -6
- package/dist/{present-7IFGQBVD.js → present-TWZLASXI.js} +14 -14
- package/dist/{preview-IAMB4ULR.js → preview-OEXP2RPO.js} +16 -16
- package/dist/probe-HNAD6ACH.js +69 -0
- package/dist/{producer-6NKNMOIT.js → producer-E4AN4ADM.js} +1 -1
- package/dist/{projectConfig-MYKQOOIG.js → projectConfig-HKWVTV5Q.js} +10 -6
- package/dist/{publication-BS2YATIF.js → publication-DTIE7G2E.js} +2 -2
- package/dist/{publish-3BUTNKVA.js → publish-CUU5W6CP.js} +8 -8
- package/dist/{remove-background-PEJXPBJA.js → remove-background-2MRQ3YH4.js} +9 -9
- package/dist/{render-W72TDIHA.js → render-EEIQAOGV.js} +34 -15
- package/dist/{render-3FANM5MO.js → render-JP6JUXWP.js} +5 -5
- package/dist/{render-HGGE5CBB.js → render-QRWGJUCD.js} +37 -32
- package/dist/{render-batch-DPWJHKFY.js → render-batch-46SYPMYV.js} +5 -5
- package/dist/{resolver-5IXI5IFJ.js → resolver-DPRCISSD.js} +4 -4
- package/dist/reverse-MY6DSOXL.js +32 -0
- package/dist/{run-MTGSR5HH.js → run-2VGZ3URU.js} +1 -1
- package/dist/{sherpa-4GLU4QU7.js → sherpa-5LOEXZ46.js} +9 -9
- package/dist/{skills-3IEY3EGH.js → skills-BBHR4SHX.js} +5 -5
- package/dist/{skillsUpdateCheck-6HQLY6GT.js → skillsUpdateCheck-HBOVCIXG.js} +3 -3
- package/dist/{snapshot-UNRFRCCW.js → snapshot-S264O54Z.js} +31 -31
- package/dist/{src-FT34LZAJ.js → src-G2EK32ZO.js} +15 -7
- package/dist/{src-VWCIVPJX.js → src-GLO4X3WA.js} +20 -4
- package/dist/start-6AFMEXPO.js +226 -0
- package/dist/{staticProjectServer-WFK4N6P3.js → staticProjectServer-KWSV5IRS.js} +16 -16
- package/dist/{status-Z5BPMROD.js → status-5ZRM4R4N.js} +1 -1
- package/dist/studio/assets/hyperframes-player-CGO8wE5a.js +565 -0
- package/dist/studio/assets/{index-EB7sh_Tw.js → index-COtefOSM.js} +1 -1
- package/dist/studio/assets/{index-h1lPtzPa.js → index-DHPJjAUV.js} +4 -4
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-OTNMLH4B.js → studio-api-JJO6VEFD.js} +8 -8
- package/dist/{studioServer-3CHSYLFZ.js → studioServer-YFZIESIH.js} +45 -45
- package/dist/{sync-2IZJ7HAC.js → sync-DBMNZ32Z.js} +10 -10
- package/dist/{telemetry-DHLLX5EC.js → telemetry-OPZTKPDG.js} +3 -3
- package/dist/{timeline-TK4RV66K.js → timeline-MCJUCDME.js} +16 -16
- package/dist/{tokens-PV67HFRX.js → tokens-3DREMPWC.js} +2 -2
- package/dist/{transcribe-HJ3AWR2D.js → transcribe-AU7TPKMU.js} +8 -8
- package/dist/{transcribe-5HXQG64W.js → transcribe-TMGPK6FM.js} +17 -17
- package/dist/{updateCheck-EI4WIVIS.js → updateCheck-YKTRFFFV.js} +2 -2
- package/dist/{upgrade-ADM4CRK4.js → upgrade-UAKM3KAT.js} +2 -2
- package/dist/{urlDownloader-6TM5CH5Q.js → urlDownloader-77YL7TXO.js} +4 -4
- package/dist/{validate-K27UCOGM.js → validate-SR35R3QM.js} +21 -21
- package/dist/{video-KAN4FULD.js → video-GNMQTE4D.js} +6 -6
- package/dist/warmCheck.js +35 -35
- package/package.json +1 -1
- package/dist/chunk-2YQ2XYO5.js +0 -5030
- package/dist/probe-EZS36TUR.js +0 -179
- package/dist/studio/assets/hyperframes-player--MmARLPY.js +0 -478
|
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
loadProducer
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BMRZP6X6.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProjectRelativeSrc
|
|
12
12
|
} from "./chunk-WVRAFHJU.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/projectMedia.ts
|
|
15
15
|
async function collectProjectMedia(projectDir) {
|
|
16
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
16
|
+
const { bundleToSingleHtml } = await import("./compiler-UCX3MZVN.js");
|
|
17
17
|
const html = await bundleToSingleHtml(projectDir);
|
|
18
18
|
const producer = await loadProducer();
|
|
19
19
|
if (!producer.collectRenderMedia) throw new Error("Render media collector unavailable");
|
|
@@ -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.9.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.9.
|
|
9
|
+
var VERSION = true ? "0.9.6" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.9.6" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JLKEXS4I.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_TARGET_LUFS,
|
|
25
25
|
absoluteLoudnessPlan,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
requestedProjectPath,
|
|
29
29
|
requiredFfmpeg,
|
|
30
30
|
resolveLocalAudioPath
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FP37FSOT.js";
|
|
32
32
|
import {
|
|
33
33
|
MEDIA_LINK_ATTR,
|
|
34
34
|
relinkSplitHalves
|
|
@@ -55,11 +55,11 @@ import {
|
|
|
55
55
|
scanProjectMedia,
|
|
56
56
|
shouldPrewarmProxy,
|
|
57
57
|
waitForProxy
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-W3G7DNCR.js";
|
|
59
59
|
import {
|
|
60
60
|
probeAudioTrack,
|
|
61
61
|
probeMediaMetadata
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-4VOK22DG.js";
|
|
63
63
|
import {
|
|
64
64
|
HistoryBusyError,
|
|
65
65
|
MAX_WINDOW_IDLE_MS,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
ensureHfIds,
|
|
117
117
|
stampHfIdsInPlace,
|
|
118
118
|
stripSdrPngColourTags
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-JFIBO4CZ.js";
|
|
120
120
|
import {
|
|
121
121
|
PREVIEW_PROXY_BOX_PARAM,
|
|
122
122
|
PREVIEW_PROXY_LIGHT_PARAM,
|
|
@@ -128,7 +128,7 @@ import {
|
|
|
128
128
|
fpsToNumber,
|
|
129
129
|
parseFps,
|
|
130
130
|
parsePreviewProxyBox
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-6JMNJYYR.js";
|
|
132
132
|
import {
|
|
133
133
|
GSAP_BASE_URL_META,
|
|
134
134
|
gsapCdnDist,
|
|
@@ -150,7 +150,7 @@ import {
|
|
|
150
150
|
resolveRateSpec,
|
|
151
151
|
sourceTimeAt,
|
|
152
152
|
stripEmbeddedRuntimeScripts
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-TNWWLO4T.js";
|
|
154
154
|
import {
|
|
155
155
|
ProjectRootMissingError,
|
|
156
156
|
folderGone,
|
|
@@ -5617,7 +5617,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5617
5617
|
let block = extractGsapScriptBlock(html);
|
|
5618
5618
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5619
5619
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5620
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5620
|
+
const { GSAP_CDN } = await import("./dist-XRAW3URT.js");
|
|
5621
5621
|
const bootstrap = [
|
|
5622
5622
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5623
5623
|
"<script>",
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
renderFrameIdForRenderId,
|
|
43
43
|
resolveAuthoredTimingWindow,
|
|
44
44
|
toFps
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-6JMNJYYR.js";
|
|
46
46
|
import {
|
|
47
47
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
48
48
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
sourceTimeAt,
|
|
86
86
|
timeAtSourceTime,
|
|
87
87
|
volumeSegmentSampleCount
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-TNWWLO4T.js";
|
|
89
89
|
import {
|
|
90
90
|
redactTelemetryString,
|
|
91
91
|
redactUrlQueryStrings
|
|
@@ -137,6 +137,162 @@ import {
|
|
|
137
137
|
detectWsl
|
|
138
138
|
} from "./chunk-7KDQAD2W.js";
|
|
139
139
|
|
|
140
|
+
// ../engine/src/services/referenceBackground.ts
|
|
141
|
+
var REFERENCE_BACKGROUND_FIELD = "reference_background";
|
|
142
|
+
function isByte(value) {
|
|
143
|
+
return typeof value === "number" && Number.isInteger(value) && value >= 0 && value <= 255;
|
|
144
|
+
}
|
|
145
|
+
function readRgb(value) {
|
|
146
|
+
if (!Array.isArray(value) || value.length !== 3) return null;
|
|
147
|
+
const [r, g, b] = value;
|
|
148
|
+
return isByte(r) && isByte(g) && isByte(b) ? [r, g, b] : null;
|
|
149
|
+
}
|
|
150
|
+
function referenceBackgroundResult(value) {
|
|
151
|
+
if (value !== null && typeof value === "object" && "kind" in value) {
|
|
152
|
+
if (value.kind === "solid" && "rgb" in value) {
|
|
153
|
+
const rgb = readRgb(value.rgb);
|
|
154
|
+
if (rgb) return { [REFERENCE_BACKGROUND_FIELD]: { kind: "solid", rgb } };
|
|
155
|
+
}
|
|
156
|
+
if (value.kind === "none" || value.kind === "unsupported_non_solid") {
|
|
157
|
+
return { [REFERENCE_BACKGROUND_FIELD]: { kind: value.kind } };
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return { [REFERENCE_BACKGROUND_FIELD]: { kind: "unknown" } };
|
|
161
|
+
}
|
|
162
|
+
function createReferenceBackgroundRecorder(record2) {
|
|
163
|
+
let pending;
|
|
164
|
+
return (read) => {
|
|
165
|
+
pending ??= read().catch(() => ({ kind: "unknown" })).then((value) => record2(referenceBackgroundResult(value)));
|
|
166
|
+
return pending;
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
function layerIsIndeterminate(layer) {
|
|
170
|
+
return layer.varying || layer.opacity !== "1" || layer.filter !== "none" || layer.blend !== "normal";
|
|
171
|
+
}
|
|
172
|
+
function validLayer(layer) {
|
|
173
|
+
return layer.rgba.length === 4 && layer.rgba.every(isByte) && layer.image.length > 0;
|
|
174
|
+
}
|
|
175
|
+
function opaqueReference(rgb, indeterminate) {
|
|
176
|
+
return indeterminate ? { kind: "unknown" } : { kind: "solid", rgb };
|
|
177
|
+
}
|
|
178
|
+
function classifyReferenceBackground(observation) {
|
|
179
|
+
if (!observation || observation.layers.length === 0) return { kind: "unknown" };
|
|
180
|
+
const indeterminate = observation.layers.some(layerIsIndeterminate);
|
|
181
|
+
let translucent = false;
|
|
182
|
+
for (const layer of observation.layers) {
|
|
183
|
+
if (!validLayer(layer)) return { kind: "unknown" };
|
|
184
|
+
if (layer.image !== "none") return { kind: "unsupported_non_solid" };
|
|
185
|
+
const rgb = layer.rgba[3] === 255 ? readRgb(layer.rgba.slice(0, 3)) : null;
|
|
186
|
+
if (rgb) return opaqueReference(rgb, translucent || indeterminate);
|
|
187
|
+
translucent ||= layer.rgba[3] !== 0;
|
|
188
|
+
}
|
|
189
|
+
return !indeterminate && !translucent && observation.explicitNone ? { kind: "none" } : { kind: "unknown" };
|
|
190
|
+
}
|
|
191
|
+
async function observeReferenceBackground() {
|
|
192
|
+
const root = document.querySelector("[data-composition-id]");
|
|
193
|
+
if (!root || !document.body) return null;
|
|
194
|
+
window.__hf?.seek?.(0);
|
|
195
|
+
if ("__hfWaitForSeekCompletion" in window && typeof window.__hfWaitForSeekCompletion === "function") {
|
|
196
|
+
await window.__hfWaitForSeekCompletion();
|
|
197
|
+
}
|
|
198
|
+
const elements = [];
|
|
199
|
+
for (let element = root; element; element = element.parentElement)
|
|
200
|
+
elements.push(element);
|
|
201
|
+
const canvas = document.createElement("canvas");
|
|
202
|
+
canvas.width = canvas.height = 1;
|
|
203
|
+
const context = canvas.getContext("2d", { willReadFrequently: true });
|
|
204
|
+
if (!context) return null;
|
|
205
|
+
const layers = elements.map((element) => {
|
|
206
|
+
const style = getComputedStyle(element);
|
|
207
|
+
context.clearRect(0, 0, 1, 1);
|
|
208
|
+
if (!CSS.supports("color", style.backgroundColor))
|
|
209
|
+
return { rgba: [], image: "", opacity: "", filter: "", blend: "", varying: false };
|
|
210
|
+
context.fillStyle = style.backgroundColor;
|
|
211
|
+
context.fillRect(0, 0, 1, 1);
|
|
212
|
+
return {
|
|
213
|
+
rgba: Array.from(context.getImageData(0, 0, 1, 1).data),
|
|
214
|
+
image: style.backgroundImage,
|
|
215
|
+
opacity: style.opacity,
|
|
216
|
+
filter: style.filter,
|
|
217
|
+
blend: style.mixBlendMode,
|
|
218
|
+
varying: false
|
|
219
|
+
};
|
|
220
|
+
});
|
|
221
|
+
return { layers, explicitNone: false };
|
|
222
|
+
}
|
|
223
|
+
function hasChangingCssBackground() {
|
|
224
|
+
const root = document.querySelector("[data-composition-id]");
|
|
225
|
+
if (!root) return true;
|
|
226
|
+
const properties = [
|
|
227
|
+
"background",
|
|
228
|
+
"backgroundColor",
|
|
229
|
+
"backgroundImage",
|
|
230
|
+
"opacity",
|
|
231
|
+
"filter",
|
|
232
|
+
"mixBlendMode"
|
|
233
|
+
];
|
|
234
|
+
return document.getAnimations().some((animation) => {
|
|
235
|
+
const effect = animation.effect;
|
|
236
|
+
if (!(effect instanceof KeyframeEffect) || !(effect.target instanceof Element)) return false;
|
|
237
|
+
return effect.target.contains(root) && effect.getKeyframes().some((frame) => properties.some((key) => key in frame));
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
function hasChangingTimelineBackground() {
|
|
241
|
+
const root = document.querySelector("[data-composition-id]");
|
|
242
|
+
const timelines = "__timelines" in window ? window.__timelines : void 0;
|
|
243
|
+
if (!root || !timelines || typeof timelines !== "object") return false;
|
|
244
|
+
const children = Object.values(timelines).flatMap(
|
|
245
|
+
(timeline) => typeof timeline?.getChildren === "function" ? timeline.getChildren(true, true, false) : []
|
|
246
|
+
);
|
|
247
|
+
return children.some((tween) => {
|
|
248
|
+
const vars = { ...tween?.vars, ...tween?.vars?.css, ...tween?.vars?.startAt };
|
|
249
|
+
const targets = typeof tween?.targets === "function" ? tween.targets() : [];
|
|
250
|
+
const changesPaint = Object.keys(vars).some(
|
|
251
|
+
(key) => key.startsWith("background") || ["opacity", "filter", "autoAlpha", "mixBlendMode"].includes(key)
|
|
252
|
+
);
|
|
253
|
+
return changesPaint && targets.some((target) => target instanceof Element && target.contains(root));
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
function hasExplicitNoBackground() {
|
|
257
|
+
const root = document.querySelector("[data-composition-id]");
|
|
258
|
+
const elements = [];
|
|
259
|
+
for (let element = root; element; element = element.parentElement)
|
|
260
|
+
elements.push(element);
|
|
261
|
+
const declarations = elements.flatMap(
|
|
262
|
+
(element) => element instanceof HTMLElement || element instanceof SVGElement ? [element.style] : []
|
|
263
|
+
);
|
|
264
|
+
const sheets = [...document.styleSheets, ...document.adoptedStyleSheets].filter(
|
|
265
|
+
(sheet) => !sheet.disabled
|
|
266
|
+
);
|
|
267
|
+
for (const rule of sheets.flatMap((sheet) => Array.from(sheet.cssRules))) {
|
|
268
|
+
if (rule instanceof CSSFontFaceRule || rule instanceof CSSKeyframesRule) continue;
|
|
269
|
+
if (!(rule instanceof CSSStyleRule) || rule.cssRules.length > 0) return false;
|
|
270
|
+
if (elements.some((element) => element.matches(rule.selectorText)))
|
|
271
|
+
declarations.push(rule.style);
|
|
272
|
+
}
|
|
273
|
+
const backgrounds = declarations.filter(
|
|
274
|
+
(style) => style.getPropertyValue("background-color") || style.getPropertyValue("background-image")
|
|
275
|
+
);
|
|
276
|
+
return backgrounds.length > 0 && backgrounds.every((style) => style.getPropertyValue("background").trim() === "none");
|
|
277
|
+
}
|
|
278
|
+
async function readReferenceBackground(page) {
|
|
279
|
+
try {
|
|
280
|
+
const observation = await page.evaluate(observeReferenceBackground);
|
|
281
|
+
const initial = classifyReferenceBackground(observation);
|
|
282
|
+
if (!observation || initial.kind === "unsupported_non_solid") return initial;
|
|
283
|
+
const changes = await Promise.all([
|
|
284
|
+
page.evaluate(hasChangingCssBackground),
|
|
285
|
+
page.evaluate(hasChangingTimelineBackground)
|
|
286
|
+
]);
|
|
287
|
+
if (changes.some(Boolean)) return { kind: "unknown" };
|
|
288
|
+
if (initial.kind === "solid") return initial;
|
|
289
|
+
observation.explicitNone = await page.evaluate(hasExplicitNoBackground);
|
|
290
|
+
return classifyReferenceBackground(observation);
|
|
291
|
+
} catch {
|
|
292
|
+
return { kind: "unknown" };
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
140
296
|
// ../engine/src/config.ts
|
|
141
297
|
import { tmpdir } from "os";
|
|
142
298
|
import { join } from "path";
|
|
@@ -175,6 +331,7 @@ var DEFAULT_CONFIG = {
|
|
|
175
331
|
videoLayerPassthrough: false,
|
|
176
332
|
useDrawElement: true,
|
|
177
333
|
enableDrawElementWorkerEncode: true,
|
|
334
|
+
useInPageEncode: false,
|
|
178
335
|
// Auto-detected per host in `resolveConfig`; defaults off for the raw
|
|
179
336
|
// DEFAULT_CONFIG (used directly by tests and worker-sizing fallbacks).
|
|
180
337
|
lowMemoryMode: false,
|
|
@@ -219,6 +376,7 @@ var BOOLEAN_ENGINE_CONFIG_FIELDS = [
|
|
|
219
376
|
"videoLayerPassthrough",
|
|
220
377
|
"useDrawElement",
|
|
221
378
|
"enableDrawElementWorkerEncode",
|
|
379
|
+
"useInPageEncode",
|
|
222
380
|
"lowMemoryMode",
|
|
223
381
|
"enablePageSideCompositing",
|
|
224
382
|
"enableChunkedEncode",
|
|
@@ -494,6 +652,7 @@ function resolveConfig(overrides) {
|
|
|
494
652
|
"HF_DE_WORKER_ENCODE",
|
|
495
653
|
DEFAULT_CONFIG.enableDrawElementWorkerEncode
|
|
496
654
|
),
|
|
655
|
+
useInPageEncode: envBool("HF_INPAGE_ENCODE", DEFAULT_CONFIG.useInPageEncode),
|
|
497
656
|
lowMemoryMode: resolveLowMemoryMode(),
|
|
498
657
|
enablePageSideCompositing: envBool(
|
|
499
658
|
"HF_PAGE_SIDE_COMPOSITING",
|
|
@@ -2630,44 +2789,6 @@ function holdRenderFrameVideos(ids, renderIdAttr) {
|
|
|
2630
2789
|
}).observe(document, { childList: true, subtree: true });
|
|
2631
2790
|
}
|
|
2632
2791
|
|
|
2633
|
-
// ../engine/src/services/webglRelease.ts
|
|
2634
|
-
function recordWebglContexts() {
|
|
2635
|
-
const w = window;
|
|
2636
|
-
w.__hf_gl_contexts = [];
|
|
2637
|
-
const canvasProto = HTMLCanvasElement.prototype;
|
|
2638
|
-
const orig = canvasProto.getContext;
|
|
2639
|
-
canvasProto.getContext = function(type, attrs) {
|
|
2640
|
-
const ctx = orig.call(this, type, attrs);
|
|
2641
|
-
if (ctx && (type === "webgl" || type === "webgl2" || type === "experimental-webgl")) {
|
|
2642
|
-
const list = w.__hf_gl_contexts ?? [];
|
|
2643
|
-
if (!list.some((r) => r.ctx === ctx)) list.push({ canvas: this, ctx });
|
|
2644
|
-
w.__hf_gl_contexts = list;
|
|
2645
|
-
}
|
|
2646
|
-
return ctx;
|
|
2647
|
-
};
|
|
2648
|
-
}
|
|
2649
|
-
async function releaseEndedWebglContexts(page, time) {
|
|
2650
|
-
return page.evaluate((t) => {
|
|
2651
|
-
const clipWindow = window.__hf?.clipWindow;
|
|
2652
|
-
if (!clipWindow) return 0;
|
|
2653
|
-
const hasEnded = (el) => {
|
|
2654
|
-
for (let up = el; up; up = up.parentElement) {
|
|
2655
|
-
const span = up.hasAttribute("data-hf-clip-hidden") ? clipWindow(up) : null;
|
|
2656
|
-
if (span && Number.isFinite(span.end) && span.end <= t) return true;
|
|
2657
|
-
}
|
|
2658
|
-
return false;
|
|
2659
|
-
};
|
|
2660
|
-
const live = (window.__hf_gl_contexts ?? []).filter(
|
|
2661
|
-
(r) => !r.lost && hasEnded(r.canvas)
|
|
2662
|
-
);
|
|
2663
|
-
for (const rec of live) {
|
|
2664
|
-
rec.lost = true;
|
|
2665
|
-
rec.ctx.getExtension("WEBGL_lose_context")?.loseContext();
|
|
2666
|
-
}
|
|
2667
|
-
return live.length;
|
|
2668
|
-
}, time);
|
|
2669
|
-
}
|
|
2670
|
-
|
|
2671
2792
|
// ../engine/src/services/drawElementCaptureError.ts
|
|
2672
2793
|
var DrawElementCaptureError = class extends Error {
|
|
2673
2794
|
frameIndex;
|
|
@@ -3684,6 +3805,9 @@ async function probeBeginFrameLiveness(page, timeoutMs, frameTimeTicks, interval
|
|
|
3684
3805
|
}
|
|
3685
3806
|
}
|
|
3686
3807
|
var lastFrameCache = /* @__PURE__ */ new WeakMap();
|
|
3808
|
+
function forgetBeginFrameCapture(page) {
|
|
3809
|
+
lastFrameCache.delete(page);
|
|
3810
|
+
}
|
|
3687
3811
|
var PENDING_FRAME_RETRIES = 5;
|
|
3688
3812
|
async function sendBeginFrame(client, params) {
|
|
3689
3813
|
for (let attempt = 0; ; attempt++) {
|
|
@@ -3713,13 +3837,24 @@ async function beginFrameCapture(page, options, frameTimeTicks, interval) {
|
|
|
3713
3837
|
quality: isPng ? void 0 : options.quality ?? 80,
|
|
3714
3838
|
optimizeForSpeed: true
|
|
3715
3839
|
};
|
|
3716
|
-
const
|
|
3840
|
+
const cached = lastFrameCache.get(page);
|
|
3841
|
+
let screenshotTicks = frameTimeTicks;
|
|
3842
|
+
if (cached) {
|
|
3843
|
+
const probe = await sendBeginFrame(client, { frameTimeTicks, interval });
|
|
3844
|
+
if (!probe.hasDamage) return { buffer: cached, hasDamage: false };
|
|
3845
|
+
screenshotTicks = frameTimeTicks + interval / 2;
|
|
3846
|
+
}
|
|
3847
|
+
const result = await sendBeginFrame(client, {
|
|
3848
|
+
frameTimeTicks: screenshotTicks,
|
|
3849
|
+
interval,
|
|
3850
|
+
screenshot,
|
|
3851
|
+
noDisplayUpdates: cached !== void 0
|
|
3852
|
+
});
|
|
3717
3853
|
let buffer;
|
|
3718
3854
|
if (result.screenshotData) {
|
|
3719
3855
|
buffer = Buffer.from(result.screenshotData, "base64");
|
|
3720
3856
|
lastFrameCache.set(page, buffer);
|
|
3721
3857
|
} else {
|
|
3722
|
-
const cached = lastFrameCache.get(page);
|
|
3723
3858
|
if (cached) {
|
|
3724
3859
|
buffer = cached;
|
|
3725
3860
|
} else {
|
|
@@ -5700,6 +5835,7 @@ async function waitForCloseWithTimeout(promise) {
|
|
|
5700
5835
|
return !timedOut;
|
|
5701
5836
|
}
|
|
5702
5837
|
async function initDrawElementOrTransparentBackground(session, page, logInitPhase) {
|
|
5838
|
+
await session.options.recordReferenceBackground?.(() => readReferenceBackground(page));
|
|
5703
5839
|
const supersampling = (session.options.deviceScaleFactor ?? 1) !== 1;
|
|
5704
5840
|
const forceScreenshot = session.config?.forceScreenshot ?? false;
|
|
5705
5841
|
const forceDE = process.env.HF_FORCE_DRAWELEMENT === "1";
|
|
@@ -6082,7 +6218,6 @@ async function constructCaptureSession(input) {
|
|
|
6082
6218
|
}
|
|
6083
6219
|
});
|
|
6084
6220
|
await installMediaPageHooks(page, options);
|
|
6085
|
-
await page.evaluateOnNewDocument(recordWebglContexts);
|
|
6086
6221
|
if (useDrawElement) {
|
|
6087
6222
|
await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
|
|
6088
6223
|
await page.evaluateOnNewDocument(instrumentAcceleratedCanvases);
|
|
@@ -6647,6 +6782,10 @@ function recordSubTimelineWarning(session, timeoutMs) {
|
|
|
6647
6782
|
}
|
|
6648
6783
|
}
|
|
6649
6784
|
]);
|
|
6785
|
+
if (scriptFailure) {
|
|
6786
|
+
const failed = session.warnings.filter((w) => w.code === "sub_timeline_script_failure");
|
|
6787
|
+
session.options?.onSubTimelineScriptFailure?.(failed);
|
|
6788
|
+
}
|
|
6650
6789
|
}
|
|
6651
6790
|
var LIVE_MAP_MARKERS = [
|
|
6652
6791
|
{ selector: ".leaflet-container", library: "Leaflet" },
|
|
@@ -7142,7 +7281,6 @@ async function prepareFrameForCapture(session, frameIndex, time, seekOptions, he
|
|
|
7142
7281
|
const seekStart = Date.now();
|
|
7143
7282
|
session.captureStep = "seeking the timeline";
|
|
7144
7283
|
const hasPendingComposite = await seekPageTimeline(page, quantizedTime, seekOptions);
|
|
7145
|
-
await releaseEndedWebglContexts(page, quantizedTime);
|
|
7146
7284
|
session.captureStep = "decoding CSS background images";
|
|
7147
7285
|
await decodeDynamicCssBackgroundImages(page);
|
|
7148
7286
|
const seekMs = Date.now() - seekStart;
|
|
@@ -7855,6 +7993,7 @@ async function captureFrameSurface(session, frameIndex, time, seekOptions, heldV
|
|
|
7855
7993
|
interval: session.beginFrameIntervalMs,
|
|
7856
7994
|
noDisplayUpdates: false
|
|
7857
7995
|
});
|
|
7996
|
+
forgetBeginFrameCapture(page);
|
|
7858
7997
|
session.beginFrameSeekPresented = true;
|
|
7859
7998
|
}
|
|
7860
7999
|
const result = await beginFrameCapture(
|
|
@@ -11221,14 +11360,29 @@ function buildStreamingArgs(options, outputPath, gpuEncoder = null, nvencPresets
|
|
|
11221
11360
|
return args;
|
|
11222
11361
|
}
|
|
11223
11362
|
async function spawnStreamingEncoder(outputPath, options, signal, config) {
|
|
11224
|
-
const outputDir = dirname3(outputPath);
|
|
11225
|
-
if (!existsSync6(outputDir)) mkdirSync3(outputDir, { recursive: true });
|
|
11226
11363
|
let gpuEncoder = null;
|
|
11227
11364
|
if (options.useGpu) {
|
|
11228
11365
|
gpuEncoder = await getCachedGpuEncoder();
|
|
11229
11366
|
}
|
|
11230
11367
|
const nvencPresets = gpuEncoder === "nvenc" ? await getCachedNvencPresets() : void 0;
|
|
11231
11368
|
const args = buildStreamingArgs(options, outputPath, gpuEncoder, nvencPresets);
|
|
11369
|
+
const checksJpeg = !options.rawInputFormat && (options.imageFormat ?? "jpeg") === "jpeg";
|
|
11370
|
+
return spawnFfmpegStream(outputPath, args, {
|
|
11371
|
+
signal,
|
|
11372
|
+
config,
|
|
11373
|
+
checkFrame: checksJpeg ? (frame, index) => {
|
|
11374
|
+
const error = jpegInputError(frame);
|
|
11375
|
+
if (error) throw new Error(`Invalid JPEG input at frame ${index}: ${error}`);
|
|
11376
|
+
} : void 0
|
|
11377
|
+
});
|
|
11378
|
+
}
|
|
11379
|
+
function spawnFfmpegStream(outputPath, args, {
|
|
11380
|
+
signal,
|
|
11381
|
+
config,
|
|
11382
|
+
checkFrame
|
|
11383
|
+
}) {
|
|
11384
|
+
const outputDir = dirname3(outputPath);
|
|
11385
|
+
if (!existsSync6(outputDir)) mkdirSync3(outputDir, { recursive: true });
|
|
11232
11386
|
const ffmpeg = spawn5(getFfmpegBinary(), args, {
|
|
11233
11387
|
stdio: ["pipe", "pipe", "pipe"],
|
|
11234
11388
|
// See runFfmpeg.ts: keeps a console window off the user's desktop on Windows.
|
|
@@ -11301,10 +11455,7 @@ async function spawnStreamingEncoder(outputPath, options, signal, config) {
|
|
|
11301
11455
|
return false;
|
|
11302
11456
|
}
|
|
11303
11457
|
const copy = Buffer.from(buffer);
|
|
11304
|
-
|
|
11305
|
-
const error = jpegInputError(copy);
|
|
11306
|
-
if (error) throw new Error(`Invalid JPEG input at frame ${inputFrameIndex}: ${error}`);
|
|
11307
|
-
}
|
|
11458
|
+
checkFrame?.(copy, inputFrameIndex);
|
|
11308
11459
|
const accepted = stdin.write(copy);
|
|
11309
11460
|
inputFrameIndex++;
|
|
11310
11461
|
if (accepted) {
|
|
@@ -11378,6 +11529,56 @@ FFmpeg stopped after ${streamingTimeout} ms without consuming a frame.` : "";
|
|
|
11378
11529
|
return encoder;
|
|
11379
11530
|
}
|
|
11380
11531
|
|
|
11532
|
+
// ../engine/src/services/chunkStreamingEncoder.ts
|
|
11533
|
+
var BT709_LIMITED = {
|
|
11534
|
+
primaries: 1,
|
|
11535
|
+
transfer: 1,
|
|
11536
|
+
matrix: 1,
|
|
11537
|
+
fullRange: false
|
|
11538
|
+
};
|
|
11539
|
+
function buildChunkStreamingArgs(options, outputPath) {
|
|
11540
|
+
const { primaries, transfer, matrix, fullRange } = options.colour ?? BT709_LIMITED;
|
|
11541
|
+
const vui = [
|
|
11542
|
+
`colour_primaries=${primaries}`,
|
|
11543
|
+
`transfer_characteristics=${transfer}`,
|
|
11544
|
+
`matrix_coefficients=${matrix}`,
|
|
11545
|
+
`video_full_range_flag=${fullRange ? 1 : 0}`
|
|
11546
|
+
].join(":");
|
|
11547
|
+
const args = ["-f", "h264", "-framerate", fpsToFfmpegArg(options.fps), "-i", "-"];
|
|
11548
|
+
args.push("-c:v", "copy", "-bsf:v", `h264_metadata=${vui}`);
|
|
11549
|
+
args.push(
|
|
11550
|
+
...["-colorspace:v", "bt709", "-color_primaries:v", "bt709", "-color_trc:v", "bt709"],
|
|
11551
|
+
...["-color_range", fullRange ? "pc" : "tv"],
|
|
11552
|
+
...["-video_track_timescale", "90000", "-avoid_negative_ts", "make_zero"]
|
|
11553
|
+
);
|
|
11554
|
+
appendRenderProvenanceArgs(args, outputPath);
|
|
11555
|
+
args.push("-y", outputPath);
|
|
11556
|
+
return args;
|
|
11557
|
+
}
|
|
11558
|
+
function spawnChunkStreamingEncoder(outputPath, options, signal, config) {
|
|
11559
|
+
return spawnFfmpegStream(outputPath, buildChunkStreamingArgs(options, outputPath), {
|
|
11560
|
+
signal,
|
|
11561
|
+
config
|
|
11562
|
+
});
|
|
11563
|
+
}
|
|
11564
|
+
|
|
11565
|
+
// ../engine/src/services/inPageEncodeEligibility.ts
|
|
11566
|
+
function resolveInPageEncode(input) {
|
|
11567
|
+
const blocker = [
|
|
11568
|
+
[!input.enabled, "disabled"],
|
|
11569
|
+
[input.captureMode !== "drawelement", "capture is not drawElement"],
|
|
11570
|
+
[input.format !== "mp4", "output is not mp4"],
|
|
11571
|
+
[input.codec !== "h264", "codec is not h264"],
|
|
11572
|
+
[input.hdr, "hdr"],
|
|
11573
|
+
[input.transparent, "transparent"],
|
|
11574
|
+
[input.workers !== 1, "parallel workers"],
|
|
11575
|
+
[input.hls, "hls"],
|
|
11576
|
+
[input.videoLayer, "video layer passthrough"],
|
|
11577
|
+
[!input.encoderSupported, "page encoder unsupported"]
|
|
11578
|
+
].find(([blocked]) => blocked);
|
|
11579
|
+
return blocker ? { eligible: false, reason: blocker[1] } : { eligible: true };
|
|
11580
|
+
}
|
|
11581
|
+
|
|
11381
11582
|
// ../core/dist/audioGroups.js
|
|
11382
11583
|
var HF_AUDIO_GROUP_TAG = "hf-audio-group";
|
|
11383
11584
|
var HF_AUDIO_GROUP_ATTR = "data-audio-group";
|
|
@@ -19231,6 +19432,10 @@ function buildHdrChromeArgs(width, height) {
|
|
|
19231
19432
|
}
|
|
19232
19433
|
|
|
19233
19434
|
export {
|
|
19435
|
+
REFERENCE_BACKGROUND_FIELD,
|
|
19436
|
+
referenceBackgroundResult,
|
|
19437
|
+
createReferenceBackgroundRecorder,
|
|
19438
|
+
readReferenceBackground,
|
|
19234
19439
|
DEFAULT_VP9_CPU_USED,
|
|
19235
19440
|
MIN_VP9_CPU_USED,
|
|
19236
19441
|
MAX_VP9_CPU_USED,
|
|
@@ -19398,6 +19603,10 @@ export {
|
|
|
19398
19603
|
applyFaststart,
|
|
19399
19604
|
createFrameReorderBuffer,
|
|
19400
19605
|
spawnStreamingEncoder,
|
|
19606
|
+
BT709_LIMITED,
|
|
19607
|
+
buildChunkStreamingArgs,
|
|
19608
|
+
spawnChunkStreamingEncoder,
|
|
19609
|
+
resolveInPageEncode,
|
|
19401
19610
|
HF_AUDIO_GROUP_TAG,
|
|
19402
19611
|
HF_AUDIO_GROUP_ATTR,
|
|
19403
19612
|
isSelfOrAncestorHidden,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
parseNumbers,
|
|
11
11
|
parseRoi,
|
|
12
12
|
probeVideo
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2KO357TJ.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-2GICKZ3I.js";
|
|
17
17
|
import {
|
|
18
18
|
withMeta
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-L6MNWJTL.js";
|
|
20
20
|
import {
|
|
21
21
|
failCommand
|
|
22
22
|
} from "./chunk-66W5IWLO.js";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ODKXNWDL.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-T2WJO4XM.js";
|
|
28
28
|
import {
|
|
29
29
|
ITEM_TYPE_DIRS
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-6JMNJYYR.js";
|
|
31
31
|
import {
|
|
32
32
|
realProjectRoot
|
|
33
33
|
} from "./chunk-OFQWTKPW.js";
|
|
@@ -2858,7 +2858,8 @@ async function fetchJson(url, validate) {
|
|
|
2858
2858
|
if (!validate(data)) throw new Error("Invalid registry manifest");
|
|
2859
2859
|
return data;
|
|
2860
2860
|
}
|
|
2861
|
-
|
|
2861
|
+
var fetchRegistryManifest = (baseUrl = DEFAULT_REGISTRY_URL, options) => readRegistryManifest(baseUrl, options).catch(() => void 0);
|
|
2862
|
+
async function readRegistryManifest(baseUrl = DEFAULT_REGISTRY_URL, options) {
|
|
2862
2863
|
const url = registryPathUrl(baseUrl, "registry.json");
|
|
2863
2864
|
const cacheFile = cachePath(baseUrl, "registry");
|
|
2864
2865
|
const cached = readCacheEntry(cacheFile, validRegistryManifest);
|
|
@@ -2867,8 +2868,9 @@ async function fetchRegistryManifest(baseUrl = DEFAULT_REGISTRY_URL, options) {
|
|
|
2867
2868
|
const manifest = await fetchJson(url, validRegistryManifest);
|
|
2868
2869
|
writeCache(cacheFile, manifest);
|
|
2869
2870
|
return manifest;
|
|
2870
|
-
} catch {
|
|
2871
|
-
return cached
|
|
2871
|
+
} catch (err) {
|
|
2872
|
+
if (cached) return cached.data;
|
|
2873
|
+
throw new Error(`The registry could not be read: ${describeCauseChain(err)}`, { cause: err });
|
|
2872
2874
|
}
|
|
2873
2875
|
}
|
|
2874
2876
|
async function fetchItemManifest(name, type, baseUrl = DEFAULT_REGISTRY_URL, options) {
|
|
@@ -2963,6 +2965,7 @@ export {
|
|
|
2963
2965
|
validRegistryItem,
|
|
2964
2966
|
DEFAULT_REGISTRY_URL,
|
|
2965
2967
|
fetchRegistryManifest,
|
|
2968
|
+
readRegistryManifest,
|
|
2966
2969
|
fetchItemManifest,
|
|
2967
2970
|
fetchItemFile
|
|
2968
2971
|
};
|
|
@@ -6,33 +6,33 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
parakeetRunner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4E7G2GME.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KJDQS24S.js";
|
|
16
16
|
import {
|
|
17
17
|
idempotencyKey,
|
|
18
18
|
runJob
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6UOHLXVU.js";
|
|
20
20
|
import {
|
|
21
21
|
runFfmpeg
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2KO357TJ.js";
|
|
23
23
|
import {
|
|
24
24
|
initialModelForLanguage,
|
|
25
25
|
transcribe
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-47IBOMXH.js";
|
|
27
27
|
import {
|
|
28
28
|
createRenderCancellationScope,
|
|
29
29
|
stoppedByCancelSignal
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-TIXW6JWD.js";
|
|
31
31
|
import {
|
|
32
32
|
DEFAULT_MODEL,
|
|
33
33
|
findWhisper,
|
|
34
34
|
isWhisperUnavailable
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-AB3ZXWI3.js";
|
|
36
36
|
import {
|
|
37
37
|
formatSrt,
|
|
38
38
|
formatVtt,
|