hyperframes 0.8.224 → 0.8.225
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-JEPKJ2F4.js → add-ZGNY2AXJ.js} +5 -5
- package/dist/{agentPromptGenerator-ZBNWLX5D.js → agentPromptGenerator-GG4FFZH7.js} +2 -2
- package/dist/{animatedGifPrep-43LLMTN5.js → animatedGifPrep-NVDUG2CD.js} +2 -2
- package/dist/api.js +15 -15
- package/dist/{asset-M6SH6PUW.js → asset-UC3OQBB3.js} +2 -2
- package/dist/{assetCataloger-BLQ7UVJ5.js → assetCataloger-WQTNJMZU.js} +3 -3
- package/dist/{audio-J3QREJK4.js → audio-T6RWZHAA.js} +7 -7
- package/dist/{auth-7TRCBCKA.js → auth-FSXEGF3B.js} +2 -2
- package/dist/{autoUpdate-WTFSYLTK.js → autoUpdate-LOBHDWAA.js} +2 -2
- package/dist/{backgroundChecks-YZW7AMMJ.js → backgroundChecks-RBFWIWBP.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{beats-JWUADKHV.js → beats-WFPPVM6N.js} +4 -4
- package/dist/{benchmark-QOQZ7UGD.js → benchmark-7MYD5S26.js} +6 -6
- package/dist/{billing-3GVNEE56.js → billing-2BJTLFDX.js} +1 -1
- package/dist/{browser-4HNCSPUR.js → browser-6C4IDYQE.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-GTKHB45M.js → bundleWithLocalizedFonts-ARTT664T.js} +1 -1
- package/dist/{capture-XSRWYHAM.js → capture-7TFC65RN.js} +3 -3
- package/dist/{capture-5OYZNIOR.js → capture-TWZ5DQHP.js} +7 -7
- package/dist/{captureCompositionFrame-4F7PPQKB.js → captureCompositionFrame-EMP6R3F6.js} +5 -5
- package/dist/{catalog-4FVQSID5.js → catalog-W4RJO4FE.js} +5 -5
- package/dist/{catch-up-KQVK2QZC.js → catch-up-OOCJH3O6.js} +4 -4
- package/dist/{check-3YHLB6FM.js → check-BPPHG2CF.js} +20 -20
- package/dist/{checkAudio-7ZSZVBSJ.js → checkAudio-QEGCKX2V.js} +4 -4
- package/dist/{checkBrowser-VX5CHNQS.js → checkBrowser-4JDYYAVA.js} +14 -14
- package/dist/{chunk-5KAGTSLY.js → chunk-2EH3WQCS.js} +2 -2
- package/dist/{chunk-BTK3T4HJ.js → chunk-2YZD6CAF.js} +1 -1
- package/dist/{chunk-ZLZXGJ63.js → chunk-3E2BO3L3.js} +1 -1
- package/dist/{chunk-RU7KMDFL.js → chunk-3HRQI6LJ.js} +1 -1
- package/dist/{chunk-QK6ZNEBW.js → chunk-3XQQLL3G.js} +1 -1
- package/dist/{chunk-2QQO3J3B.js → chunk-4A643C3B.js} +1 -1
- package/dist/{chunk-JMP52GTN.js → chunk-4K6AS5TX.js} +5 -5
- package/dist/{chunk-W7MJPKBJ.js → chunk-4VTXUGDR.js} +1 -1
- package/dist/{chunk-J7FVF73D.js → chunk-4Z2SU2VC.js} +17 -17
- package/dist/{chunk-NFUR6NNT.js → chunk-5HGS5MGD.js} +42 -15
- package/dist/{chunk-E2ZY4GWH.js → chunk-5I6XEO4W.js} +1 -1
- package/dist/{chunk-ODJ2WBZX.js → chunk-5KADQQ6S.js} +1 -1
- package/dist/{chunk-6QIYQ43G.js → chunk-6IV2N527.js} +2 -2
- package/dist/{chunk-HDPW7THH.js → chunk-ACUVSKUI.js} +8 -8
- package/dist/{chunk-QOI46C6F.js → chunk-ADOBHVHW.js} +1 -1
- package/dist/{chunk-VPMHRLJH.js → chunk-AF3EN5XS.js} +1 -1
- package/dist/{chunk-F7T57BZZ.js → chunk-BKHBSFEO.js} +2 -2
- package/dist/{chunk-2KDHJCH2.js → chunk-BTDKWWND.js} +1 -1
- package/dist/{chunk-VCJE7IMY.js → chunk-CXVFPIOM.js} +1 -1
- package/dist/{chunk-MA5AQK7T.js → chunk-EEBIHQF2.js} +2 -2
- package/dist/{chunk-L4ULTWCD.js → chunk-EECV7SDN.js} +1 -1
- package/dist/{chunk-2M6B2JKZ.js → chunk-EIIMWDZW.js} +4 -4
- package/dist/{chunk-HANNA5JJ.js → chunk-FPWCICAI.js} +1 -1
- package/dist/{chunk-3ZDOAVZM.js → chunk-G6Z47UQP.js} +125 -13
- package/dist/{chunk-52B3AOIV.js → chunk-GI42ZB52.js} +1 -1
- package/dist/{chunk-MOXNAVCW.js → chunk-GZPGTGRV.js} +1 -1
- package/dist/{chunk-D4M37ATV.js → chunk-HMS6UHUW.js} +1 -1
- package/dist/{chunk-JKLWWGE6.js → chunk-HW6HTTBZ.js} +1 -1
- package/dist/{chunk-GQ2QER6M.js → chunk-IB7I5IEC.js} +1 -1
- package/dist/{chunk-53JEHQBW.js → chunk-IJWDVOIO.js} +2 -2
- package/dist/{chunk-JUF43Q7Q.js → chunk-K73PYNON.js} +1 -1
- package/dist/{chunk-3NHCTTLP.js → chunk-KDF67KEB.js} +9 -9
- package/dist/{chunk-LRS4FV5W.js → chunk-KVBOJJ5R.js} +1 -1
- package/dist/{chunk-GLTSINRP.js → chunk-LWTT7I7X.js} +1 -1
- package/dist/{chunk-JK2KNL6F.js → chunk-LZB5AHFD.js} +1 -1
- package/dist/{chunk-53TKUWDX.js → chunk-M3WOI7BU.js} +1 -1
- package/dist/{chunk-THL3N377.js → chunk-M4NN4AHH.js} +8 -8
- package/dist/{chunk-5N5FYE5K.js → chunk-NLELDFX7.js} +1 -1
- package/dist/{chunk-JIF347PW.js → chunk-O3MGHHJO.js} +3 -3
- package/dist/{chunk-NI35PAVN.js → chunk-PICDT6ZW.js} +1 -1
- package/dist/{chunk-IYYQRNIZ.js → chunk-R6JPOEDZ.js} +1 -1
- package/dist/{chunk-4ZAOAPWP.js → chunk-RDLJSUI4.js} +8 -8
- package/dist/{chunk-2WVQ3CCN.js → chunk-SIYDHVN2.js} +1 -1
- package/dist/{chunk-H6APAFKE.js → chunk-SVGHIMPQ.js} +2 -2
- package/dist/{chunk-O2VKGYSK.js → chunk-SXHSNLEC.js} +1 -1
- package/dist/{chunk-F3CTUCFD.js → chunk-T5KG6H6L.js} +2 -2
- package/dist/{chunk-K3QT232E.js → chunk-TRPNLI6V.js} +1 -1
- package/dist/{chunk-HIPW4JXL.js → chunk-UBH2R663.js} +2 -2
- package/dist/{chunk-POOLZTMZ.js → chunk-UBXKKXXR.js} +3 -3
- package/dist/{chunk-Y5HVDK7X.js → chunk-UQWOOANM.js} +2 -2
- package/dist/{chunk-BAXL3U3T.js → chunk-VHL26GNQ.js} +2 -2
- package/dist/{chunk-VXRBPWVW.js → chunk-W464PHF3.js} +7 -7
- package/dist/{chunk-F34GYYXO.js → chunk-WQCVZEXH.js} +1 -1
- package/dist/{chunk-PKMAWQUI.js → chunk-XM5KYLIE.js} +2 -2
- package/dist/{chunk-34GAW4GO.js → chunk-Y5OSQXGZ.js} +5 -5
- package/dist/{chunk-SGMCQAYU.js → chunk-Z57RQBIA.js} +2 -2
- package/dist/{clean-SXEI6FT4.js → clean-XWDDXLRP.js} +7 -7
- package/dist/cli.js +55 -55
- package/dist/{cloud-SKN6FWAZ.js → cloud-SETWVGKH.js} +4 -4
- package/dist/{compare-RTXF2NSK.js → compare-FWMFV7A7.js} +10 -10
- package/dist/{component-2NPF5PA6.js → component-HGEIXY3U.js} +3 -3
- package/dist/{compositions-AZRVHGBT.js → compositions-2TXJLBWE.js} +6 -6
- package/dist/{curve-QSFEGBUH.js → curve-SSFKIA2L.js} +6 -6
- package/dist/{cuts-6AWEJH2H.js → cuts-BWXHTOOP.js} +7 -7
- package/dist/{delete-NOHFVICL.js → delete-F5RDWZEJ.js} +2 -2
- package/dist/{deploy-UFRADJOA.js → deploy-OH4SMYTG.js} +1 -1
- package/dist/{describeProject-F43LI3YQ.js → describeProject-B7H4T5PW.js} +2 -2
- package/dist/{diff-3WS6NMSE.js → diff-6JFFTFKR.js} +16 -16
- package/dist/{doctor-F4VJYQXC.js → doctor-XQCZB5BY.js} +6 -6
- package/dist/{energy-BN3QD6Y7.js → energy-MEMYSTFT.js} +7 -7
- package/dist/{events-YJ3XSIPL.js → events-T7OLH6MW.js} +3 -3
- package/dist/{events-PZH4C7VA.js → events-U6PXJI34.js} +2 -2
- package/dist/{events-5W7ETFWR.js → events-ZU2ATKWK.js} +8 -8
- package/dist/{extract-S34DWGAD.js → extract-25TUTGCA.js} +7 -7
- package/dist/{face-3SCJADG4.js → face-KMLYOE5H.js} +7 -7
- package/dist/{feedback-3K6NSKIC.js → feedback-FE7GQTBH.js} +4 -4
- package/dist/{ffmpeg-2RBDDMHU.js → ffmpeg-CXYPYIZK.js} +2 -2
- package/dist/{figma-NWAJYMAI.js → figma-QMKU7M7T.js} +3 -3
- package/dist/fontLocalizeCli.js +5 -5
- package/dist/{frames-6UARLPLK.js → frames-2NPBO6LB.js} +8 -8
- package/dist/{generate-KBVWFVXN.js → generate-I6E3V7PU.js} +10 -10
- package/dist/{get-SEZZMLQ3.js → get-JJWBP5NB.js} +2 -2
- package/dist/{gpuPolicy-VIZAJ3GY.js → gpuPolicy-2OMDU74V.js} +2 -2
- package/dist/{grade-compare-PMAK4PJD.js → grade-compare-QCA3VIKQ.js} +11 -11
- package/dist/{heifImagePrep-6NYIR7WN.js → heifImagePrep-P53GG4GF.js} +3 -3
- package/dist/{help-4UPSHWI2.js → help-COSONWFD.js} +1 -1
- package/dist/{history-VNAZEQDE.js → history-CWKF5AXI.js} +6 -6
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-OREET5PM.js → info-SD74Y6V5.js} +5 -5
- package/dist/{init-K7AEJBAL.js → init-XAYQNTVF.js} +18 -18
- package/dist/{inspect-STME5DNY.js → inspect-Y5IIQBIW.js} +12 -12
- package/dist/{keyframes-JQWZ235Q.js → keyframes-MNPCJZYU.js} +6 -6
- package/dist/{lambda-RJNLW2EO.js → lambda-PMI6IDVN.js} +3 -3
- package/dist/{layout-MTZWBPNZ.js → layout-6IM6R6LX.js} +12 -12
- package/dist/{lint-AQWTSL75.js → lint-6VUHVHFF.js} +6 -6
- package/dist/{list-ZEBZ5DB5.js → list-XXTAS744.js} +2 -2
- package/dist/{localPage-CQ3H4N2N.js → localPage-2UHUS6LM.js} +2 -2
- package/dist/{login-VHCZHENV.js → login-KM3LPYQ7.js} +4 -4
- package/dist/{look-25TSRPSV.js → look-3CD3ZSXY.js} +7 -7
- package/dist/{manager-57SX7D5G.js → manager-C6GVT3EI.js} +3 -3
- package/dist/{measure-Y2R3G5OJ.js → measure-DWZX4YAK.js} +10 -10
- package/dist/{media-treatment-3G2IVS64.js → media-treatment-IIUPGQIX.js} +7 -7
- package/dist/{media-use-LUAOZJNV.js → media-use-HLHUEFDK.js} +1 -1
- package/dist/{models-NT56FKRG.js → models-IWHY5V6N.js} +6 -6
- package/dist/{motionShot-P4NTFKYS.js → motionShot-4NKHFUS7.js} +7 -7
- package/dist/{normalize-audio-2DUTZ6QK.js → normalize-audio-M2RS5Q23.js} +4 -4
- package/dist/{open-OATYOOR7.js → open-U7CCHUBO.js} +4 -4
- package/dist/{parakeetRunner-UASHW3A4.js → parakeetRunner-ZHG3S6GY.js} +7 -7
- package/dist/{pipeline-GGAYP5Q6.js → pipeline-66JR7EC7.js} +5 -5
- package/dist/{play-GHXBJS3T.js → play-5COR53D2.js} +4 -4
- package/dist/{preflight-6VOP3IOI.js → preflight-OKAO5NPW.js} +3 -3
- package/dist/{present-M7UYHVEZ.js → present-YKFQC22R.js} +4 -4
- package/dist/{preview-YWT5WA3W.js → preview-3YNKJZME.js} +8 -8
- package/dist/{probe-CQAGZJLP.js → probe-QMPDGKU5.js} +6 -6
- package/dist/{producer-OU2BCMLY.js → producer-WBVDP3IV.js} +1 -1
- package/dist/{remove-background-A5KJUH6W.js → remove-background-ELC7V7KT.js} +6 -6
- package/dist/{render-Z5IS4AUP.js → render-R7E7TTNE.js} +8 -8
- package/dist/{render-EMW4I6C6.js → render-WH7MPRZD.js} +19 -19
- package/dist/{sherpa-SAY3I7PK.js → sherpa-FP6HX5KK.js} +6 -6
- package/dist/{skills-YWQ5XKH6.js → skills-JLNDM2KP.js} +5 -5
- package/dist/{skillsUpdateCheck-ST5ZFEET.js → skillsUpdateCheck-WS5M25TN.js} +3 -3
- package/dist/{snapshot-57YYYE5J.js → snapshot-VPN6GA7U.js} +16 -16
- package/dist/{src-LNSJHD25.js → src-AP7B27MZ.js} +1 -1
- package/dist/{src-7MEBCSTP.js → src-RGQFYVHO.js} +4 -4
- package/dist/{staticProjectServer-TTJSAB2Q.js → staticProjectServer-YA6XOSFY.js} +2 -2
- package/dist/{status-FGXBUX2T.js → status-Y5ZBFJ53.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-Bzcd9O2g.js → hyperframes-player-Do2ZF6Lp.js} +1 -1
- package/dist/studio/assets/{index-LW6kxYVF.js → index-CK4_IJ8G.js} +1 -1
- package/dist/studio/assets/{index-CZI-XmnO.js → index-Dxb7fTWf.js} +4 -4
- package/dist/studio/index.html +1 -1
- package/dist/{studioServer-2AIRUNBA.js → studioServer-EVMF3HHL.js} +23 -23
- package/dist/{sync-52GUXEYZ.js → sync-ASUBSVGQ.js} +7 -7
- package/dist/{telemetry-RVY6RSCD.js → telemetry-YON45KT4.js} +3 -3
- package/dist/{timeline-MMZF4AX3.js → timeline-OQWDGV7L.js} +7 -7
- package/dist/{tokens-WGWCYFTY.js → tokens-NMPY673W.js} +2 -2
- package/dist/{transcribe-6BF5FFPV.js → transcribe-C6FKVSRR.js} +14 -14
- package/dist/{transcribe-YYDHXRQW.js → transcribe-HSYXT5TZ.js} +5 -5
- package/dist/{updateCheck-AAR5LLUF.js → updateCheck-B7PAAPCJ.js} +2 -2
- package/dist/{upgrade-Y7CIRL4B.js → upgrade-BOECDD5S.js} +2 -2
- package/dist/{urlDownloader-KZOD7EWX.js → urlDownloader-KC2SS457.js} +1 -1
- package/dist/{validate-K3PHAA2E.js → validate-LEEBUIIH.js} +11 -11
- package/dist/{video-Z6EBVCAT.js → video-JJAEISDH.js} +3 -3
- package/dist/warmCheck.js +20 -20
- package/package.json +1 -1
|
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = true ? "0.8.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.8.
|
|
9
|
+
var VERSION = true ? "0.8.225" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.8.225" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -15,16 +15,16 @@ import {
|
|
|
15
15
|
findFFmpeg,
|
|
16
16
|
findFFprobe,
|
|
17
17
|
getFFmpegInstallHint
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FPWCICAI.js";
|
|
19
19
|
import {
|
|
20
20
|
registerBrowserSessionCleanup
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UBH2R663.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_VP9_CPU_USED,
|
|
24
24
|
SDR_RGB_TO_BT709_FILTER,
|
|
25
25
|
SDR_RGB_TO_TAGGED_BT709_FILTER,
|
|
26
26
|
renderProvenanceArgs
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5HGS5MGD.js";
|
|
28
28
|
import {
|
|
29
29
|
runCancellableProcess
|
|
30
30
|
} from "./chunk-X6JUUQCM.js";
|
|
@@ -435,7 +435,7 @@ async function decoderTransposesDimensions(inputPath) {
|
|
|
435
435
|
}
|
|
436
436
|
async function probeMedia(inputPath) {
|
|
437
437
|
const isImage = inferInputKind(inputPath) === "image";
|
|
438
|
-
const engine = await import("./src-
|
|
438
|
+
const engine = await import("./src-AP7B27MZ.js");
|
|
439
439
|
const meta = await engine.extractMediaMetadata(inputPath);
|
|
440
440
|
if (isImage) {
|
|
441
441
|
return { width: meta.width, height: meta.height, fps: 0, frameCount: 1 };
|
|
@@ -7,29 +7,37 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
findCuts,
|
|
9
9
|
signatures
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TRPNLI6V.js";
|
|
11
11
|
import {
|
|
12
12
|
jsonArg,
|
|
13
13
|
num,
|
|
14
14
|
runMeasure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BKHBSFEO.js";
|
|
16
16
|
import {
|
|
17
17
|
idempotencyKey,
|
|
18
18
|
runJob
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2EH3WQCS.js";
|
|
20
20
|
import {
|
|
21
21
|
Fix,
|
|
22
22
|
probeVideo,
|
|
23
23
|
round,
|
|
24
24
|
runFfmpeg,
|
|
25
25
|
videoClip
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2YZD6CAF.js";
|
|
27
27
|
import {
|
|
28
28
|
defineCommand
|
|
29
29
|
} from "./chunk-DL4OD7IA.js";
|
|
30
30
|
|
|
31
31
|
// src/heygen/generate.ts
|
|
32
|
-
import {
|
|
32
|
+
import {
|
|
33
|
+
existsSync,
|
|
34
|
+
mkdirSync,
|
|
35
|
+
mkdtempSync,
|
|
36
|
+
readFileSync,
|
|
37
|
+
renameSync,
|
|
38
|
+
rmSync,
|
|
39
|
+
writeFileSync
|
|
40
|
+
} from "fs";
|
|
33
41
|
import { tmpdir } from "os";
|
|
34
42
|
import { dirname, extname, join, relative, resolve } from "path";
|
|
35
43
|
var GENERATE_TYPES = [
|
|
@@ -48,14 +56,38 @@ function parseMask(text) {
|
|
|
48
56
|
const box = [Number(m[1]), Number(m[2]), Number(m[3]), Number(m[4])];
|
|
49
57
|
return m[5] ? { box, window: [Number(m[5]), Number(m[6])] } : { box };
|
|
50
58
|
}
|
|
51
|
-
function
|
|
59
|
+
function delogoFilters(masks, width, height) {
|
|
52
60
|
return masks.flatMap(({ box: [x, y, w, h], window }) => {
|
|
53
61
|
const [x0, y0] = [Math.max(1, x), Math.max(1, y)];
|
|
54
62
|
const [x1, y1] = [Math.min(width - 2, x + w), Math.min(height - 2, y + h)];
|
|
55
63
|
if (x1 - x0 < 1 || y1 - y0 < 1) return [];
|
|
56
64
|
const when = window ? `:enable='between(t,${window[0]},${window[1]})'` : "";
|
|
57
65
|
return [`delogo=x=${x0}:y=${y0}:w=${x1 - x0}:h=${y1 - y0}${when}`];
|
|
66
|
+
}).join(",");
|
|
67
|
+
}
|
|
68
|
+
function maskFilters(masks, fps) {
|
|
69
|
+
const radius = Math.min(127, Math.max(2, Math.round(fps)));
|
|
70
|
+
const steps = masks.map(({ box: [x, y, w, h], window }, i) => {
|
|
71
|
+
const when = window ? `:enable='between(t,${window[0]},${window[1]})'` : "";
|
|
72
|
+
const [w2, h2] = [w - w % 2, h - h % 2];
|
|
73
|
+
return `[v${i}]split[a${i}][b${i}];[b${i}]crop=${w2}:${h2}:${x}:${y},tmedian=radius=${radius}[m${i}];[a${i}][m${i}]overlay=${x}:${y}${when}[v${i + 1}]`;
|
|
58
74
|
});
|
|
75
|
+
return `[0:v]null[v0];${steps.join(";")}`;
|
|
76
|
+
}
|
|
77
|
+
function structureRatio(gray, width, box) {
|
|
78
|
+
const height = gray.length / width;
|
|
79
|
+
const [x0, y0, x1, y1] = [box[0], box[1], box[0] + box[2], box[1] + box[3]];
|
|
80
|
+
const pad = Math.max(box[2], box[3]) >> 1;
|
|
81
|
+
const sum = [0, 0];
|
|
82
|
+
const n = [0, 0];
|
|
83
|
+
for (let y = Math.max(0, y0 - pad); y < Math.min(height - 1, y1 + pad); y++)
|
|
84
|
+
for (let x = Math.max(0, x0 - pad); x < Math.min(width - 1, x1 + pad); x++) {
|
|
85
|
+
const k = x >= x0 && x < x1 && y >= y0 && y < y1 ? 0 : 1;
|
|
86
|
+
const i = y * width + x;
|
|
87
|
+
sum[k] += Math.abs(gray[i] - gray[i + 1]) + Math.abs(gray[i] - gray[i + width]);
|
|
88
|
+
n[k]++;
|
|
89
|
+
}
|
|
90
|
+
return { inside: sum[0] / (n[0] || 1), ring: sum[1] / (n[1] || 1) };
|
|
59
91
|
}
|
|
60
92
|
var DEFAULTS = { image: "nano-banana-2", video: "heygen-video-1", music: "lyria-3-pro" };
|
|
61
93
|
var VIDEO_RESOLUTION = "768p";
|
|
@@ -194,13 +226,10 @@ function inline(work, masks = []) {
|
|
|
194
226
|
else if (kind === "audio")
|
|
195
227
|
runFfmpeg(["-y", "-i", path, "-vn", "-ac", "1", "-c:a", "libmp3lame", "-b:a", "128k", out]);
|
|
196
228
|
else {
|
|
197
|
-
const
|
|
198
|
-
const
|
|
199
|
-
...maskFilters(masks, width, height),
|
|
200
|
-
"scale='if(gt(iw,ih),min(720,iw),-2)':'if(gt(iw,ih),-2,min(720,ih))'"
|
|
201
|
-
];
|
|
229
|
+
const guide = masks.length ? fillMasks(path, masks, work) : path;
|
|
230
|
+
const scale = "scale='if(gt(iw,ih),min(720,iw),-2)':'if(gt(iw,ih),-2,min(720,ih))'";
|
|
202
231
|
runFfmpeg([
|
|
203
|
-
...["-y", "-i",
|
|
232
|
+
...["-y", "-i", guide, "-t", "15", "-an", "-vf", scale],
|
|
204
233
|
...["-c:v", "libx264", "-crf", "28", "-preset", "veryfast", "-pix_fmt", "yuv420p", out]
|
|
205
234
|
]);
|
|
206
235
|
}
|
|
@@ -218,6 +247,69 @@ function cutsInside(path, seconds) {
|
|
|
218
247
|
const cuts = findCuts(frames).filter((c) => c.frame > 1 && c.frame < frames.length - 1).map((c) => round(c.frame / info.fps, 3));
|
|
219
248
|
return { cuts, length: round(frames.length / info.fps, 3) };
|
|
220
249
|
}
|
|
250
|
+
function structured(clip, guide, masks) {
|
|
251
|
+
const { width: w, height: h } = probeVideo(clip);
|
|
252
|
+
const gray = runFfmpeg(["-i", clip, "-vf", "fps=2", "-pix_fmt", "gray", "-f", "rawvideo", "-"]);
|
|
253
|
+
const [kx, ky] = [w / guide.width, h / guide.height];
|
|
254
|
+
return masks.flatMap((mask) => {
|
|
255
|
+
const [bx, by, bw, bh] = mask.box;
|
|
256
|
+
const box = [bx * kx, by * ky, bw * kx, bh * ky].map(Math.round);
|
|
257
|
+
let worst = 0;
|
|
258
|
+
for (let i = 0; (i + 1) * w * h <= gray.length; i++) {
|
|
259
|
+
if (mask.window && (i / 2 < mask.window[0] || i / 2 > mask.window[1])) continue;
|
|
260
|
+
const { inside, ring } = structureRatio(gray.subarray(i * w * h, (i + 1) * w * h), w, box);
|
|
261
|
+
if (inside > 6 && inside > 1.5 * ring) worst = Math.max(worst, inside / (ring || 1));
|
|
262
|
+
}
|
|
263
|
+
return worst ? [{ mask, worst }] : [];
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
function fillMasks(path, masks, work) {
|
|
267
|
+
const info = probeVideo(path);
|
|
268
|
+
const encode = (from, name, filter) => {
|
|
269
|
+
const out = join(work, name);
|
|
270
|
+
runFfmpeg([
|
|
271
|
+
...["-y", "-i", from, "-an"],
|
|
272
|
+
...filter,
|
|
273
|
+
...["-crf", "14", "-pix_fmt", "yuv420p", out]
|
|
274
|
+
]);
|
|
275
|
+
return out;
|
|
276
|
+
};
|
|
277
|
+
const median = encode(path, "median.mp4", [
|
|
278
|
+
...["-t", "15", "-filter_complex", maskFilters(masks, info.fps)],
|
|
279
|
+
...["-map", `[v${masks.length}]`]
|
|
280
|
+
]);
|
|
281
|
+
const left = structured(median, info, masks).map((s) => s.mask);
|
|
282
|
+
if (!left.length) return median;
|
|
283
|
+
return encode(median, "delogo.mp4", ["-vf", delogoFilters(left, info.width, info.height)]);
|
|
284
|
+
}
|
|
285
|
+
function fitAspect(out, aspect) {
|
|
286
|
+
const [aw, ah] = aspect.split(":").map(Number);
|
|
287
|
+
if (!aw || !ah) return;
|
|
288
|
+
const { width, height } = probeVideo(out);
|
|
289
|
+
const want = aw / ah;
|
|
290
|
+
if (Math.abs(width / height - want) / want < 2e-3) return;
|
|
291
|
+
const even = (n) => n - n % 2;
|
|
292
|
+
const [w, h] = width / height > want ? [even(height * want), height] : [width, even(width / want)];
|
|
293
|
+
const fitted = `${out}.fit${extname(out)}`;
|
|
294
|
+
runFfmpeg([
|
|
295
|
+
...[
|
|
296
|
+
"-y",
|
|
297
|
+
"-i",
|
|
298
|
+
out,
|
|
299
|
+
"-vf",
|
|
300
|
+
`crop=${w}:${h}`,
|
|
301
|
+
"-c:v",
|
|
302
|
+
"libx264",
|
|
303
|
+
"-crf",
|
|
304
|
+
"12",
|
|
305
|
+
"-preset",
|
|
306
|
+
"slow"
|
|
307
|
+
],
|
|
308
|
+
...["-pix_fmt", "yuv420p", "-c:a", "copy", fitted]
|
|
309
|
+
]);
|
|
310
|
+
renameSync(fitted, out);
|
|
311
|
+
return `HeyGen returned ${width}x${height} for ${aspect}; cropped to ${w}x${h} (centre), not stretched`;
|
|
312
|
+
}
|
|
221
313
|
var COUNT = ["", "one", "two", "three", "four", "five", "six"];
|
|
222
314
|
function checkGuide(r) {
|
|
223
315
|
if (!r.motion) return;
|
|
@@ -290,6 +382,25 @@ async function generate(r, onWait, credits) {
|
|
|
290
382
|
} catch {
|
|
291
383
|
cuts = null;
|
|
292
384
|
}
|
|
385
|
+
const notes = [];
|
|
386
|
+
if (r.type === "video" && (r.aspect || !r.firstFrame))
|
|
387
|
+
try {
|
|
388
|
+
const note = fitAspect(out, r.aspect ?? "16:9");
|
|
389
|
+
if (note) notes.push(note);
|
|
390
|
+
} catch (e) {
|
|
391
|
+
notes.push(
|
|
392
|
+
`kept HeyGen's size, could not crop to ${r.aspect ?? "16:9"}: ${e instanceof Error ? e.message : e}`
|
|
393
|
+
);
|
|
394
|
+
}
|
|
395
|
+
if (r.masks?.length && r.motion)
|
|
396
|
+
try {
|
|
397
|
+
for (const { mask, worst } of structured(out, probeVideo(r.motion), r.masks))
|
|
398
|
+
notes.push(
|
|
399
|
+
`mask ${mask.box.join(",")} still shows structure in the result (${worst.toFixed(1)}x its surroundings): the text may have come back, regenerate without the guide`
|
|
400
|
+
);
|
|
401
|
+
} catch {
|
|
402
|
+
notes.push("could not check the masked boxes of the result");
|
|
403
|
+
}
|
|
293
404
|
let ledger;
|
|
294
405
|
if (project) {
|
|
295
406
|
const { recordInPlace } = await import("./manifest-QSJYVERU.js");
|
|
@@ -324,7 +435,8 @@ async function generate(r, onWait, credits) {
|
|
|
324
435
|
job: job.id,
|
|
325
436
|
route: route.path,
|
|
326
437
|
...ledger ? { ledger } : {},
|
|
327
|
-
...cuts !== void 0 ? { cuts_inside: cuts } : {}
|
|
438
|
+
...cuts !== void 0 ? { cuts_inside: cuts } : {},
|
|
439
|
+
...notes.length ? { notes } : {}
|
|
328
440
|
};
|
|
329
441
|
} finally {
|
|
330
442
|
rmSync(work, { recursive: true, force: true });
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
shouldTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ADOBHVHW.js";
|
|
10
10
|
|
|
11
11
|
// src/telemetry/renderObservability.ts
|
|
12
12
|
function renderObservabilityTelemetryPayload(observability) {
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5HGS5MGD.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-AP7B27MZ.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -44,7 +44,7 @@ async function readPlan() {
|
|
|
44
44
|
}
|
|
45
45
|
var webBase = () => oauthEnvironment() === "dev" ? "https://dev.hyperframes.dev" : "https://hyperframes.studio";
|
|
46
46
|
var plansUrl = () => process.env["HYPERFRAMES_PLANS_URL"] || `${webBase()}/pricing`;
|
|
47
|
-
var creditsUrl = () => process.env["HYPERFRAMES_CREDITS_URL"] || `${webBase()}/
|
|
47
|
+
var creditsUrl = () => process.env["HYPERFRAMES_CREDITS_URL"] || `${webBase()}/pricing`;
|
|
48
48
|
function pageUrl(kind, fields = {}) {
|
|
49
49
|
const url = new URL(fields.base ?? (kind === "plans" ? plansUrl() : creditsUrl()));
|
|
50
50
|
url.searchParams.set("from", "cli");
|
|
@@ -6,23 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AF3EN5XS.js";
|
|
10
10
|
import {
|
|
11
11
|
installPageFunctionGuard,
|
|
12
12
|
resolveCliChromeGpuMode,
|
|
13
13
|
seekCompositionTimeline,
|
|
14
14
|
waitForRuntimeReady
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RDLJSUI4.js";
|
|
16
16
|
import {
|
|
17
17
|
pageNavigationTimeoutMs
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5I6XEO4W.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveCompositionViewportFromHtml
|
|
21
21
|
} from "./chunk-OZMZFJDW.js";
|
|
22
22
|
import {
|
|
23
23
|
launchManagedBrowser,
|
|
24
24
|
resolveManagedGpuMode
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UBH2R663.js";
|
|
26
26
|
import {
|
|
27
27
|
defineCommand
|
|
28
28
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
printDeprecationNotice,
|
|
40
40
|
withMeta
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BTDKWWND.js";
|
|
42
42
|
import {
|
|
43
43
|
failureMessage,
|
|
44
44
|
jsonFailure
|
|
@@ -252,7 +252,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
252
252
|
async function localizeRemoteAssets(html) {
|
|
253
253
|
let dir;
|
|
254
254
|
try {
|
|
255
|
-
const { loadProducer } = await import("./producer-
|
|
255
|
+
const { loadProducer } = await import("./producer-WBVDP3IV.js");
|
|
256
256
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
257
257
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
258
258
|
const assetDir = dir;
|
|
@@ -275,7 +275,7 @@ async function validateInBrowser(project, opts) {
|
|
|
275
275
|
const projectDir = project.dir;
|
|
276
276
|
const { bundleToSingleHtml } = await import("./compiler-SKRY6FPA.js");
|
|
277
277
|
const { ensureBrowser } = await import("./manager-ENFYM32B.js");
|
|
278
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
278
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-YA6XOSFY.js");
|
|
279
279
|
const { lintProject } = await import("./lintProject-6H64SX3V.js");
|
|
280
280
|
const lintResult = await lintProject(projectDir);
|
|
281
281
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
@@ -297,9 +297,9 @@ async function validateInBrowser(project, opts) {
|
|
|
297
297
|
try {
|
|
298
298
|
const browser = await ensureBrowser();
|
|
299
299
|
const puppeteer = await import("puppeteer-core");
|
|
300
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
300
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-AP7B27MZ.js");
|
|
301
301
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
302
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-
|
|
302
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-2OMDU74V.js");
|
|
303
303
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
304
304
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
305
305
|
const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|
|
@@ -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-T7OLH6MW.js");
|
|
1282
1282
|
trackCommandFailure(
|
|
1283
1283
|
command,
|
|
1284
1284
|
err,
|
|
@@ -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-EEBIHQF2.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|
|
@@ -9,27 +9,27 @@ import {
|
|
|
9
9
|
} from "./chunk-TQBQYO4L.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AF3EN5XS.js";
|
|
13
13
|
import {
|
|
14
14
|
serveStaticProjectHtml
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4A643C3B.js";
|
|
16
16
|
import {
|
|
17
17
|
AUDIT_SEEK_OPTIONS,
|
|
18
18
|
installPageFunctionGuard,
|
|
19
19
|
seekCompositionTimeline,
|
|
20
20
|
waitForCompositionFonts,
|
|
21
21
|
waitForRuntimeReady
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RDLJSUI4.js";
|
|
23
23
|
import {
|
|
24
24
|
gotoWhenSent
|
|
25
25
|
} from "./chunk-R2C5EON5.js";
|
|
26
26
|
import {
|
|
27
27
|
pageNavigationTimeoutMs
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-5I6XEO4W.js";
|
|
29
29
|
import {
|
|
30
30
|
launchManagedBrowser,
|
|
31
31
|
resolveManagedGpuMode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UBH2R663.js";
|
|
33
33
|
import {
|
|
34
34
|
readJsonFileText
|
|
35
35
|
} from "./chunk-EHZESMRB.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
printDeprecationNotice,
|
|
44
44
|
withMeta
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-BTDKWWND.js";
|
|
46
46
|
import {
|
|
47
47
|
failureMessage,
|
|
48
48
|
jsonFailure
|
|
@@ -728,13 +728,13 @@ async function alignViewportToComposition(page, url) {
|
|
|
728
728
|
async function runLayoutAudit(projectDir, opts) {
|
|
729
729
|
const { ensureBrowser } = await import("./manager-ENFYM32B.js");
|
|
730
730
|
const puppeteer = await import("puppeteer-core");
|
|
731
|
-
const { buildChromeArgs } = await import("./src-
|
|
731
|
+
const { buildChromeArgs } = await import("./src-AP7B27MZ.js");
|
|
732
732
|
const {
|
|
733
733
|
assertWebGpuAdapterAvailable,
|
|
734
734
|
compositionRequiresWebGpu,
|
|
735
735
|
resolveLocalBrowserGpuMode,
|
|
736
736
|
resolveLocalWebGpu
|
|
737
|
-
} = await import("./gpuPolicy-
|
|
737
|
+
} = await import("./gpuPolicy-2OMDU74V.js");
|
|
738
738
|
const html = await bundleProjectHtml(projectDir);
|
|
739
739
|
const server = await serveStaticProjectHtml(
|
|
740
740
|
projectDir,
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PICDT6ZW.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ADOBHVHW.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
|
|
|
84
84
|
try {
|
|
85
85
|
const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
|
|
86
86
|
import("./system-FDPS57FU.js"),
|
|
87
|
-
import("./ffmpeg-
|
|
87
|
+
import("./ffmpeg-CXYPYIZK.js")
|
|
88
88
|
]);
|
|
89
89
|
const sys = getSystemMeta();
|
|
90
90
|
const parts = [
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
pageNavigationTimeoutMs,
|
|
12
12
|
windowsChromeCrashRemediation
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5I6XEO4W.js";
|
|
14
14
|
import {
|
|
15
15
|
SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
|
|
16
16
|
} from "./chunk-YGGZ23BB.js";
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
launchManagedBrowser,
|
|
22
22
|
resolveManagedGpuMode,
|
|
23
23
|
rethrowAfterBrowserCleanup
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UBH2R663.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveLocalBrowserGpuMode,
|
|
27
27
|
resolveLocalWebGpu
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-IJWDVOIO.js";
|
|
29
29
|
import {
|
|
30
30
|
c
|
|
31
31
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
assertWebGpuAdapterAvailable,
|
|
34
34
|
compositionRequiresWebGpu,
|
|
35
35
|
oneProcessOverPipe
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-5HGS5MGD.js";
|
|
37
37
|
import {
|
|
38
38
|
normalizeErrorMessage
|
|
39
39
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -141,7 +141,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
141
141
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
142
142
|
});
|
|
143
143
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
144
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
144
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-AP7B27MZ.js");
|
|
145
145
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
146
146
|
await waitForImagesReady(
|
|
147
147
|
page,
|
|
@@ -190,7 +190,7 @@ async function installPageFunctionGuard(page) {
|
|
|
190
190
|
async function openSettledCompositionPage(html, url, options) {
|
|
191
191
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
192
192
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
193
|
-
const answer = (await import("./staticProjectServer-
|
|
193
|
+
const answer = (await import("./staticProjectServer-YA6XOSFY.js")).inProcessAnswer(url);
|
|
194
194
|
const noListen = answer !== void 0;
|
|
195
195
|
let chromeBrowser;
|
|
196
196
|
try {
|
|
@@ -201,7 +201,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
201
201
|
options.onBrowserReady?.();
|
|
202
202
|
const page = await chromeBrowser.newPage();
|
|
203
203
|
await installPageFunctionGuard(page);
|
|
204
|
-
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-
|
|
204
|
+
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-AP7B27MZ.js");
|
|
205
205
|
await installMediaRenderIdBridge(page);
|
|
206
206
|
await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
|
|
207
207
|
await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
|
|
@@ -222,7 +222,7 @@ async function launchCompositionBrowser(html, noListen, options) {
|
|
|
222
222
|
const { ensureBrowser, findSystemBrowser } = await import("./manager-ENFYM32B.js");
|
|
223
223
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
224
224
|
const puppeteer = await import("puppeteer-core");
|
|
225
|
-
const { buildChromeArgs } = await import("./src-
|
|
225
|
+
const { buildChromeArgs } = await import("./src-AP7B27MZ.js");
|
|
226
226
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
227
227
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
228
228
|
let softwareWebGpu = false;
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
normalizeRelPath,
|
|
9
9
|
resolveLocalImageSourcePath,
|
|
10
10
|
splitUrlSuffix
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HMS6UHUW.js";
|
|
12
12
|
import {
|
|
13
13
|
runFfmpeg,
|
|
14
14
|
runFfprobe
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5HGS5MGD.js";
|
|
16
16
|
import {
|
|
17
17
|
renameWithRetry
|
|
18
18
|
} from "./chunk-YWRUQ7XZ.js";
|