hyperframes 0.8.226 → 0.8.228
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-3NBOSGKQ.js → add-5BRVXGZV.js} +11 -11
- package/dist/{agentPromptGenerator-GQSDTAV5.js → agentPromptGenerator-UZ3FX4D3.js} +5 -5
- package/dist/{animatedGifPrep-UXFFDGA7.js → animatedGifPrep-2XRRZPQO.js} +5 -5
- package/dist/api.d.ts +122 -1
- package/dist/api.js +25 -17
- package/dist/{asset-VQVAYC7E.js → asset-P7AMFWJH.js} +2 -2
- package/dist/{assetCataloger-C6KNE2IQ.js → assetCataloger-OZZ5MJBG.js} +6 -6
- package/dist/{audio-2KULGXHA.js → audio-SJ2FVL2U.js} +11 -11
- package/dist/{auth-QNMLPJOW.js → auth-HKMZPPR7.js} +1 -1
- package/dist/{autoUpdate-VFQQ47UD.js → autoUpdate-LL3OOBWP.js} +2 -2
- package/dist/{backgroundChecks-SSQ2U3ZY.js → backgroundChecks-XQO65DJE.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-Y45PZC3Q.js → batchRender-XZYDF2FG.js} +3 -3
- package/dist/{beats-YSJT4NUG.js → beats-3IGHLEBF.js} +7 -7
- package/dist/{benchmark-6UOMMUXF.js → benchmark-IW6RD4YW.js} +8 -8
- package/dist/{browser-GM4ZTCRQ.js → browser-H53R7G4S.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-CUTSKVRK.js → bundleWithLocalizedFonts-I7PYCJHZ.js} +2 -2
- package/dist/{capture-J24XSJTZ.js → capture-CONXFELZ.js} +10 -10
- package/dist/{capture-SZ65WG5Z.js → capture-VS5ZCDVK.js} +3 -3
- package/dist/{captureCompositionFrame-5UUXIOF2.js → captureCompositionFrame-CXMJFFT6.js} +11 -11
- package/dist/{catalog-5EQFE3BC.js → catalog-T35EYURG.js} +11 -11
- package/dist/{catch-up-ASBRKHDL.js → catch-up-5ADD6TS2.js} +4 -4
- package/dist/{check-BA4SSXPY.js → check-I2O6NZY4.js} +36 -36
- package/dist/{checkAudio-TU4GPHIR.js → checkAudio-TL5G6H6R.js} +8 -8
- package/dist/{checkBrowser-27SFNNPD.js → checkBrowser-IBLU6INC.js} +30 -30
- package/dist/{chunk-5TXYCG4M.js → chunk-2TL6R2B5.js} +4 -4
- package/dist/{chunk-5X65O5WM.js → chunk-2WZSWSVB.js} +1 -1
- package/dist/{chunk-LVV5EUSO.js → chunk-3OGN5ESJ.js} +2 -2
- package/dist/{chunk-A23K6P7L.js → chunk-3ZKTX4RA.js} +1 -1
- package/dist/{chunk-PVBSCPZI.js → chunk-44H3ZPQ2.js} +3 -3
- package/dist/{chunk-6CU2ZQGW.js → chunk-4EZVX3S4.js} +28 -23
- package/dist/{chunk-HYB3WSJL.js → chunk-4QRJNEY2.js} +1 -1
- package/dist/{chunk-AMTAKSKJ.js → chunk-4RUY7VE4.js} +9 -9
- package/dist/{chunk-ZI64CTVC.js → chunk-5J6IHFXE.js} +1 -1
- package/dist/{chunk-RRT5S42U.js → chunk-7T2OIXVQ.js} +1 -1
- package/dist/{chunk-OMT75FQI.js → chunk-7THO7IAN.js} +2 -2
- package/dist/{chunk-37PS2IPO.js → chunk-AHCAIKBH.js} +1 -1
- package/dist/{chunk-XDTRM4OS.js → chunk-AJAK6K6Z.js} +4 -4
- package/dist/{chunk-3V3XMQEF.js → chunk-ALLYZDHR.js} +1 -1
- package/dist/{chunk-GUJ45PRX.js → chunk-AUKCANZ5.js} +1 -1
- package/dist/{chunk-KQARKGEJ.js → chunk-BYU5BWLS.js} +10 -9
- package/dist/{chunk-35LAWHTD.js → chunk-C4YBIKYO.js} +32 -9
- package/dist/{chunk-JIYNPDH6.js → chunk-CK4PLF77.js} +1 -1
- package/dist/chunk-CKS7JLWO.js +760 -0
- package/dist/{chunk-B7OI3WAR.js → chunk-CPFOW5I3.js} +1 -1
- package/dist/{chunk-CU3SVSKX.js → chunk-D3OWJKJC.js} +1 -1
- package/dist/{chunk-7UKRCWBO.js → chunk-DCLGVVR7.js} +76 -21
- package/dist/{chunk-6EQSJ7MT.js → chunk-DRIXZXHR.js} +1 -1
- package/dist/{chunk-6AEHVBMX.js → chunk-DUMEO6NK.js} +1 -1
- package/dist/{chunk-UIJLEBHQ.js → chunk-ELECXYY6.js} +1 -1
- package/dist/{chunk-EJEHDDVX.js → chunk-EWUQH2H2.js} +1 -1
- package/dist/{chunk-WGVREWKN.js → chunk-FHBWBQMS.js} +2 -2
- package/dist/{chunk-ABNPD4NF.js → chunk-FSTBQD2F.js} +1 -1
- package/dist/{chunk-BD2CQDXP.js → chunk-FZUHMD3I.js} +17 -17
- package/dist/{chunk-DGQOBTFQ.js → chunk-GB4ZE5GE.js} +1 -1
- package/dist/{chunk-ETH6WXKZ.js → chunk-GGH5MQHG.js} +1 -1
- package/dist/{chunk-3XYDZQJF.js → chunk-GHPR346W.js} +1 -1
- package/dist/{chunk-PCH3O6I6.js → chunk-HZ7QD54G.js} +5 -5
- package/dist/{chunk-APCGOECM.js → chunk-J5D43JAY.js} +2 -2
- package/dist/{chunk-RBYSMHB7.js → chunk-KANCJWEU.js} +1 -1
- package/dist/{chunk-PWHOMCFB.js → chunk-KP2YSOJ5.js} +2 -2
- package/dist/{chunk-ZJE2XWQC.js → chunk-KZPMI6BZ.js} +2 -2
- package/dist/{chunk-CRIVUWLA.js → chunk-LDAKZ65G.js} +2 -2
- package/dist/{chunk-OQYGHP3E.js → chunk-M2WUVR6S.js} +1 -1
- package/dist/{chunk-76N526VX.js → chunk-MD4ITN4F.js} +13 -13
- package/dist/{chunk-7WNPWUJP.js → chunk-MIJSNZCK.js} +40 -11
- package/dist/{chunk-UXHGYMX4.js → chunk-MKCTDPSJ.js} +1 -1
- package/dist/{chunk-4XYLQYUE.js → chunk-MMHM3KKV.js} +2 -2
- package/dist/{chunk-PXSCN6X5.js → chunk-MOZ5DSCP.js} +2 -2
- package/dist/{chunk-MWQNQA77.js → chunk-MSCU7EGT.js} +2 -2
- package/dist/{chunk-V2N747YM.js → chunk-MXZXPXHQ.js} +7 -7
- package/dist/chunk-NWU7H447.js +5030 -0
- package/dist/{chunk-XH7SSJSQ.js → chunk-OOM4KSV6.js} +1 -1
- package/dist/{chunk-JE5ZPFN2.js → chunk-OVMEEYHH.js} +3 -3
- package/dist/{chunk-OSCRZUEB.js → chunk-OYR33QMF.js} +1 -1
- package/dist/{chunk-YTQSLNIA.js → chunk-PTIDUVWP.js} +1 -1
- package/dist/{chunk-U6LQ4BTL.js → chunk-PVZRUN64.js} +1 -1
- package/dist/{chunk-EYDV3MHA.js → chunk-QFXT2ZJ4.js} +7 -7
- package/dist/{chunk-P7TDUSPH.js → chunk-QTV666C6.js} +1 -1
- package/dist/{chunk-PHUTMTHB.js → chunk-RQD2CQDC.js} +1 -1
- package/dist/{chunk-ZNXUM4D2.js → chunk-RSE7JAWA.js} +2 -2
- package/dist/{chunk-Z257R7TN.js → chunk-RUKYGXUW.js} +1 -1
- package/dist/{chunk-XCGPPU32.js → chunk-SJAAY2FB.js} +1 -1
- package/dist/{chunk-HSXV7QPC.js → chunk-T4C5HPYH.js} +1 -1
- package/dist/{chunk-7LUZ4RQX.js → chunk-TIRQAJTW.js} +12 -12
- package/dist/{chunk-GADKBSZ5.js → chunk-TZOQFBBQ.js} +2 -2
- package/dist/{chunk-B243Y7MM.js → chunk-UOJSQZBR.js} +3 -3
- package/dist/{chunk-PZ6VVOOE.js → chunk-UWM22NR5.js} +1 -1
- package/dist/{chunk-2JBCK6DX.js → chunk-UWS3BKTB.js} +1 -1
- package/dist/{chunk-MF6KVPWF.js → chunk-UZOIYEQT.js} +2 -2
- package/dist/{chunk-DW7W4J7D.js → chunk-V76CLMWJ.js} +2 -2
- package/dist/{chunk-S4UDVFAN.js → chunk-W6RA5HVS.js} +2 -2
- package/dist/{chunk-2IQONCMF.js → chunk-WIK27NBN.js} +7 -7
- package/dist/{chunk-WESIEW2M.js → chunk-WMLUEEKU.js} +3 -3
- package/dist/{chunk-B52P2FU2.js → chunk-WP64W5LK.js} +1 -1
- package/dist/{chunk-Y2NSHQVE.js → chunk-X6JPD24H.js} +2 -2
- package/dist/{chunk-VB77RRT7.js → chunk-XVK7Z5LC.js} +1 -1
- package/dist/{chunk-BJ3Q3XK7.js → chunk-YKB7R3ED.js} +348 -292
- package/dist/{chunk-RKDMYKGL.js → chunk-YQVFMOMM.js} +1 -1
- package/dist/{chunk-EQGBGOQQ.js → chunk-YZTGIVCU.js} +9 -9
- package/dist/{clean-X5VL4ILR.js → clean-XD6Y2WR3.js} +16 -16
- package/dist/cli.js +56 -56
- package/dist/{cloud-4GUUYRD3.js → cloud-XDAV4XVD.js} +4 -4
- package/dist/{cloudrun-KPL32MBI.js → cloudrun-WH47ZBWZ.js} +4 -4
- package/dist/{compare-CVEB5SQC.js → compare-C33OVRPA.js} +27 -27
- package/dist/{compiler-RRTQNBUH.js → compiler-JT3NQV6V.js} +2 -2
- package/dist/{component-TZ2SIYOX.js → component-JG435H3P.js} +3 -3
- package/dist/{compositions-KRTRDV72.js → compositions-URALETMD.js} +9 -9
- package/dist/{curve-ZXUAGU4T.js → curve-X3AVF7X7.js} +9 -9
- package/dist/{cuts-GY2K2CTK.js → cuts-6PSTVWG4.js} +10 -10
- package/dist/{delete-ZT4FCUX2.js → delete-CNAUU4A5.js} +2 -2
- package/dist/{deploy-DVKSQTC7.js → deploy-QHVNI6OC.js} +1 -1
- package/dist/{describeProject-L4ZW5CI7.js → describeProject-KRSRBDRI.js} +6 -6
- package/dist/{diff-AFOP2B3Y.js → diff-QOPUPZDJ.js} +19 -19
- package/dist/{dist-DPOLFG5U.js → dist-3LBVDOZK.js} +2 -2
- package/dist/{doctor-Y7YVL34W.js → doctor-ZYY3SUPX.js} +9 -9
- package/dist/{energy-YFLFELFX.js → energy-ANNB2G7X.js} +10 -10
- package/dist/{events-THASMGN6.js → events-2WUPYUDV.js} +11 -11
- package/dist/{events-VL7JKI2K.js → events-S6WZTCOM.js} +3 -3
- package/dist/{events-C5QV2MQG.js → events-XBOXT3LK.js} +2 -2
- package/dist/{extract-GTNBVQ63.js → extract-RQBPKZ3L.js} +10 -10
- package/dist/{face-BSRKCB5W.js → face-T2657W3M.js} +10 -10
- package/dist/{feedback-MCQ2FKCC.js → feedback-WTK3BR2G.js} +11 -11
- package/dist/{ffmpeg-3QNN3TQ5.js → ffmpeg-3XMQNQFR.js} +5 -5
- package/dist/{figma-IGXE3KWU.js → figma-PZNTF4W4.js} +3 -3
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{frames-XIFLB5KC.js → frames-2PY32Z4T.js} +11 -11
- package/dist/{generate-55FZPR3J.js → generate-53UW2CER.js} +12 -12
- package/dist/{get-2MHD7XFA.js → get-N4IILPTB.js} +2 -2
- package/dist/{gpuPolicy-REJFNHWD.js → gpuPolicy-DYOKYL7P.js} +5 -5
- package/dist/{grade-compare-CM45H7CR.js → grade-compare-AOWOOIO5.js} +28 -28
- package/dist/{heifImagePrep-O3UZHGWR.js → heifImagePrep-H677DLTO.js} +6 -6
- package/dist/{help-V2GGIKP2.js → help-ZHUXAQZV.js} +1 -1
- package/dist/{history-NUOQVUNY.js → history-54QWLPEE.js} +7 -7
- 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-5CMRZEJA.js → info-6K5JUWRP.js} +7 -7
- package/dist/{init-JNL5R27I.js → init-5TCIBSKP.js} +25 -25
- package/dist/{ink-HGQUC6L3.js → ink-XX5RM2CD.js} +10 -10
- package/dist/{inspect-GGOCM324.js → inspect-3V2V3KL2.js} +28 -28
- package/dist/{installer-BBY3T5MJ.js → installer-XCAV3J6A.js} +4 -4
- package/dist/{keyframes-2D4ZS6HE.js → keyframes-GCS2X7TX.js} +6 -6
- package/dist/{lambda-TY2ZCPEN.js → lambda-6JUZYXME.js} +9 -9
- package/dist/{layout-X5GT4O2L.js → layout-2G4GEINC.js} +28 -28
- package/dist/{lint-NVOUXE2L.js → lint-JE2VSIGZ.js} +6 -6
- package/dist/{list-CB4UDTID.js → list-MV3PLJDW.js} +2 -2
- package/dist/{localPage-EYPZRIGY.js → localPage-WTACQ4HH.js} +5 -5
- package/dist/{login-L7JTVKV5.js → login-R4Q7Q64M.js} +4 -4
- package/dist/{look-VHQA2JSS.js → look-BGDLDBVW.js} +10 -10
- package/dist/{manager-FGQKQMI7.js → manager-BT5X67BV.js} +6 -6
- package/dist/{measure-5F7QZLO5.js → measure-ZTOIX5EH.js} +11 -11
- package/dist/{media-treatment-RRFIZKSA.js → media-treatment-BL5JCBJ6.js} +11 -11
- package/dist/{media-use-5YGFOFKI.js → media-use-AUAF4NW6.js} +1 -1
- package/dist/{models-5B2RGGBT.js → models-QSUPPDL2.js} +9 -9
- package/dist/{motionShot-JJBQLYCC.js → motionShot-PDSNKYAY.js} +14 -14
- package/dist/{normalize-audio-LWTNZWDJ.js → normalize-audio-RH556PEC.js} +8 -8
- package/dist/{open-PGRJXREV.js → open-JMC3AM42.js} +12 -12
- package/dist/{parakeetRunner-OV4NSPB3.js → parakeetRunner-RHK7LU3T.js} +10 -10
- package/dist/{pipeline-HXGPFQZC.js → pipeline-AMQUBBUD.js} +8 -8
- package/dist/{play-JONX6CIM.js → play-HRBMMSTB.js} +19 -19
- package/dist/{preflight-7OKMMUWG.js → preflight-R5WNJ5KC.js} +6 -6
- package/dist/{present-EHU52MSU.js → present-G4ASOHGK.js} +15 -15
- package/dist/{preview-DCEIITM6.js → preview-E76EMLHL.js} +17 -17
- package/dist/{probe-EA4N3WOT.js → probe-ZAHTMJ4K.js} +9 -9
- package/dist/{producer-FGAOUR7O.js → producer-CNJP7NWH.js} +1 -1
- package/dist/{projectConfig-N3ZRVJKB.js → projectConfig-AXBTPJSK.js} +6 -6
- package/dist/{publication-ZKY2LVN5.js → publication-CZY3OVDJ.js} +2 -2
- package/dist/{publish-RZVDFTBX.js → publish-NCKCQFU3.js} +18 -18
- package/dist/{remove-background-V5UXYPJS.js → remove-background-XBBLE6ZN.js} +9 -9
- package/dist/{render-UJCPQXGB.js → render-4NTEIX6C.js} +5 -5
- package/dist/{render-YZSDHP3U.js → render-K4SN2VZ2.js} +30 -763
- package/dist/{render-NEZLBRAY.js → render-MPERU2AI.js} +53 -39
- package/dist/{render-batch-KPGYARDI.js → render-batch-STMZ5ZGQ.js} +8 -8
- package/dist/{resolver-HWNPLSXK.js → resolver-YWKOIBSQ.js} +4 -4
- package/dist/{sherpa-HSBYKUQC.js → sherpa-KFLH5Z7E.js} +9 -9
- package/dist/skills/media-use/references/heygen.md +2 -1
- package/dist/{skills-CW23U675.js → skills-ZG2QPQYG.js} +5 -5
- package/dist/{skillsUpdateCheck-LGBNNYLI.js → skillsUpdateCheck-GVYAPPEI.js} +3 -3
- package/dist/{snapshot-RK7ED6DW.js → snapshot-YCHIYLWT.js} +52 -36
- package/dist/{src-KORQVG7O.js → src-27JZLSBO.js} +6 -4
- package/dist/{src-ZDLQFZ4B.js → src-XCS2N6EG.js} +7 -7
- package/dist/{staticProjectServer-TFWT5G2L.js → staticProjectServer-ASRDNNFG.js} +16 -16
- package/dist/studio/assets/{hyperframes-player-qeY0knUZ.js → hyperframes-player-Cf70g7g5.js} +1 -1
- package/dist/studio/assets/{index-B9O4nOYD.js → index-Ds4bLp7M.js} +1 -1
- package/dist/studio/assets/{index-BhZkOhf2.js → index-KTleZEQO.js} +4 -4
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-OIZEPWHS.js → studio-api-YKUVSV4J.js} +8 -8
- package/dist/{studioServer-62MG7LJR.js → studioServer-MZNEVHXX.js} +46 -46
- package/dist/{sync-Q3XYLXTX.js → sync-NLO3YATC.js} +10 -10
- package/dist/{telemetry-3YDPEGQK.js → telemetry-K5HV7W2M.js} +3 -3
- package/dist/{timeline-VDLKFZZ7.js → timeline-QRSILS6F.js} +17 -17
- package/dist/{tokens-ZZ4G2VKC.js → tokens-D6PLMRPT.js} +2 -2
- package/dist/{transcribe-OYRCZUZM.js → transcribe-A6ZABVDW.js} +16 -16
- package/dist/{transcribe-2D6UIVAE.js → transcribe-ABCSYFPP.js} +8 -8
- package/dist/{updateCheck-ZRG5DR74.js → updateCheck-V4G5IV43.js} +2 -2
- package/dist/{upgrade-ZU6BHCTC.js → upgrade-OS7M65CJ.js} +2 -2
- package/dist/{urlDownloader-5WPUC6C6.js → urlDownloader-ONLQCQ7O.js} +4 -4
- package/dist/{validate-OZRPF6YZ.js → validate-BYDGTD6L.js} +22 -22
- package/dist/{video-N2KXXYS3.js → video-O2LMQZWJ.js} +6 -6
- package/dist/warmCheck.js +36 -36
- package/package.json +1 -1
- package/dist/chunk-XINVBLXA.js +0 -5030
|
@@ -7,16 +7,16 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
findCuts,
|
|
9
9
|
signatures
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-C4YBIKYO.js";
|
|
11
11
|
import {
|
|
12
12
|
jsonArg,
|
|
13
13
|
num,
|
|
14
14
|
runMeasure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7THO7IAN.js";
|
|
16
16
|
import {
|
|
17
17
|
idempotencyKey,
|
|
18
18
|
runJob
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-D3OWJKJC.js";
|
|
20
20
|
import {
|
|
21
21
|
Fix,
|
|
22
22
|
probeVideo,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
round,
|
|
25
25
|
runFfmpeg,
|
|
26
26
|
videoClip
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2WZSWSVB.js";
|
|
28
28
|
import {
|
|
29
29
|
defineCommand
|
|
30
30
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -204,6 +204,18 @@ function needFile(path) {
|
|
|
204
204
|
if (!existsSync(path))
|
|
205
205
|
throw new Fix(`no file at ${path}`, "pass a picture or sound from the project");
|
|
206
206
|
}
|
|
207
|
+
var shrink = (path, out) => runFfmpeg([
|
|
208
|
+
"-y",
|
|
209
|
+
"-i",
|
|
210
|
+
path,
|
|
211
|
+
"-vf",
|
|
212
|
+
"scale='min(2048,iw)':'min(2048,ih)':force_original_aspect_ratio=decrease",
|
|
213
|
+
"-q:v",
|
|
214
|
+
"3",
|
|
215
|
+
"-frames:v",
|
|
216
|
+
"1",
|
|
217
|
+
out
|
|
218
|
+
]);
|
|
207
219
|
function inline(work, masks = []) {
|
|
208
220
|
return (path, kind) => {
|
|
209
221
|
needFile(path);
|
|
@@ -211,19 +223,7 @@ function inline(work, masks = []) {
|
|
|
211
223
|
work,
|
|
212
224
|
`in-${Math.random().toString(36).slice(2)}.${{ image: "jpg", audio: "mp3", video: "mp4" }[kind]}`
|
|
213
225
|
);
|
|
214
|
-
if (kind === "image")
|
|
215
|
-
runFfmpeg([
|
|
216
|
-
"-y",
|
|
217
|
-
"-i",
|
|
218
|
-
path,
|
|
219
|
-
"-vf",
|
|
220
|
-
"scale='min(2048,iw)':'min(2048,ih)':force_original_aspect_ratio=decrease",
|
|
221
|
-
"-q:v",
|
|
222
|
-
"3",
|
|
223
|
-
"-frames:v",
|
|
224
|
-
"1",
|
|
225
|
-
out
|
|
226
|
-
]);
|
|
226
|
+
if (kind === "image") shrink(path, out);
|
|
227
227
|
else if (kind === "audio")
|
|
228
228
|
runFfmpeg(["-y", "-i", path, "-vn", "-ac", "1", "-c:a", "libmp3lame", "-b:a", "128k", out]);
|
|
229
229
|
else {
|
|
@@ -311,7 +311,14 @@ function fitAspect(out, aspect) {
|
|
|
311
311
|
renameSync(fitted, out);
|
|
312
312
|
return `HeyGen returned ${width}x${height} for ${aspect}; cropped to ${w}x${h} (centre), not stretched`;
|
|
313
313
|
}
|
|
314
|
-
|
|
314
|
+
function aspectOf(r, work) {
|
|
315
|
+
if (r.aspect || !r.firstFrame) return r.aspect ?? "16:9";
|
|
316
|
+
const sent = join(work, "first-frame.jpg");
|
|
317
|
+
shrink(r.firstFrame, sent);
|
|
318
|
+
const { width, height } = probeVideo(sent);
|
|
319
|
+
return `${width}:${height}`;
|
|
320
|
+
}
|
|
321
|
+
var MIN_SHOT_S = 0.15;
|
|
315
322
|
function foldShort(cuts, length) {
|
|
316
323
|
const kept = [...cuts];
|
|
317
324
|
for (; ; ) {
|
|
@@ -390,14 +397,12 @@ async function generate(r, onWait, credits) {
|
|
|
390
397
|
cuts = null;
|
|
391
398
|
}
|
|
392
399
|
const notes = [];
|
|
393
|
-
if (r.type === "video"
|
|
400
|
+
if (r.type === "video")
|
|
394
401
|
try {
|
|
395
|
-
const note = fitAspect(out, r
|
|
402
|
+
const note = fitAspect(out, aspectOf(r, work));
|
|
396
403
|
if (note) notes.push(note);
|
|
397
404
|
} catch (e) {
|
|
398
|
-
notes.push(
|
|
399
|
-
`kept HeyGen's size, could not crop to ${r.aspect ?? "16:9"}: ${e instanceof Error ? e.message : e}`
|
|
400
|
-
);
|
|
405
|
+
notes.push(`kept HeyGen's size, could not crop: ${e instanceof Error ? e.message : e}`);
|
|
401
406
|
}
|
|
402
407
|
if (r.masks?.length && r.motion)
|
|
403
408
|
try {
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
findCompositionDimensions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UWS3BKTB.js";
|
|
10
10
|
import {
|
|
11
11
|
outputResolutionForSize
|
|
12
12
|
} from "./chunk-T5ELONXY.js";
|
|
@@ -9,27 +9,27 @@ import {
|
|
|
9
9
|
} from "./chunk-TQBQYO4L.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M2WUVR6S.js";
|
|
13
13
|
import {
|
|
14
14
|
serveStaticProjectHtml
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WIK27NBN.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-BYU5BWLS.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-WMLUEEKU.js";
|
|
29
29
|
import {
|
|
30
30
|
launchManagedBrowser,
|
|
31
31
|
resolveManagedGpuMode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-TZOQFBBQ.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-CPFOW5I3.js";
|
|
46
46
|
import {
|
|
47
47
|
failureMessage,
|
|
48
48
|
jsonFailure
|
|
@@ -709,7 +709,7 @@ async function collectTweenBoundaries(page) {
|
|
|
709
709
|
});
|
|
710
710
|
}
|
|
711
711
|
async function bundleProjectHtml(projectDir) {
|
|
712
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
712
|
+
const { bundleToSingleHtml } = await import("./compiler-JT3NQV6V.js");
|
|
713
713
|
return bundleToSingleHtml(projectDir);
|
|
714
714
|
}
|
|
715
715
|
async function alignViewportToComposition(page, url) {
|
|
@@ -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-27JZLSBO.js");
|
|
732
732
|
const {
|
|
733
733
|
assertWebGpuAdapterAvailable,
|
|
734
734
|
compositionRequiresWebGpu,
|
|
735
735
|
resolveLocalBrowserGpuMode,
|
|
736
736
|
resolveLocalWebGpu
|
|
737
|
-
} = await import("./gpuPolicy-
|
|
737
|
+
} = await import("./gpuPolicy-DYOKYL7P.js");
|
|
738
738
|
const html = await bundleProjectHtml(projectDir);
|
|
739
739
|
const server = await serveStaticProjectHtml(
|
|
740
740
|
projectDir,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
parseNumbers,
|
|
11
11
|
parseRoi,
|
|
12
12
|
probeVideo
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2WZSWSVB.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-CPFOW5I3.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-KP2YSOJ5.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|
|
@@ -15,16 +15,16 @@ import {
|
|
|
15
15
|
findFFmpeg,
|
|
16
16
|
findFFprobe,
|
|
17
17
|
getFFmpegInstallHint
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UWM22NR5.js";
|
|
19
19
|
import {
|
|
20
20
|
registerBrowserSessionCleanup
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TZOQFBBQ.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-DCLGVVR7.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-27JZLSBO.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 };
|
|
@@ -12,22 +12,22 @@ import {
|
|
|
12
12
|
} from "./chunk-262C25DQ.js";
|
|
13
13
|
import {
|
|
14
14
|
pageNavigationTimeoutMs
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WMLUEEKU.js";
|
|
16
16
|
import {
|
|
17
17
|
SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
|
|
18
18
|
} from "./chunk-YGGZ23BB.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveCompositionViewportFromHtml
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UWS3BKTB.js";
|
|
22
22
|
import {
|
|
23
23
|
launchManagedBrowser,
|
|
24
24
|
resolveManagedGpuMode,
|
|
25
25
|
rethrowAfterBrowserCleanup
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TZOQFBBQ.js";
|
|
27
27
|
import {
|
|
28
28
|
resolveLocalBrowserGpuMode,
|
|
29
29
|
resolveLocalWebGpu
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-V76CLMWJ.js";
|
|
31
31
|
import {
|
|
32
32
|
c
|
|
33
33
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
assertWebGpuAdapterAvailable,
|
|
36
36
|
compositionRequiresWebGpu,
|
|
37
37
|
oneProcessOverPipe
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-DCLGVVR7.js";
|
|
39
39
|
import {
|
|
40
40
|
normalizeErrorMessage
|
|
41
41
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -143,7 +143,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
143
143
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
144
144
|
});
|
|
145
145
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
146
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
146
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-27JZLSBO.js");
|
|
147
147
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
148
148
|
await waitForImagesReady(
|
|
149
149
|
page,
|
|
@@ -192,7 +192,7 @@ async function installPageFunctionGuard(page) {
|
|
|
192
192
|
async function openSettledCompositionPage(html, url, options) {
|
|
193
193
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
194
194
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
195
|
-
const answer = (await import("./staticProjectServer-
|
|
195
|
+
const answer = (await import("./staticProjectServer-ASRDNNFG.js")).inProcessAnswer(url);
|
|
196
196
|
const noListen = answer !== void 0;
|
|
197
197
|
let chromeBrowser;
|
|
198
198
|
try {
|
|
@@ -203,10 +203,11 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
203
203
|
options.onBrowserReady?.();
|
|
204
204
|
const page = await chromeBrowser.newPage();
|
|
205
205
|
await installPageFunctionGuard(page);
|
|
206
|
-
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-
|
|
206
|
+
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-27JZLSBO.js");
|
|
207
207
|
await installMediaRenderIdBridge(page);
|
|
208
208
|
await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
|
|
209
209
|
await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
|
|
210
|
+
await page.evaluateOnNewDocument("window.__HF_RELEASE_PASSED_MEDIA = true");
|
|
210
211
|
await page.setViewport(viewport);
|
|
211
212
|
if (answer) await answerPageInProcess(page, url, answer);
|
|
212
213
|
await options.beforeNavigate?.(page);
|
|
@@ -224,7 +225,7 @@ async function launchCompositionBrowser(html, noListen, options) {
|
|
|
224
225
|
const { ensureBrowser, findSystemBrowser } = await import("./manager-ENFYM32B.js");
|
|
225
226
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
226
227
|
const puppeteer = await import("puppeteer-core");
|
|
227
|
-
const { buildChromeArgs } = await import("./src-
|
|
228
|
+
const { buildChromeArgs } = await import("./src-27JZLSBO.js");
|
|
228
229
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
229
230
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
230
231
|
let softwareWebGpu = false;
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
decode,
|
|
9
9
|
meanAbsDiff
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2WZSWSVB.js";
|
|
11
11
|
|
|
12
12
|
// src/measure/cuts.ts
|
|
13
13
|
var SIG_W = 64;
|
|
@@ -21,10 +21,13 @@ var CONFIRM_LEVEL = 6;
|
|
|
21
21
|
var CONFIRM_SHARE = 0.5;
|
|
22
22
|
var NEIGHBOURS = 12;
|
|
23
23
|
var HELD_CHANGE = 0.5;
|
|
24
|
-
var
|
|
24
|
+
var MIN_MOVING_BURSTS = 4;
|
|
25
|
+
var HELD_SHARE = 0.6;
|
|
26
|
+
var HELD_RATIO = 3;
|
|
25
27
|
var MAX_CUT_FRAMES = 3;
|
|
26
28
|
var FLASH_FRAMES = 4;
|
|
27
29
|
var RETURNED = 0.4;
|
|
30
|
+
var SAME_TONES = 0.8;
|
|
28
31
|
function signatures(input, filters = []) {
|
|
29
32
|
return decode(input, [...filters, `scale=${SIG_W}:${SIG_H}:flags=area`], SIG_W, SIG_H, true);
|
|
30
33
|
}
|
|
@@ -35,16 +38,21 @@ var median = (values) => {
|
|
|
35
38
|
function frameChanges(frames) {
|
|
36
39
|
return frames.map((f, i) => i ? meanAbsDiff(frames[i - 1], f) : 0);
|
|
37
40
|
}
|
|
38
|
-
var
|
|
39
|
-
var
|
|
41
|
+
var neighbours = (diffs, i, end = i + 1) => diffs.slice(Math.max(1, i - NEIGHBOURS), i).concat(diffs.slice(end, end + NEIGHBOURS));
|
|
42
|
+
var moving = (around) => around.filter((d) => d >= HELD_CHANGE);
|
|
43
|
+
var isHeld = (around) => {
|
|
44
|
+
const bursts = around.filter((d, i) => d >= HELD_CHANGE && (around[i - 1] ?? 0) < HELD_CHANGE);
|
|
45
|
+
return bursts.length >= MIN_MOVING_BURSTS && moving(around).length <= HELD_SHARE * around.length;
|
|
46
|
+
};
|
|
47
|
+
var typicalOf = (around) => Math.max(1, median(isHeld(around) ? moving(around) : around));
|
|
40
48
|
function cutsIn(diffs) {
|
|
41
49
|
const hits = diffs.flatMap((d, i) => {
|
|
42
50
|
if (i === 0) return [];
|
|
43
51
|
const around = neighbours(diffs, i);
|
|
44
|
-
const
|
|
45
|
-
if (d >= CUT_LEVEL && d >=
|
|
52
|
+
const ratio = isHeld(around) ? HELD_RATIO : CUT_RATIO;
|
|
53
|
+
if (d >= CUT_LEVEL && d >= ratio * typicalOf(around)) return [{ frame: i, change: d }];
|
|
46
54
|
const alone = d >= SOFT_ALONE * Math.max(0, ...around);
|
|
47
|
-
return d >= SOFT_LEVEL && d >= SOFT_RATIO *
|
|
55
|
+
return d >= SOFT_LEVEL && d >= SOFT_RATIO * Math.max(1, median(around)) && alone ? [{ frame: i, change: d, soft: true }] : [];
|
|
48
56
|
});
|
|
49
57
|
const out = [];
|
|
50
58
|
for (const { soft, ...h } of hits) {
|
|
@@ -57,11 +65,26 @@ function cutsIn(diffs) {
|
|
|
57
65
|
}
|
|
58
66
|
return out;
|
|
59
67
|
}
|
|
68
|
+
var tones = (frame) => {
|
|
69
|
+
const bins = new Array(16).fill(0);
|
|
70
|
+
for (const level of frame) bins[level >> 4]++;
|
|
71
|
+
return bins.map((n) => n / frame.length);
|
|
72
|
+
};
|
|
73
|
+
var sharedTones = (a, b) => {
|
|
74
|
+
const after = tones(b);
|
|
75
|
+
return tones(a).reduce((sum, share, bin) => sum + Math.min(share, after[bin]), 0);
|
|
76
|
+
};
|
|
60
77
|
function classifiedCuts(frames) {
|
|
61
|
-
|
|
78
|
+
const diffs = frameChanges(frames);
|
|
79
|
+
return cutsIn(diffs).map((c) => {
|
|
62
80
|
const end = c.frame + c.frames;
|
|
63
81
|
const back = (a, b) => frames[a] && frames[b] ? meanAbsDiff(frames[a], frames[b]) < RETURNED * c.change : false;
|
|
64
|
-
if (c.frames > MAX_CUT_FRAMES)
|
|
82
|
+
if (c.frames > MAX_CUT_FRAMES) {
|
|
83
|
+
const before = frames[c.frame - 1];
|
|
84
|
+
const whipKeepsTones = frames.slice(c.frame, end + 1).every((f) => sharedTones(before, f) >= SAME_TONES);
|
|
85
|
+
const sameShot = isHeld(neighbours(diffs, c.frame, end)) || whipKeepsTones;
|
|
86
|
+
return sameShot ? { ...c, kind: "fast" } : c;
|
|
87
|
+
}
|
|
65
88
|
const returns = Array.from({ length: FLASH_FRAMES }, (_, k) => k + 1).some(
|
|
66
89
|
(k) => back(c.frame - 1, end - 1 + k) || back(c.frame - k, end)
|
|
67
90
|
);
|
|
@@ -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-DUMEO6NK.js";
|
|
10
10
|
|
|
11
11
|
// src/telemetry/renderObservability.ts
|
|
12
12
|
function renderObservabilityTelemetryPayload(observability) {
|