hyperframes 0.8.208 → 0.8.210
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-XMWRBMBR.js → add-36M7YRR4.js} +17 -16
- package/dist/{animatedGifPrep-6XURJIPV.js → animatedGifPrep-RZLTC77F.js} +8 -6
- package/dist/api.js +26 -20
- package/dist/{appHistory-HIBH6XZW.js → appHistory-OHYU5ZBQ.js} +3 -2
- package/dist/{asset-I5GGEOB2.js → asset-HRGZ7ZCB.js} +2 -2
- package/dist/{assetCataloger-YBPXUNUP.js → assetCataloger-LN7RI2IC.js} +9 -7
- package/dist/{audio-GFJCHH5W.js → audio-ULOHC2KL.js} +31 -22
- package/dist/{auth-QOA55RYR.js → auth-K4ZULHQY.js} +4 -4
- package/dist/{autoUpdate-SPS4QPJU.js → autoUpdate-MUJ4WPP6.js} +4 -4
- package/dist/{backgroundChecks-HRJO7YK7.js → backgroundChecks-O6JST752.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-FBP3RKUF.js → batchRender-U742UVOD.js} +4 -4
- package/dist/{beats-VNGJ7F6W.js → beats-2CSE5WJD.js} +15 -12
- package/dist/{benchmark-NZ3N3MIV.js → benchmark-YJB2YKOE.js} +10 -10
- package/dist/{browser-BD5BKRJ5.js → browser-WJ5E7RYS.js} +7 -7
- package/dist/{bundleWithLocalizedFonts-WXVNPAWD.js → bundleWithLocalizedFonts-F5VQMFHZ.js} +3 -3
- package/dist/{capture-CXWXKWS5.js → capture-6OJDKKEZ.js} +26 -22
- package/dist/{capture-LMJ4TQRL.js → capture-IYV3OS5W.js} +3 -3
- package/dist/{captureCompositionFrame-ZKVCRYYU.js → captureCompositionFrame-7357PUMG.js} +15 -14
- package/dist/{catalog-WRXQSCAU.js → catalog-CZBK33QH.js} +18 -17
- package/dist/{catch-up-MDSPABFC.js → catch-up-7IJQ7AUR.js} +9 -8
- package/dist/{check-SIBBK5HA.js → check-ISUFX4DK.js} +46 -44
- package/dist/{checkAudio-QQBR4HR7.js → checkAudio-GAA2SY5E.js} +21 -12
- package/dist/{checkBrowser-4EBJLLIH.js → checkBrowser-JRADOMED.js} +39 -37
- package/dist/{chunk-Z5TGBEPJ.js → chunk-32BLIKEV.js} +1 -1
- package/dist/{chunk-P7WGVXR7.js → chunk-35HSGF46.js} +6 -6
- package/dist/{chunk-6WRN4WC6.js → chunk-36EOFTVG.js} +1 -1
- package/dist/{chunk-FFDYRJBE.js → chunk-3PTZ2TD4.js} +1 -1
- package/dist/{chunk-S4KHJERB.js → chunk-4A27M7CJ.js} +1 -1
- package/dist/{chunk-VYRJAQGC.js → chunk-57QUPSP2.js} +1 -1
- package/dist/{chunk-HUKQW4YE.js → chunk-5IWRGVAX.js} +2 -2
- package/dist/{chunk-SI7QCT2J.js → chunk-5PCT5DDF.js} +6 -6
- package/dist/{chunk-QWBVPWUI.js → chunk-5ZJGEQGS.js} +3 -1
- package/dist/{chunk-CP225S5H.js → chunk-7BOGLQFM.js} +5 -5
- package/dist/{chunk-MOEGCMKI.js → chunk-7J6LQ3SQ.js} +20 -0
- package/dist/chunk-7VZEOCUY.js +98 -0
- package/dist/{chunk-4LTBQEPD.js → chunk-A2H5EJZM.js} +2 -2
- package/dist/{chunk-NZ6G5YWZ.js → chunk-A45HCDG7.js} +2 -2
- package/dist/{chunk-MW2NQQ6Z.js → chunk-AG566TRI.js} +2 -2
- package/dist/{chunk-K4PHB3YQ.js → chunk-AZGVCQGO.js} +7 -3
- package/dist/{chunk-WNMVC3IT.js → chunk-BKXC5XHB.js} +1 -1
- package/dist/{chunk-S2OLTAEL.js → chunk-BN22WCAF.js} +2 -2
- package/dist/{chunk-J67FSI3Q.js → chunk-BW5WYF4N.js} +92 -27
- package/dist/{chunk-ULL3U6PV.js → chunk-BYZPLQSX.js} +1 -1
- package/dist/chunk-D3MUHMFG.js +16 -0
- package/dist/{chunk-4HT2L6W2.js → chunk-DHTWYTSV.js} +1 -1
- package/dist/{chunk-XUQYC5DD.js → chunk-DKJAK6JW.js} +5 -5
- package/dist/{chunk-LSMFOZ4F.js → chunk-DST7GU2Y.js} +2 -2
- package/dist/{chunk-EU7MVORF.js → chunk-E63BDV4Z.js} +10 -1
- package/dist/{chunk-6N7D2GUV.js → chunk-EQPXSSNG.js} +28 -24
- package/dist/{chunk-MBGM26P5.js → chunk-ERVBXEPZ.js} +1 -1
- package/dist/{chunk-MYO77JWR.js → chunk-EVTBRL37.js} +1 -1
- package/dist/{chunk-EGOXYG3M.js → chunk-EYGWMHXV.js} +2 -2
- package/dist/{chunk-DHQSDCWD.js → chunk-F7IWJMIO.js} +3 -2
- package/dist/{chunk-4KG3ESVO.js → chunk-FBIWJ3A4.js} +4 -4
- package/dist/{chunk-DXACKQ3F.js → chunk-FCIO4WSW.js} +3 -3
- package/dist/{chunk-43MW4SY7.js → chunk-FCXEVKFQ.js} +4 -4
- package/dist/{chunk-PKVA6MPV.js → chunk-FHIBBIEZ.js} +65 -204
- package/dist/{chunk-XG3IZV62.js → chunk-GKNTPIFD.js} +17 -9
- package/dist/{chunk-GHSO62LK.js → chunk-GNESG4XA.js} +4 -10
- package/dist/{chunk-G2A6RC5R.js → chunk-HD4KXG5U.js} +70 -49
- package/dist/{chunk-PWEOSJ3E.js → chunk-HKCIRH26.js} +3 -3
- package/dist/{chunk-B5MPMIKQ.js → chunk-HP7BXJFZ.js} +2 -2
- package/dist/{chunk-MPO25DQW.js → chunk-I3PNZDKR.js} +186 -153
- package/dist/chunk-I4H5JWND.js +205 -0
- package/dist/{chunk-ORFRUZPB.js → chunk-IMKBZEGT.js} +2 -2
- package/dist/{chunk-3O2E4Q66.js → chunk-J7A73K2B.js} +35 -22
- package/dist/{chunk-M4QZFUMW.js → chunk-JHNBF2HD.js} +1 -1
- package/dist/{chunk-XOFBXLMG.js → chunk-JLBJRJO6.js} +5 -3
- package/dist/{chunk-GMECXFAN.js → chunk-K4FVGVA6.js} +5 -2
- package/dist/{chunk-XMRA7CQG.js → chunk-KCLBO65Y.js} +1 -1
- package/dist/{chunk-7CPI2DWL.js → chunk-KGAPL42S.js} +1 -1
- package/dist/{chunk-BKDQFOKK.js → chunk-KGG2PUZN.js} +91 -17
- package/dist/{chunk-OTXXDONS.js → chunk-LRE4GDFA.js} +3 -3
- package/dist/{chunk-EYEEZXLI.js → chunk-MA447PNF.js} +25 -17
- package/dist/{chunk-6JNSYFOH.js → chunk-MV3J6ZOP.js} +4 -4
- package/dist/{chunk-CSWCZA6V.js → chunk-NEKKA2DA.js} +2 -2
- package/dist/{chunk-EOVYQ3IG.js → chunk-NQ2INEHX.js} +17 -17
- package/dist/{chunk-4F5NRJ6M.js → chunk-OMLVCHNN.js} +2 -2
- package/dist/{chunk-6CWKORZO.js → chunk-P2L7NNHT.js} +27 -5
- package/dist/{chunk-FC4WT5FX.js → chunk-P327BIJR.js} +1 -14
- package/dist/{chunk-NEASABW6.js → chunk-P6EXMN5D.js} +1 -1
- package/dist/{chunk-VR3JLTZD.js → chunk-PCPMSUW6.js} +3 -3
- package/dist/{chunk-D2CE2J2A.js → chunk-PV4XID2A.js} +1 -1
- package/dist/{chunk-IL2TMC6F.js → chunk-QFXF5GXE.js} +21 -5
- package/dist/{chunk-VS4SK7BN.js → chunk-QI5TLQNW.js} +7 -7
- package/dist/{chunk-CZUAX3BV.js → chunk-QIDN4ML5.js} +1 -1
- package/dist/{chunk-BLCKQPBE.js → chunk-QPX7FJP3.js} +1 -1
- package/dist/chunk-QRC7IVBC.js +4870 -0
- package/dist/{chunk-IIJVSCSH.js → chunk-QRWTVCGH.js} +18 -18
- package/dist/{chunk-56ANHX5U.js → chunk-QXUFQSSK.js} +1 -1
- package/dist/{chunk-KTWGVEN6.js → chunk-RIAWW4G2.js} +2 -2
- package/dist/{chunk-HTZJNQYI.js → chunk-RUW65P3N.js} +1 -1
- package/dist/{chunk-ENRFKCI6.js → chunk-TDEORHFN.js} +3 -3
- package/dist/{chunk-X6MCIK7L.js → chunk-TGFDRZTM.js} +29 -13
- package/dist/{chunk-U6KN6OIP.js → chunk-UA3YNZK6.js} +2 -2
- package/dist/{chunk-TNTGGDSD.js → chunk-UWEGMKKU.js} +1 -1
- package/dist/{chunk-SKKQMW5X.js → chunk-W3V5EOFA.js} +1 -1
- package/dist/{chunk-QP2MJYTJ.js → chunk-W4E3ZOWH.js} +1 -1
- package/dist/{chunk-7PAK7LZ5.js → chunk-WOFTAZSZ.js} +18 -20
- package/dist/{chunk-HZN7ICAF.js → chunk-WWQJYYAB.js} +3 -3
- package/dist/{chunk-PSOAGSNO.js → chunk-X2T5EOI7.js} +2 -2
- package/dist/{chunk-Q43YUROE.js → chunk-X6JUUQCM.js} +1 -1
- package/dist/chunk-XCIHCPJK.js +106 -0
- package/dist/{chunk-5HB4JM7H.js → chunk-XIUHHEBS.js} +5 -3
- package/dist/{chunk-EXAX37XR.js → chunk-Y65ZU7XY.js} +18 -13
- package/dist/{chunk-WABB4LZS.js → chunk-YBY2WVLC.js} +19 -2
- package/dist/{chunk-5PCALX6G.js → chunk-YIFEK3UD.js} +1 -1
- package/dist/{chunk-6DSYBW7Z.js → chunk-YRO3PXWU.js} +1 -85
- package/dist/{chunk-6PWQH77E.js → chunk-ZFVNYA3M.js} +1 -1
- package/dist/{chunk-GEO6THL3.js → chunk-ZRSQNF4A.js} +43 -30
- package/dist/{clean-6GX7WAEC.js → clean-NVBEXXIS.js} +25 -22
- package/dist/cli.js +56 -56
- package/dist/{cloud-6PFJKLNL.js → cloud-3T6HF7DT.js} +4 -4
- package/dist/{cloudrun-UGG3ZFH7.js → cloudrun-TXEEZGJ7.js} +5 -5
- package/dist/commands/layout-audit.browser.js +94 -4
- package/dist/{compare-P4EBOP4B.js → compare-Q42Z56P7.js} +38 -36
- package/dist/{compiler-PG4RKX6K.js → compiler-IL2PZJFH.js} +5 -3
- package/dist/{component-SQPMI3W7.js → component-2IWQZYCZ.js} +3 -3
- package/dist/{compositions-KRIHY3IY.js → compositions-3EZ3GBK2.js} +14 -12
- package/dist/{contactSheet-RYAE7Y5D.js → contactSheet-WG4HT5XP.js} +2 -2
- package/dist/{delete-T5TO4SV6.js → delete-2UBY2JTM.js} +10 -9
- package/dist/{deploy-AO6LQR5G.js → deploy-QTS2OM2H.js} +1 -1
- package/dist/{dist-6IMEDVMC.js → dist-73YTUT3W.js} +1 -1
- package/dist/{dist-23AAB5X2.js → dist-XF53LCKD.js} +4 -2
- package/dist/{doctor-QBUJQ655.js → doctor-FIXMXWE6.js} +21 -15
- package/dist/{events-J7CESLKQ.js → events-7WYSDXTE.js} +4 -4
- package/dist/{events-SIZO7YHI.js → events-NTZSSMBR.js} +5 -5
- package/dist/{feedback-74WOJ5PN.js → feedback-7SOB5GZC.js} +12 -12
- package/dist/{ffmpeg-AKUP6U2S.js → ffmpeg-PYY5FSIX.js} +10 -8
- package/dist/{figma-GGMYRR4Q.js → figma-DTWA3G22.js} +3 -3
- package/dist/fontLocalizeCli.js +11 -9
- package/dist/{get-PLKAI6JM.js → get-DMGUJPLP.js} +10 -9
- package/dist/{gpuPolicy-EYDAAPJF.js → gpuPolicy-KVYO4OU4.js} +8 -6
- package/dist/{grade-compare-UADJP4AV.js → grade-compare-NCYPJFLI.js} +39 -37
- package/dist/{heifImagePrep-KDF3OPOK.js → heifImagePrep-F7LFUYGC.js} +9 -7
- package/dist/{help-WSQQ555Q.js → help-I4RRBHCW.js} +2 -2
- package/dist/{history-VSQ2DQ3V.js → history-GVBBXZKQ.js} +11 -10
- 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-MOQ4LRC3.js → info-UE2PY5AF.js} +9 -9
- package/dist/{init-EONQSZJG.js → init-4UGFGJQK.js} +39 -34
- package/dist/{inspect-OLCVLHOU.js → inspect-ZRREAUCB.js} +37 -35
- package/dist/{installer-GHISA75B.js → installer-ABXPRFIJ.js} +6 -5
- package/dist/{keyframes-DGQYCY24.js → keyframes-MFR4TYVR.js} +8 -8
- package/dist/{lambda-AMMWF2YH.js → lambda-E3Z6JCIB.js} +13 -11
- package/dist/{layout-R6CAPGRO.js → layout-IO7T5SSU.js} +37 -35
- package/dist/{lint-QZJEYPHD.js → lint-WYPQK5XA.js} +9 -9
- package/dist/{lintProject-W3YVHAGP.js → lintProject-KCN7MRBN.js} +1 -1
- package/dist/{list-KCJID4SP.js → list-7F2LXWOZ.js} +10 -9
- package/dist/{login-7HKBEPJS.js → login-TTMYCXN2.js} +7 -7
- package/dist/{logout-3IID4KXD.js → logout-QRSB4CNH.js} +3 -3
- package/dist/{manager-Z7W4GQGF.js → manager-LQXZTUTJ.js} +3 -3
- package/dist/{manager-6YSKJMVD.js → manager-OQ5J26ST.js} +11 -9
- package/dist/{media-treatment-E3DL6LEZ.js → media-treatment-ELB6WRA5.js} +17 -15
- package/dist/{models-URWI7YEG.js → models-D2FNIGNZ.js} +15 -13
- package/dist/{motionShot-27IXMDJK.js → motionShot-53VDDRIC.js} +22 -21
- package/dist/{normalize-audio-WGRLPR3P.js → normalize-audio-QHNCFWR2.js} +12 -9
- package/dist/{open-LQ35PLEN.js → open-3KMTT3AV.js} +18 -17
- package/dist/{parakeetRunner-XASVIDTI.js → parakeetRunner-T65S6FW3.js} +20 -17
- package/dist/{pipeline-GA7QVCHS.js → pipeline-DUVRZGIM.js} +15 -10
- package/dist/{play-RYZP77CI.js → play-27R6RBSK.js} +27 -24
- package/dist/{policies-PKLD4UW5.js → policies-NWIEUGGW.js} +1 -1
- package/dist/{preflight-HJFSJXXF.js → preflight-QB6NKBBL.js} +12 -10
- package/dist/{present-YBMLOWZV.js → present-RHV3FKI5.js} +21 -18
- package/dist/{preview-QIRKJCRV.js → preview-IAKIXYLN.js} +29 -27
- package/dist/{producer-524FDOLX.js → producer-F6PHB4M4.js} +1 -1
- package/dist/{projectConfig-IDQN5ZRW.js → projectConfig-MPHWYY5D.js} +10 -9
- package/dist/{publication-3X3IGSDO.js → publication-CBAEINEG.js} +4 -3
- package/dist/{publish-2BF7K6HX.js → publish-4A2A6V7Z.js} +20 -17
- package/dist/{refresh-3IRHJEQA.js → refresh-F7FUCXLX.js} +3 -3
- package/dist/{remove-background-EZBCEFT6.js → remove-background-3I7RZGVG.js} +15 -11
- package/dist/{render-TEEBI2UT.js → render-2HYATL32.js} +56 -57
- package/dist/{render-EFUA2A6A.js → render-BGPUHBFC.js} +6 -5
- package/dist/{render-JFMTAXHD.js → render-BSKLHCZ4.js} +67 -47
- package/dist/{render-batch-XTYNXVSW.js → render-batch-JD6C3BDD.js} +7 -6
- package/dist/renderSetupWorker.js +5 -5
- package/dist/{resolver-FZS6TN6B.js → resolver-SQYR7LII.js} +6 -5
- package/dist/{screenshotCapture-HOW4VSV6.js → screenshotCapture-HDRHY4NN.js} +2 -2
- package/dist/{sherpa-TQIAIKTH.js → sherpa-VXD3DAH4.js} +19 -16
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +2 -2
- package/dist/{skills-S6ZG5KKH.js → skills-B2SHEHWL.js} +7 -7
- package/dist/{skillsUpdateCheck-XC7JQL3F.js → skillsUpdateCheck-ST43UUPK.js} +5 -5
- package/dist/{snapshot-ERYZIM32.js → snapshot-USJYNKDM.js} +118 -75
- package/dist/{src-OL6RHPE4.js → src-5OX35WPG.js} +10 -8
- package/dist/{src-6XOMREMS.js → src-PX3VIS7K.js} +30 -9
- package/dist/{staticProjectServer-JYDDGPAH.js → staticProjectServer-ET7H5LMV.js} +22 -19
- package/dist/{status-DTP6ZYDU.js → status-QVDRHXW2.js} +3 -3
- package/dist/studio/assets/{hyperframes-player-5dRdMVOq.js → hyperframes-player-DUpxahTX.js} +1 -1
- package/dist/studio/assets/{index-ZqyQ91pm.js → index-B4dcZZAm.js} +1 -1
- package/dist/studio/assets/{index-Bu3mJUU2.js → index-CtrcjpbM.js} +5 -5
- package/dist/studio/assets/{index-CYbvOVp-.css → index-RUPGNyct.css} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-GRU4SHKD.js → studio-api-PLKYSG2X.js} +13 -10
- package/dist/{studioServer-OYPBEI5B.js → studioServer-CNUXGRFS.js} +65 -63
- package/dist/{synthesize-QZHRXGRY.js → synthesize-RVE7IUOJ.js} +3 -2
- package/dist/{telemetry-CPYINR63.js → telemetry-DGDEJLGL.js} +5 -5
- package/dist/{telemetry-6BPSGY5W.js → telemetry-EJS5PXH2.js} +2 -2
- package/dist/{timeline-RGK5BMPD.js → timeline-VCQC4TLM.js} +23 -20
- package/dist/{tokens-EX4BOWRW.js → tokens-AEOBCDW5.js} +2 -2
- package/dist/{transcribe-RI52JMVW.js → transcribe-COFCB3ZB.js} +25 -22
- package/dist/{transcribe-MK367I6A.js → transcribe-X6O5ZSGQ.js} +15 -12
- package/dist/{tts-AY4JO5NQ.js → tts-AGMCPQXE.js} +1 -1
- package/dist/{updateCheck-BIEJKQI4.js → updateCheck-BW7MDUXZ.js} +4 -4
- package/dist/{upgrade-ES3UUI7O.js → upgrade-QXOGA54H.js} +4 -4
- package/dist/{urlDownloader-XAGYSTAG.js → urlDownloader-QB3TBIQ5.js} +7 -5
- package/dist/{validate-A6GZHNEI.js → validate-AU2BZ7D7.js} +29 -27
- package/dist/{video-OEMGR3MN.js → video-GNNYAL5T.js} +9 -7
- package/dist/warmCheck.js +46 -44
- package/package.json +1 -1
- package/dist/chunk-BQMAPNDA.js +0 -4830
- package/dist/chunk-DKPNNYBZ.js +0 -44
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
distroLabel,
|
|
12
12
|
getFFmpegInstallHint,
|
|
13
13
|
parseLddMissingLibs
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EYGWMHXV.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureBrowser,
|
|
17
17
|
findBrowser
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RIAWW4G2.js";
|
|
19
19
|
import {
|
|
20
20
|
runCancellableProcess
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-X6JUUQCM.js";
|
|
22
22
|
import {
|
|
23
23
|
getFreeDiskMb
|
|
24
24
|
} from "./chunk-QSFWGZG6.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-VAS6HQX3.js";
|
|
30
30
|
import {
|
|
31
31
|
normalizeErrorMessage
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-E63BDV4Z.js";
|
|
33
33
|
|
|
34
34
|
// src/browser/preflight.ts
|
|
35
35
|
import { existsSync } from "fs";
|
|
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getMimeType
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HD4KXG5U.js";
|
|
10
10
|
import {
|
|
11
11
|
stripSdrPngColourTags
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GNESG4XA.js";
|
|
13
13
|
import {
|
|
14
14
|
injectTagsAtHeadStart
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QRC7IVBC.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/compositionServer.ts
|
|
18
18
|
import { createHash } from "crypto";
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
readSeen,
|
|
11
11
|
seenPath,
|
|
12
12
|
writeRecord
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YIFEK3UD.js";
|
|
14
14
|
import {
|
|
15
15
|
createProjectConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IMKBZEGT.js";
|
|
17
17
|
import {
|
|
18
18
|
isHyperframesProject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5ZJGEQGS.js";
|
|
20
20
|
|
|
21
21
|
// src/utils/desktopApp.ts
|
|
22
22
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -26,7 +26,7 @@ import { basename, isAbsolute, join, relative, win32 } from "path";
|
|
|
26
26
|
var DESKTOP_BUNDLE_IDS = ["dev.hyperframes.desktop", "dev.hyperframes.desktop.canary"];
|
|
27
27
|
var DESKTOP_APP_NAMES = ["HyperFrames.app", "HyperFrames Canary.app"];
|
|
28
28
|
var APP_NAMES = ["HyperFrames", "HyperFrames Canary"];
|
|
29
|
-
var STUDIO_PAGE = "https://hyperframes.
|
|
29
|
+
var STUDIO_PAGE = "https://hyperframes.studio/studio";
|
|
30
30
|
var DOWNLOADS = {
|
|
31
31
|
darwin: `${STUDIO_PAGE}/download`,
|
|
32
32
|
linux: `${STUDIO_PAGE}/download?os=linux`,
|
|
@@ -5,16 +5,17 @@ var require = __hf_createRequire(import.meta.url);
|
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
probeFirstFrameColour,
|
|
9
|
+
probeMediaMetadata
|
|
10
|
+
} from "./chunk-I4H5JWND.js";
|
|
11
|
+
import {
|
|
12
|
+
alphaDecoderFor
|
|
10
13
|
} from "./chunk-5S7W3TUO.js";
|
|
11
14
|
import {
|
|
12
|
-
firstFrameColourArgs,
|
|
13
15
|
formatPreviewProxyBox,
|
|
14
16
|
hdrToSdrToneMapFilter,
|
|
15
|
-
isHeavyForPreview
|
|
16
|
-
|
|
17
|
-
} from "./chunk-QWBVPWUI.js";
|
|
17
|
+
isHeavyForPreview
|
|
18
|
+
} from "./chunk-5ZJGEQGS.js";
|
|
18
19
|
import {
|
|
19
20
|
mkdirWithinProject,
|
|
20
21
|
realProjectRoot,
|
|
@@ -37,168 +38,31 @@ import {
|
|
|
37
38
|
scanHtmlOpeningTags
|
|
38
39
|
} from "./chunk-NHA4NRBE.js";
|
|
39
40
|
|
|
40
|
-
// ../studio-server/dist/chunk-
|
|
41
|
+
// ../studio-server/dist/chunk-FUTDRYQK.js
|
|
41
42
|
import { statSync } from "fs";
|
|
42
43
|
import { sep } from "path";
|
|
43
|
-
import {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
);
|
|
63
|
-
});
|
|
64
|
-
var VIDEO_EXT = /* @__PURE__ */ new Set([
|
|
65
|
-
".mp4",
|
|
66
|
-
".mov",
|
|
67
|
-
".webm",
|
|
68
|
-
".mkv",
|
|
69
|
-
".avi",
|
|
70
|
-
".m4v",
|
|
71
|
-
".mxf",
|
|
72
|
-
".mts",
|
|
73
|
-
".m2ts",
|
|
74
|
-
".ts"
|
|
75
|
-
]);
|
|
76
|
-
var IMAGE_EXT = /* @__PURE__ */ new Set([".jpg", ".jpeg", ".png", ".webp", ".avif"]);
|
|
77
|
-
var AUDIO_EXT = /* @__PURE__ */ new Set([".mp3", ".wav", ".ogg", ".m4a", ".aac", ".flac"]);
|
|
78
|
-
function lower(value) {
|
|
79
|
-
return value?.toLowerCase() ?? "";
|
|
80
|
-
}
|
|
81
|
-
function inferKindFromPath(path) {
|
|
82
|
-
const ext = extname(path).toLowerCase();
|
|
83
|
-
if (VIDEO_EXT.has(ext)) return "video";
|
|
84
|
-
if (IMAGE_EXT.has(ext)) return "image";
|
|
85
|
-
if (AUDIO_EXT.has(ext)) return "audio";
|
|
86
|
-
return "unknown";
|
|
87
|
-
}
|
|
88
|
-
function colorLabel(input) {
|
|
89
|
-
if (input.isHdr) {
|
|
90
|
-
if (input.hdrTransfer === "pq") return "HDR PQ";
|
|
91
|
-
if (input.hdrTransfer === "hlg") return "HDR HLG";
|
|
92
|
-
return "HDR";
|
|
93
|
-
}
|
|
94
|
-
if (input.colorPrimaries.includes("bt709") || input.colorSpace.includes("bt709") || input.colorTransfer.includes("bt709")) {
|
|
95
|
-
return "SDR Rec.709";
|
|
96
|
-
}
|
|
97
|
-
return "SDR/unknown";
|
|
98
|
-
}
|
|
99
|
-
function classifyMediaColor(stream) {
|
|
100
|
-
const colorPrimaries = lower(stream?.color_primaries);
|
|
101
|
-
const colorSpace = lower(stream?.color_space);
|
|
102
|
-
const colorTransfer = lower(stream?.color_transfer);
|
|
103
|
-
const isHdr = colorPrimaries.includes("bt2020") || colorSpace.includes("bt2020") || colorTransfer === "smpte2084" || colorTransfer === "arib-std-b67";
|
|
104
|
-
const hdrTransfer = isHdr ? colorTransfer === "smpte2084" ? "pq" : colorTransfer === "arib-std-b67" ? "hlg" : "unknown" : null;
|
|
105
|
-
return {
|
|
106
|
-
dynamicRange: stream ? isHdr ? "hdr" : "sdr" : "unknown",
|
|
107
|
-
hdrTransfer,
|
|
108
|
-
label: stream ? colorLabel({ isHdr, hdrTransfer, colorPrimaries, colorSpace, colorTransfer }) : "Unknown",
|
|
109
|
-
isHdr,
|
|
110
|
-
codecName: stream?.codec_name,
|
|
111
|
-
profile: stream?.profile,
|
|
112
|
-
pixelFormat: stream?.pix_fmt,
|
|
113
|
-
colorSpace: stream?.color_space,
|
|
114
|
-
colorTransfer: stream?.color_transfer,
|
|
115
|
-
colorPrimaries: stream?.color_primaries,
|
|
116
|
-
bitsPerRawSample: stream?.bits_per_raw_sample
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
async function probeFirstFrameColour(filePath, runner = execFileRunner) {
|
|
120
|
-
const ffmpegPath = findFfBinary("ffmpeg", { configuredMustExist: true }) ?? (runner === execFileRunner ? void 0 : "ffmpeg");
|
|
121
|
-
if (!ffmpegPath) return {};
|
|
122
|
-
const result = await runner(ffmpegPath, firstFrameColourArgs(filePath), {
|
|
123
|
-
timeout: 15e3,
|
|
124
|
-
maxBuffer: 1024 * 1024
|
|
125
|
-
});
|
|
126
|
-
return result.status === 0 ? parseFirstFrameColour(String(result.stderr)) : {};
|
|
127
|
-
}
|
|
128
|
-
function bitDepthOf(stream) {
|
|
129
|
-
const raw = Number(stream.bits_per_raw_sample);
|
|
130
|
-
if (Number.isFinite(raw) && raw > 0) return raw;
|
|
131
|
-
const suffixed = /(\d{1,3})(?:le|be)$/.exec(stream.pix_fmt ?? "");
|
|
132
|
-
return suffixed ? Number(suffixed[1]) : 8;
|
|
133
|
-
}
|
|
134
|
-
function sourceFactsOf(stream, formatBitrate) {
|
|
135
|
-
if (!stream?.width || !stream.height) return void 0;
|
|
136
|
-
const bitrate = Number(stream.bit_rate ?? formatBitrate);
|
|
137
|
-
return {
|
|
138
|
-
width: stream.width,
|
|
139
|
-
height: stream.height,
|
|
140
|
-
bitDepth: bitDepthOf(stream),
|
|
141
|
-
bitrate: Number.isFinite(bitrate) ? bitrate : 0
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
var STREAM_SUMMARY_MAX = 12;
|
|
145
|
-
function summarizeStream(stream) {
|
|
146
|
-
const flags = Object.entries(stream.disposition ?? {}).filter(([, on]) => on === 1).map(([name]) => name);
|
|
147
|
-
return `${stream.codec_type ?? "?"}:${stream.codec_name ?? "?"}[${flags.join(",")}]`;
|
|
148
|
-
}
|
|
149
|
-
function metadataFromProbe(kind, parsed) {
|
|
150
|
-
const stream = parsed.streams?.find((item) => {
|
|
151
|
-
if (kind === "image") return item.codec_type === "video";
|
|
152
|
-
return item.codec_type === kind && item.disposition?.attached_pic !== 1;
|
|
44
|
+
import { spawn } from "child_process";
|
|
45
|
+
var checks = /* @__PURE__ */ new Map();
|
|
46
|
+
function ffmpegHasHdrFilters(ffmpegPath) {
|
|
47
|
+
const known = checks.get(ffmpegPath);
|
|
48
|
+
if (known) return known;
|
|
49
|
+
const check = new Promise((resolveCheck) => {
|
|
50
|
+
const proc = spawn(ffmpegPath, ["-hide_banner", "-filters"], {
|
|
51
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
52
|
+
windowsHide: true
|
|
53
|
+
});
|
|
54
|
+
let stdout = "";
|
|
55
|
+
proc.stdout?.on("data", (chunk) => {
|
|
56
|
+
stdout += chunk.toString();
|
|
57
|
+
});
|
|
58
|
+
proc.on("error", () => resolveCheck(false));
|
|
59
|
+
proc.on(
|
|
60
|
+
"close",
|
|
61
|
+
(code) => resolveCheck(code === 0 && /\bzscale\b/.test(stdout) && /\btonemap\b/.test(stdout))
|
|
62
|
+
);
|
|
153
63
|
});
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
color: classifyMediaColor(stream),
|
|
157
|
-
streams: (parsed.streams ?? []).slice(0, STREAM_SUMMARY_MAX).map(summarizeStream)
|
|
158
|
-
};
|
|
159
|
-
if (kind === "video") {
|
|
160
|
-
metadata.hasAudio = (parsed.streams ?? []).some((item) => item.codec_type === "audio");
|
|
161
|
-
metadata.hasAlpha = stream !== void 0 && videoStreamHasAlpha(stream);
|
|
162
|
-
const duration = Number(parsed.format?.duration);
|
|
163
|
-
if (Number.isFinite(duration) && duration > 0) metadata.durationSeconds = duration;
|
|
164
|
-
metadata.source = sourceFactsOf(stream, parsed.format?.bit_rate);
|
|
165
|
-
}
|
|
166
|
-
return metadata;
|
|
167
|
-
}
|
|
168
|
-
async function probeMediaMetadata(filePath, runner = execFileRunner) {
|
|
169
|
-
const kind = inferKindFromPath(filePath);
|
|
170
|
-
if (kind === "audio" || kind === "unknown") {
|
|
171
|
-
return { kind, color: classifyMediaColor(null) };
|
|
172
|
-
}
|
|
173
|
-
const ffprobePath = findFfBinary("ffprobe", { configuredMustExist: true }) ?? (runner === execFileRunner ? void 0 : "ffprobe");
|
|
174
|
-
if (!ffprobePath) {
|
|
175
|
-
return { kind, color: classifyMediaColor(null), probeError: "ffprobe unavailable" };
|
|
176
|
-
}
|
|
177
|
-
const result = await runner(
|
|
178
|
-
ffprobePath,
|
|
179
|
-
[
|
|
180
|
-
"-v",
|
|
181
|
-
"error",
|
|
182
|
-
"-show_entries",
|
|
183
|
-
"stream=codec_type,codec_name,profile,pix_fmt,color_space,color_transfer,color_primaries,bits_per_raw_sample,width,height,bit_rate:stream_disposition:stream_tags=alpha_mode:format=duration,bit_rate",
|
|
184
|
-
"-of",
|
|
185
|
-
"json",
|
|
186
|
-
"--",
|
|
187
|
-
filePath
|
|
188
|
-
],
|
|
189
|
-
{ timeout: 15e3, maxBuffer: 1024 * 1024 }
|
|
190
|
-
);
|
|
191
|
-
if (result.error?.code === "ENOENT") {
|
|
192
|
-
return { kind, color: classifyMediaColor(null), probeError: "ffprobe unavailable" };
|
|
193
|
-
}
|
|
194
|
-
if (result.status !== 0) {
|
|
195
|
-
return { kind, color: classifyMediaColor(null), probeError: "ffprobe failed" };
|
|
196
|
-
}
|
|
197
|
-
try {
|
|
198
|
-
return metadataFromProbe(kind, JSON.parse(String(result.stdout || "{}")));
|
|
199
|
-
} catch {
|
|
200
|
-
return { kind, color: classifyMediaColor(null), probeError: "ffprobe returned invalid json" };
|
|
201
|
-
}
|
|
64
|
+
checks.set(ffmpegPath, check);
|
|
65
|
+
return check;
|
|
202
66
|
}
|
|
203
67
|
var BROWSER_HOSTILE_CODECS = {
|
|
204
68
|
// HEVC decode is platform-bound, not absent: macOS Chrome answers
|
|
@@ -269,12 +133,13 @@ function decideMediaProxyEligibility(facts, lightBox) {
|
|
|
269
133
|
}
|
|
270
134
|
return { eligible: false, reason: "browser_safe_codec" };
|
|
271
135
|
}
|
|
272
|
-
function codecFactsFor(codecName, hasAlpha, source) {
|
|
136
|
+
function codecFactsFor(codecName, hasAlpha, source, toneMapsToSdr = false) {
|
|
273
137
|
const hostile = hostileCodecEntry(codecName);
|
|
274
138
|
return {
|
|
275
139
|
codecName,
|
|
276
|
-
browserHostile: hostile !== void 0,
|
|
277
|
-
|
|
140
|
+
browserHostile: hostile !== void 0 || toneMapsToSdr,
|
|
141
|
+
// An HDR clip is never 'playable' for preview, whatever its codec: it takes the SDR copy the export uses.
|
|
142
|
+
representativeMime: toneMapsToSdr ? null : hostile?.representativeMime ?? null,
|
|
278
143
|
hasAlpha,
|
|
279
144
|
...source && { source }
|
|
280
145
|
};
|
|
@@ -285,7 +150,22 @@ async function probeCodecFacts(filePath, runner) {
|
|
|
285
150
|
if (metadata.kind !== "video") return null;
|
|
286
151
|
const codecName = metadata.color.codecName;
|
|
287
152
|
if (!codecName) return null;
|
|
288
|
-
|
|
153
|
+
const hasAlpha = metadata.hasAlpha === true;
|
|
154
|
+
const toneMaps = !hasAlpha && await toneMapsHdr(metadata.color.hdrTransfer);
|
|
155
|
+
return codecFactsFor(codecName, hasAlpha, metadata.source, toneMaps);
|
|
156
|
+
}
|
|
157
|
+
var warnedNoHdrFilters = false;
|
|
158
|
+
async function toneMapsHdr(hdrTransfer) {
|
|
159
|
+
if (hdrTransfer !== "pq" && hdrTransfer !== "hlg") return false;
|
|
160
|
+
const ffmpegPath = findFfBinary("ffmpeg");
|
|
161
|
+
if (ffmpegPath && await ffmpegHasHdrFilters(ffmpegPath)) return true;
|
|
162
|
+
if (!warnedNoHdrFilters) {
|
|
163
|
+
warnedNoHdrFilters = true;
|
|
164
|
+
console.warn(
|
|
165
|
+
`[hyperframes] A video in this project is HDR, but this ffmpeg has no zscale/tonemap (libzimg), so the preview plays it as the browser shows it and will not match an SDR export. Install an ffmpeg with libzimg.`
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
return false;
|
|
289
169
|
}
|
|
290
170
|
function createMediaCodecProbeCache() {
|
|
291
171
|
return /* @__PURE__ */ new Map();
|
|
@@ -378,8 +258,8 @@ async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
|
|
|
378
258
|
return (await scanProjectMedia(projectDir, htmlSources, options)).codecMap;
|
|
379
259
|
}
|
|
380
260
|
|
|
381
|
-
// ../studio-server/dist/chunk-
|
|
382
|
-
import { spawn } from "child_process";
|
|
261
|
+
// ../studio-server/dist/chunk-KPCW4DQM.js
|
|
262
|
+
import { spawn as spawn2 } from "child_process";
|
|
383
263
|
import { randomUUID } from "crypto";
|
|
384
264
|
import {
|
|
385
265
|
existsSync as existsSync4,
|
|
@@ -393,7 +273,7 @@ import {
|
|
|
393
273
|
import { availableParallelism, tmpdir, totalmem } from "os";
|
|
394
274
|
import { basename as basename3, dirname as dirname3, extname as extname3, isAbsolute, join as join4, relative, resolve, sep as sep2 } from "path";
|
|
395
275
|
import { existsSync, readdirSync, statSync as statSync2, unlinkSync } from "fs";
|
|
396
|
-
import { extname
|
|
276
|
+
import { extname, join } from "path";
|
|
397
277
|
import { createHash } from "crypto";
|
|
398
278
|
import {
|
|
399
279
|
closeSync,
|
|
@@ -405,7 +285,7 @@ import {
|
|
|
405
285
|
statSync as statSync22,
|
|
406
286
|
writeFileSync
|
|
407
287
|
} from "fs";
|
|
408
|
-
import { basename, dirname, extname as
|
|
288
|
+
import { basename, dirname, extname as extname2, join as join2 } from "path";
|
|
409
289
|
import {
|
|
410
290
|
closeSync as closeSync2,
|
|
411
291
|
existsSync as existsSync3,
|
|
@@ -474,7 +354,7 @@ function readCacheInventory(cacheDir, protectedPaths, now, staleTempMs) {
|
|
|
474
354
|
if (leftoverIsDead(cacheDir, dirent.name, stat.mtimeMs, protectedPaths, now, staleTempMs)) {
|
|
475
355
|
staleTemps.push(entry);
|
|
476
356
|
}
|
|
477
|
-
} else if (TRANSCODER_PROXY_NAME.test(dirent.name) && PROXY_EXTENSIONS.has(
|
|
357
|
+
} else if (TRANSCODER_PROXY_NAME.test(dirent.name) && PROXY_EXTENSIONS.has(extname(dirent.name))) {
|
|
478
358
|
entries.push(entry);
|
|
479
359
|
}
|
|
480
360
|
}
|
|
@@ -569,7 +449,7 @@ function sourceSizeBytes(sourcePath) {
|
|
|
569
449
|
}
|
|
570
450
|
}
|
|
571
451
|
function fastIndexPath(cachePath) {
|
|
572
|
-
return join2(dirname(cachePath), `.fast-${basename(cachePath,
|
|
452
|
+
return join2(dirname(cachePath), `.fast-${basename(cachePath, extname2(cachePath))}`);
|
|
573
453
|
}
|
|
574
454
|
function contentIndexPath(cacheDir, contentKey) {
|
|
575
455
|
return join2(cacheDir, `.content-${contentKey}`);
|
|
@@ -761,9 +641,8 @@ var ProxyDroppedError = class extends ProxyTranscodeError {
|
|
|
761
641
|
var activeTranscodes = 0;
|
|
762
642
|
var waitQueue = [];
|
|
763
643
|
function enqueue(job) {
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
else waitQueue.splice(firstNormal, 0, job);
|
|
644
|
+
if (job.priority) waitQueue.unshift(job);
|
|
645
|
+
else waitQueue.push(job);
|
|
767
646
|
}
|
|
768
647
|
function dequeue(job) {
|
|
769
648
|
const index = waitQueue.indexOf(job);
|
|
@@ -799,7 +678,6 @@ function releaseSlot() {
|
|
|
799
678
|
waitQueue.shift()?.queued?.start();
|
|
800
679
|
}
|
|
801
680
|
function prioritize(job) {
|
|
802
|
-
if (job.priority) return;
|
|
803
681
|
job.priority = true;
|
|
804
682
|
if (!job.queued) return;
|
|
805
683
|
dequeue(job);
|
|
@@ -836,29 +714,8 @@ function markCacheEntryUsed(cachePath) {
|
|
|
836
714
|
}
|
|
837
715
|
}
|
|
838
716
|
var failedTranscodes = /* @__PURE__ */ new Map();
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
if (hdrFilterCheck?.ffmpegPath === ffmpegPath) return hdrFilterCheck.promise;
|
|
842
|
-
const promise = new Promise((resolveCheck, rejectCheck) => {
|
|
843
|
-
const proc = spawn(ffmpegPath, ["-hide_banner", "-filters"], {
|
|
844
|
-
stdio: ["ignore", "pipe", "pipe"],
|
|
845
|
-
windowsHide: true
|
|
846
|
-
});
|
|
847
|
-
let stdout = "";
|
|
848
|
-
proc.stdout?.on("data", (chunk) => {
|
|
849
|
-
stdout += chunk.toString();
|
|
850
|
-
});
|
|
851
|
-
proc.on("error", () => rejectCheck(new FfmpegMissingFilterError()));
|
|
852
|
-
proc.on("close", (code) => {
|
|
853
|
-
if (code !== 0 || !/\bzscale\b/.test(stdout) || !/\btonemap\b/.test(stdout)) {
|
|
854
|
-
rejectCheck(new FfmpegMissingFilterError());
|
|
855
|
-
} else {
|
|
856
|
-
resolveCheck();
|
|
857
|
-
}
|
|
858
|
-
});
|
|
859
|
-
});
|
|
860
|
-
hdrFilterCheck = { ffmpegPath, promise };
|
|
861
|
-
return promise;
|
|
717
|
+
async function ensureHdrFilters(ffmpegPath) {
|
|
718
|
+
if (!await ffmpegHasHdrFilters(ffmpegPath)) throw new FfmpegMissingFilterError();
|
|
862
719
|
}
|
|
863
720
|
function rememberFailure(cachePath, error) {
|
|
864
721
|
const ttlMs = error instanceof FfmpegUnavailableError || error instanceof FfmpegMissingFilterError ? ENVIRONMENT_FAILURE_TTL_MS : FAILURE_CACHE_TTL_MS;
|
|
@@ -1115,6 +972,10 @@ async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, sign
|
|
|
1115
972
|
const videoFilter = await buildVideoFilter(ffmpegPath, sourcePath, metadata, keepsAlpha, box);
|
|
1116
973
|
const alphaDecoder = keepsAlpha ? alphaDecoderFor(metadata.color.codecName) : null;
|
|
1117
974
|
const decoderArgs = alphaDecoder ? ["-c:v", alphaDecoder] : [];
|
|
975
|
+
const streamArgs = [
|
|
976
|
+
...["-map", "0:V:0"],
|
|
977
|
+
...metadata.audioStream === void 0 ? [] : ["-map", `0:a:${metadata.audioStream}`]
|
|
978
|
+
];
|
|
1118
979
|
const totalSeconds = metadata.durationSeconds;
|
|
1119
980
|
const gate = keepsAlpha ? ALPHA_PIECE_GATE : UNGATED;
|
|
1120
981
|
const vp8Threads = (pieces) => [
|
|
@@ -1132,6 +993,7 @@ async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, sign
|
|
|
1132
993
|
...decoderArgs,
|
|
1133
994
|
"-i",
|
|
1134
995
|
sourcePath,
|
|
996
|
+
...streamArgs,
|
|
1135
997
|
...range ? ["-t", String(range.lengthSeconds)] : [],
|
|
1136
998
|
"-vf",
|
|
1137
999
|
videoFilter,
|
|
@@ -1186,7 +1048,7 @@ var OUT_TIME = /^out_time_(?:us|ms)=(\d+)$/;
|
|
|
1186
1048
|
function spawnFfmpeg(ffmpegPath, args, stallMs, signal, onProgress) {
|
|
1187
1049
|
return new Promise((resolvePromise, reject) => {
|
|
1188
1050
|
signal.throwIfAborted();
|
|
1189
|
-
const proc =
|
|
1051
|
+
const proc = spawn2(ffmpegPath, args, {
|
|
1190
1052
|
stdio: ["ignore", "pipe", "pipe"],
|
|
1191
1053
|
killSignal: "SIGKILL",
|
|
1192
1054
|
signal,
|
|
@@ -1424,7 +1286,6 @@ function joinJob(promise, job, signal) {
|
|
|
1424
1286
|
}
|
|
1425
1287
|
|
|
1426
1288
|
export {
|
|
1427
|
-
probeMediaMetadata,
|
|
1428
1289
|
shouldPrewarmProxy,
|
|
1429
1290
|
recordProxyPrewarm,
|
|
1430
1291
|
recordProxyRequest,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FBIWJ3A4.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-Y65ZU7XY.js";
|
|
24
24
|
import {
|
|
25
25
|
defineCommand
|
|
26
26
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-ZTZA4UWZ.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-I3PNZDKR.js";
|
|
33
33
|
import {
|
|
34
34
|
getFreeDiskMb,
|
|
35
35
|
getShmSizeMb,
|
|
@@ -41,17 +41,17 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
getUpdateMeta,
|
|
43
43
|
withMeta
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-UA3YNZK6.js";
|
|
45
45
|
import {
|
|
46
46
|
CONFIG_PATH,
|
|
47
47
|
withFileLock
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-P6EXMN5D.js";
|
|
49
49
|
import {
|
|
50
50
|
VERSION
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-AG566TRI.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeErrorMessage
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-E63BDV4Z.js";
|
|
55
55
|
|
|
56
56
|
// src/commands/doctor.ts
|
|
57
57
|
import { execFileSync, execSync } from "child_process";
|
|
@@ -63,6 +63,12 @@ var examples = [
|
|
|
63
63
|
["Check system dependencies", "hyperframes doctor"],
|
|
64
64
|
["Output as JSON for CI / agents", "hyperframes doctor --json"]
|
|
65
65
|
];
|
|
66
|
+
var TESTED_FFMPEG_VERSION = "8.0.1";
|
|
67
|
+
function ffmpegDoctorDetail(detail) {
|
|
68
|
+
return new RegExp(`^ffmpeg n?${TESTED_FFMPEG_VERSION.replaceAll(".", "\\.")}(?![.\\d])`).test(
|
|
69
|
+
detail
|
|
70
|
+
) ? `${detail} (tested build)` : `${detail}; loudness numbers are only comparable on ${TESTED_FFMPEG_VERSION}`;
|
|
71
|
+
}
|
|
66
72
|
function checkDocker() {
|
|
67
73
|
try {
|
|
68
74
|
const version = execSync("docker --version", { encoding: "utf-8", timeout: 5e3 }).trim();
|
|
@@ -234,7 +240,7 @@ function checkEnvironment() {
|
|
|
234
240
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
235
241
|
}
|
|
236
242
|
async function checkWhisper() {
|
|
237
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
243
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-OQ5J26ST.js");
|
|
238
244
|
const result = findWhisper();
|
|
239
245
|
if (result) {
|
|
240
246
|
return { ok: true, detail: result.executablePath };
|
|
@@ -335,7 +341,7 @@ var doctor_default = defineCommand({
|
|
|
335
341
|
outcomes.push({
|
|
336
342
|
name: result.name,
|
|
337
343
|
ok: result.ok,
|
|
338
|
-
detail: result.detail,
|
|
344
|
+
detail: result.name === "FFmpeg" && result.ok ? ffmpegDoctorDetail(result.detail) : result.detail,
|
|
339
345
|
...result.hint ? { hint: result.hint } : {}
|
|
340
346
|
});
|
|
341
347
|
}
|
|
@@ -381,6 +387,8 @@ var doctor_default = defineCommand({
|
|
|
381
387
|
|
|
382
388
|
export {
|
|
383
389
|
examples,
|
|
390
|
+
TESTED_FFMPEG_VERSION,
|
|
391
|
+
ffmpegDoctorDetail,
|
|
384
392
|
checkFramesCache,
|
|
385
393
|
checkArchiveExtractor,
|
|
386
394
|
checkSettingsLock,
|
|
@@ -16,7 +16,6 @@ import {
|
|
|
16
16
|
SCENE_PARTS_META,
|
|
17
17
|
SCENE_PART_ATTR,
|
|
18
18
|
assignMediaRenderIds,
|
|
19
|
-
buildVariablesByCompScript,
|
|
20
19
|
clampDurations,
|
|
21
20
|
compileTimingAttrs,
|
|
22
21
|
compositionStyle,
|
|
@@ -25,6 +24,7 @@ import {
|
|
|
25
24
|
cssStyleMergeKey,
|
|
26
25
|
dedupeFontFaceRules,
|
|
27
26
|
deferScriptsUntilFonts,
|
|
27
|
+
emitVariablesByCompScript,
|
|
28
28
|
enumerateNestedCompositionHosts,
|
|
29
29
|
escapeCssAttributeValue,
|
|
30
30
|
escapeCssIdentifier,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
warnUnknownEnumValues,
|
|
60
60
|
wrapInlineScriptWithErrorBoundary,
|
|
61
61
|
wrapScopedCompositionScript
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-QRC7IVBC.js";
|
|
63
63
|
import {
|
|
64
64
|
cssVariableName
|
|
65
65
|
} from "./chunk-VC76R6W2.js";
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
} from "./chunk-OFQWTKPW.js";
|
|
70
70
|
import {
|
|
71
71
|
lintHyperframeHtml
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-P327BIJR.js";
|
|
73
73
|
import {
|
|
74
74
|
CSS_URL_RE,
|
|
75
75
|
checkSubCompositionUsability,
|
|
@@ -2462,13 +2462,7 @@ async function bundleProject(projectDir, options) {
|
|
|
2462
2462
|
pushRun(styleRuns, void 0, css);
|
|
2463
2463
|
for (const chunk of compScriptChunks)
|
|
2464
2464
|
pushRun(scriptRuns, void 0, chunk);
|
|
2465
|
-
|
|
2466
|
-
if (variablesByCompScript) {
|
|
2467
|
-
if (scriptRuns[0] && !scriptRuns[0].scene)
|
|
2468
|
-
scriptRuns[0].chunks.unshift(variablesByCompScript);
|
|
2469
|
-
else
|
|
2470
|
-
scriptRuns.unshift({ chunks: [variablesByCompScript] });
|
|
2471
|
-
}
|
|
2465
|
+
emitVariablesByCompScript(document, compVariablesByComp);
|
|
2472
2466
|
for (const { scene, chunks } of styleRuns) {
|
|
2473
2467
|
const join = scene ? joinCssHoistingImports : (css) => css.join("\n\n");
|
|
2474
2468
|
for (const style of styleElementsFor(document, chunks, join)) {
|