hyperframes 0.8.222 → 0.8.223
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-6MPLIWVP.js → add-PBLOPJHC.js} +12 -12
- package/dist/{agentPromptGenerator-X7SQPCXZ.js → agentPromptGenerator-OD74HKYZ.js} +7 -7
- package/dist/{animatedGifPrep-ESOJ4FQ7.js → animatedGifPrep-QCG2BTDC.js} +7 -7
- package/dist/api.d.ts +5 -3
- package/dist/api.js +32 -21
- package/dist/{asset-Y735VQV6.js → asset-KHXCO4OR.js} +2 -2
- package/dist/{assetCataloger-AOJAUEZW.js → assetCataloger-ZX5WZTDQ.js} +8 -8
- package/dist/{audio-VMMCGPOV.js → audio-7AH2C6PB.js} +145 -1153
- package/dist/{auth-BD5NHYRA.js → auth-DJWMGXQB.js} +5 -5
- package/dist/{autoUpdate-VTMNHOAJ.js → autoUpdate-KJMLYSHE.js} +2 -2
- package/dist/{backgroundChecks-SUDYQZSW.js → backgroundChecks-XLVQMMXY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-4NR7RMT7.js → batchRender-UR67LI4H.js} +8 -8
- package/dist/{beats-PKEHQHBY.js → beats-ISWSYNN6.js} +10 -10
- package/dist/{benchmark-K55DDFHG.js → benchmark-7JUATINH.js} +8 -8
- package/dist/billing-VGKY3FMX.js +86 -0
- package/dist/{browser-G2WFWJJ3.js → browser-HNGQB47C.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-MNG2UVH3.js → bundleWithLocalizedFonts-4XWX2XPS.js} +2 -2
- package/dist/{capture-U3EEAPI6.js → capture-GFDP5THL.js} +3 -3
- package/dist/{capture-24PIC3TZ.js → capture-LBEGVQTJ.js} +25 -25
- package/dist/{captureCompositionFrame-KL4V6ORD.js → captureCompositionFrame-5L3J4MZ4.js} +12 -12
- package/dist/{catalog-J3BU4TFW.js → catalog-SNUTPI57.js} +12 -12
- package/dist/{catch-up-LDGNMEGL.js → catch-up-FE3HDMLJ.js} +4 -4
- package/dist/{check-J6HG6EKE.js → check-MQCBMOKA.js} +40 -39
- package/dist/{checkAudio-MAX7JUYG.js → checkAudio-6VPMLIY6.js} +15 -15
- package/dist/{checkBrowser-3W74WJ26.js → checkBrowser-SHUVFQ4S.js} +34 -33
- package/dist/{chunk-P5M3AXEP.js → chunk-2GMHYOV3.js} +1 -1
- package/dist/{chunk-7D2LTSNV.js → chunk-2HBB5U52.js} +1 -1
- package/dist/{chunk-G675S644.js → chunk-3FGEDDSA.js} +26 -26
- package/dist/{chunk-D6LGD472.js → chunk-44IPXXSK.js} +6 -4
- package/dist/{chunk-FT3CNACL.js → chunk-44YG42L5.js} +144 -41
- package/dist/{chunk-NUE44RN2.js → chunk-45UOXUUH.js} +16 -3
- package/dist/chunk-4JRFMRCQ.js +288 -0
- package/dist/{chunk-AIXH3V5A.js → chunk-4XQQQ4KN.js} +3 -3
- package/dist/{chunk-6MUI2H6P.js → chunk-54Q3H2UQ.js} +5 -2
- package/dist/{chunk-YEKJOA47.js → chunk-664JAO7C.js} +1 -1
- package/dist/{chunk-QOZPWIYV.js → chunk-6LE7K3YM.js} +16 -13
- package/dist/{chunk-DC26QLB7.js → chunk-7LKEHM2R.js} +1 -1
- package/dist/{chunk-CZOC7WY7.js → chunk-7XWCCFYW.js} +1 -1
- package/dist/{chunk-G2EY3MVW.js → chunk-A2KNKY4Z.js} +1 -1
- package/dist/{chunk-OAXWHPNS.js → chunk-A5WWEW6U.js} +1 -1
- package/dist/{chunk-Y7IV5MAK.js → chunk-AKTI2SHL.js} +2 -2
- package/dist/chunk-AW7UW2Z7.js +312 -0
- package/dist/{chunk-F6QV5N3A.js → chunk-B5HFCGI7.js} +2 -2
- package/dist/{chunk-K5UCRKUK.js → chunk-B6F33PUK.js} +2 -2
- package/dist/{chunk-HQDHMAUI.js → chunk-BDEBKAD2.js} +1 -1
- package/dist/{chunk-DNTPNSH5.js → chunk-BN75GXZM.js} +3 -3
- package/dist/{chunk-BPIY5LB3.js → chunk-C466I3DT.js} +3 -3
- package/dist/{chunk-KEY2VA65.js → chunk-CXEU6XNL.js} +6 -20
- package/dist/{chunk-JQWITWVC.js → chunk-CYE2NNFF.js} +2 -2
- package/dist/{chunk-RRPO44PE.js → chunk-DFK4RMNE.js} +5 -5
- package/dist/chunk-DY7PQLIE.js +248 -0
- package/dist/chunk-EF735J3K.js +59 -0
- package/dist/{chunk-EGJ4UECR.js → chunk-EHZESMRB.js} +8 -2
- package/dist/chunk-EJOFIHX4.js +46 -0
- package/dist/{chunk-SKCS4SUZ.js → chunk-EX75C5HT.js} +13 -9
- package/dist/{chunk-3RXZZIDQ.js → chunk-FKBWONRY.js} +2 -2
- package/dist/{chunk-CVY6OIKN.js → chunk-FORV75JT.js} +26 -14
- package/dist/{chunk-WWT6ETQA.js → chunk-G5KX4X6W.js} +26 -26
- package/dist/{chunk-VQMHDS2V.js → chunk-HT3D5AKG.js} +52 -12
- package/dist/{chunk-35JKCWYI.js → chunk-I6OY5MS6.js} +1 -1
- package/dist/{chunk-VJVVWYP6.js → chunk-IJI2JNN7.js} +1 -1
- package/dist/{chunk-IGBOFU2Y.js → chunk-IQ7FABPU.js} +2 -2
- package/dist/{chunk-ZPTNLDOB.js → chunk-JNQCM6CR.js} +2 -2
- package/dist/{chunk-IB7UYGXR.js → chunk-JO4LHFFP.js} +9 -9
- package/dist/chunk-JTZHDD63.js +70 -0
- package/dist/{chunk-L55LAERP.js → chunk-K5GMPWMG.js} +1 -1
- package/dist/{chunk-ZBNK6X5O.js → chunk-KCDWRMTC.js} +2 -2
- package/dist/{chunk-GOWU3NCE.js → chunk-KJGYQVFD.js} +1 -1
- package/dist/{chunk-7IH3RSSG.js → chunk-KT2WLSX5.js} +10 -10
- package/dist/{chunk-AOHG22HQ.js → chunk-KWYK65GR.js} +5 -5
- package/dist/{chunk-AN4USOFT.js → chunk-LAIGIOEA.js} +1 -1
- package/dist/{chunk-E5IIR67Q.js → chunk-LV5AVW6U.js} +1 -1
- package/dist/{chunk-GHEYGMKD.js → chunk-M4UVOUWC.js} +1 -1
- package/dist/{chunk-DIXTEVWQ.js → chunk-M7HNGAWN.js} +3 -3
- package/dist/{chunk-EOUKB53E.js → chunk-MTVL7FWZ.js} +1 -1
- package/dist/{chunk-6CFBFWLF.js → chunk-MUHOFRGW.js} +1 -1
- package/dist/{chunk-OROHGC7W.js → chunk-N6XKBBT5.js} +7 -7
- package/dist/{chunk-4VEXJTUT.js → chunk-NLWG5TU7.js} +2 -2
- package/dist/chunk-NZZQCWUC.js +205 -0
- package/dist/{chunk-42Q3VX34.js → chunk-OL2C3ODS.js} +5 -5
- package/dist/{chunk-ZLXWRYOO.js → chunk-OVINGNLQ.js} +3 -3
- package/dist/{chunk-BDZSH6P3.js → chunk-OWFSGDQS.js} +1 -1
- package/dist/chunk-OZM6VLD7.js +71 -0
- package/dist/{chunk-6W3DY5BP.js → chunk-P5QGZMGC.js} +2 -2
- package/dist/{chunk-52VXA3SC.js → chunk-PBPHKD56.js} +1 -1
- package/dist/chunk-PHEPL7OX.js +1048 -0
- package/dist/{chunk-537WSYHU.js → chunk-PX7Y4HMM.js} +1 -1
- package/dist/{chunk-XHD7RKEZ.js → chunk-QNLHDYYO.js} +2 -2
- package/dist/{chunk-ZAJQFY5Q.js → chunk-QU5OYMTB.js} +15 -2
- package/dist/chunk-QZGKKQ77.js +570 -0
- package/dist/{chunk-WJYFJGYT.js → chunk-RKVKFXYB.js} +3 -3
- package/dist/{chunk-OQLYKDL5.js → chunk-RORIFIUW.js} +1 -1
- package/dist/{chunk-MESSJFK3.js → chunk-RWSVSCOP.js} +38 -28
- package/dist/chunk-RZ6CXJ56.js +24 -0
- package/dist/chunk-SDBVVDBW.js +113 -0
- package/dist/{chunk-Z5VQBRU2.js → chunk-SNFVQDKE.js} +1 -1
- package/dist/{chunk-EE7YWKDY.js → chunk-SX7ESVCQ.js} +4 -4
- package/dist/{chunk-AXVTL7B6.js → chunk-UFYWGUUV.js} +2 -2
- package/dist/{chunk-DSHFKKSZ.js → chunk-UGUWSAJT.js} +2 -2
- package/dist/chunk-UQECNXFA.js +5013 -0
- package/dist/{chunk-QYRMR45H.js → chunk-UQVAAEPQ.js} +1 -1
- package/dist/{chunk-NHXGFQWQ.js → chunk-UVF4U3ZF.js} +1 -1
- package/dist/{chunk-YSTBSLWY.js → chunk-VBCBHDIW.js} +1 -1
- package/dist/chunk-VJM6NX54.js +250 -0
- package/dist/chunk-WGOIJN57.js +95 -0
- package/dist/{chunk-GODT7QDZ.js → chunk-WQLTKHPP.js} +3 -3
- package/dist/{chunk-RIGSGNDQ.js → chunk-WUXDIF5D.js} +20 -19
- package/dist/{chunk-5GSEM63G.js → chunk-WWOHLNFO.js} +1 -1
- package/dist/{chunk-L37AZWB2.js → chunk-XZEHFUQF.js} +2 -2
- package/dist/{chunk-FMKI7ZLM.js → chunk-Y4INSXS7.js} +2 -2
- package/dist/{chunk-YHL4CVTF.js → chunk-ZEKV5T3I.js} +13 -13
- package/dist/{clean-K6IM3LC4.js → clean-JZOPMJMV.js} +21 -21
- package/dist/cli.js +58 -55
- package/dist/{cloud-OV7EA4BJ.js → cloud-VMPF2KMA.js} +4 -4
- package/dist/{cloudrun-ZEMODIOP.js → cloudrun-LA2FKS2F.js} +5 -5
- package/dist/{compare-MJZ3D3HA.js → compare-IQCFSC5Z.js} +30 -30
- package/dist/{compiler-6KKETX77.js → compiler-J7OZQIPD.js} +4 -4
- package/dist/{component-EVXMYIP3.js → component-TRGBVFCI.js} +3 -3
- package/dist/{compositions-PZ7FQ7WN.js → compositions-FOC2CAZX.js} +13 -13
- package/dist/curve-ID3Z522S.js +329 -0
- package/dist/cuts-MWHQSE2Z.js +123 -0
- package/dist/{delete-DL3XA4QV.js → delete-47KZ7PLI.js} +5 -5
- package/dist/{deploy-VEYP3IP5.js → deploy-NTNEO4TI.js} +8 -8
- package/dist/describeProject-WWREIVQV.js +56 -0
- package/dist/diff-GH4KCQGQ.js +1825 -0
- package/dist/{dist-SHMQOKMF.js → dist-24QQO5IL.js} +2 -2
- package/dist/{dist-M77KFAYW.js → dist-XW7FATO6.js} +2 -2
- package/dist/{doctor-JM2WHH7Y.js → doctor-4ZH7WFU6.js} +11 -11
- package/dist/energy-2C65KXBH.js +134 -0
- package/dist/{events-S7KVBRSL.js → events-FUFFA55P.js} +3 -3
- package/dist/{events-GW5I5RCG.js → events-Q3EBOW2Y.js} +2 -2
- package/dist/events-QO5G2VCC.js +221 -0
- package/dist/extract-Z6TLBM5B.js +309 -0
- package/dist/face-WI6BPPUG.js +171 -0
- package/dist/{feedback-7OR5FVTX.js → feedback-M5GZWDXP.js} +12 -12
- package/dist/{ffmpeg-A7CSIX3U.js → ffmpeg-27H6P7ZU.js} +7 -7
- package/dist/{figma-444HKFX5.js → figma-AI6TSWVO.js} +3 -3
- package/dist/fontLocalizeCli.js +10 -10
- package/dist/frames-WUTLVZIR.js +352 -0
- package/dist/generate-3CJREF5U.js +74 -0
- package/dist/{get-6UTF3225.js → get-KTDRE33B.js} +5 -5
- package/dist/{gpuPolicy-ORPUS5Z2.js → gpuPolicy-Z4MM64HY.js} +7 -7
- package/dist/{grade-compare-UCTAYN3B.js → grade-compare-IM7Z7HWI.js} +34 -31
- package/dist/{heifImagePrep-ED6V6RFN.js → heifImagePrep-CXI2ZMUX.js} +8 -8
- package/dist/{help-HZR32XWP.js → help-5FR6BRLR.js} +7 -1
- package/dist/{history-TQ56MZIA.js → history-5P5YVP5H.js} +7 -7
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +70 -70
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/index-gen-OPMQ5WSN.js +61 -0
- package/dist/{info-RPIIP7RN.js → info-5ZGNJJVA.js} +7 -7
- package/dist/{init-ONAWKHFW.js → init-NWIAEYSX.js} +29 -28
- package/dist/{inspect-A75PYOWJ.js → inspect-HBLAVW5C.js} +31 -30
- package/dist/{installer-ISMCCFBZ.js → installer-KVFTBZZ5.js} +4 -4
- package/dist/{keyframes-2I75DP3O.js → keyframes-LFCLUY2R.js} +6 -6
- package/dist/{lambda-4QIHGPGJ.js → lambda-RFWTTMLU.js} +13 -13
- package/dist/{layout-GW7WE7RT.js → layout-WOG2Y5ND.js} +31 -30
- package/dist/{lint-OWP72OZQ.js → lint-7MALXMMF.js} +8 -8
- package/dist/{lintProject-XYQ5L7RQ.js → lintProject-6H64SX3V.js} +2 -2
- package/dist/{list-WVK7ZCPW.js → list-XRYAT24W.js} +5 -5
- package/dist/{localPage-IQWHN7BH.js → localPage-IN36JVJU.js} +7 -7
- package/dist/{login-Q5CNHYWU.js → login-32WGVGTM.js} +15 -9
- package/dist/{logout-6VFJ7WMW.js → logout-SLI6YTHI.js} +2 -2
- package/dist/look-ZWVE6JO3.js +180 -0
- package/dist/{manager-JCYVNEWH.js → manager-SFL6GLYX.js} +9 -8
- package/dist/manifest-QSJYVERU.js +49 -0
- package/dist/measure-Q74BJTRQ.js +46 -0
- package/dist/{media-treatment-M5IUP7H4.js → media-treatment-3R6DYEAZ.js} +16 -16
- package/dist/{media-use-ZNTB7W6N.js → media-use-ZM2WCRQC.js} +9 -5
- package/dist/{models-CFXKDYZ3.js → models-NNC53UPU.js} +11 -11
- package/dist/{motionShot-CWUEI4ZM.js → motionShot-5BI5JFUP.js} +15 -15
- package/dist/{normalize-QJVXFMWO.js → normalize-MBNGRVQA.js} +2 -1
- package/dist/{normalize-audio-FASY33LR.js → normalize-audio-6Z2WN56Q.js} +8 -8
- package/dist/{open-KOVVESYN.js → open-5NCEN6RC.js} +11 -11
- package/dist/{parakeetRunner-E4IP5SL4.js → parakeetRunner-DH3XKR3C.js} +13 -12
- package/dist/{pipeline-C6EZVV43.js → pipeline-CGEGQAPH.js} +10 -10
- package/dist/{play-MZJI6SMH.js → play-K37BN736.js} +23 -23
- package/dist/{policies-J5BWAZHM.js → policies-U4PFXF5E.js} +4 -2
- package/dist/{preflight-K4SPUWXP.js → preflight-CG7H3D5B.js} +8 -8
- package/dist/{present-7L7ZTG7F.js → present-KQ53DOHA.js} +18 -18
- package/dist/{preview-QGDVMR3X.js → preview-V7CYHL6U.js} +21 -21
- package/dist/probe-JVW2MPY3.js +178 -0
- package/dist/{producer-EJPNNY3E.js → producer-UD32S7PX.js} +1 -1
- package/dist/{projectConfig-EEF6OPXO.js → projectConfig-WXCB5AZE.js} +6 -6
- package/dist/{publication-5KF44AKQ.js → publication-KG4UDZRM.js} +2 -2
- package/dist/{publish-SSKWZ5TE.js → publish-MEQB543T.js} +16 -16
- package/dist/{refresh-I6ITGHKL.js → refresh-2LU4XDL7.js} +2 -2
- package/dist/{remove-background-PCL6I5SZ.js → remove-background-FSV5KQK3.js} +11 -11
- package/dist/{render-DH4UA7KW.js → render-O4S4SURS.js} +6 -6
- package/dist/{render-UPRWOGLS.js → render-SQXZAGPQ.js} +37 -37
- package/dist/{render-DRWQ6F37.js → render-SY4AXKXC.js} +33 -33
- package/dist/{render-batch-EBW5WHB5.js → render-batch-GTZQUB3H.js} +6 -6
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-ZSZXNRFP.js → resolver-BQZNCVJS.js} +4 -4
- package/dist/run-67OPNJGD.js +31 -0
- package/dist/{sherpa-IKVUCBOW.js → sherpa-KH3PJAUG.js} +12 -11
- package/dist/skills/media-use/SKILL.md +20 -21
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +26 -1
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +33 -0
- package/dist/skills/media-use/references/heygen.md +58 -0
- package/dist/skills/media-use/references/operations.md +9 -6
- package/dist/skills/media-use/references/setup-providers.md +11 -12
- package/dist/skills/media-use/scripts/lib/index-gen.d.mts +1 -0
- package/dist/skills/media-use/scripts/lib/manifest.d.mts +21 -0
- package/dist/{skills-ZREHX3TU.js → skills-FTZZJGAB.js} +5 -5
- package/dist/{skillsUpdateCheck-PPJ5NGAL.js → skillsUpdateCheck-LZPD2CZI.js} +3 -3
- package/dist/{snapshot-KPFLZNEL.js → snapshot-4BORZ3ED.js} +37 -36
- package/dist/{src-QRV3466B.js → src-6ZOFAM3F.js} +9 -9
- package/dist/{src-EPOGDJTT.js → src-D7AO7PGH.js} +6 -6
- package/dist/{staticProjectServer-ERKLMZVM.js → staticProjectServer-Q23A6XU2.js} +19 -19
- package/dist/{status-4AAPTTRW.js → status-VIJRZ4ZK.js} +34 -9
- package/dist/studio/assets/hyperframes-player-D0W1SNqK.js +478 -0
- package/dist/studio/assets/{index-C8VIUiGz.js → index-DD9KJoEr.js} +119 -119
- package/dist/studio/assets/{index-CVPNbydK.js → index-mbwAH5iR.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-7WFZIIPL.js → studio-api-XVVJZ7YT.js} +15 -15
- package/dist/{studioServer-3XZTLI26.js → studioServer-6HG3AMTW.js} +49 -49
- package/dist/sync-Q5SRIL7V.js +115 -0
- package/dist/{telemetry-BMLI4TMC.js → telemetry-VXPSJ3X3.js} +3 -3
- package/dist/{timeline-EDCDO2ZR.js → timeline-6477OWFA.js} +25 -21
- package/dist/{tokens-2ZFLFO3K.js → tokens-ZUUNEDKT.js} +2 -2
- package/dist/{transcribe-3WMH62HH.js → transcribe-HA4UGLKO.js} +11 -10
- package/dist/{transcribe-Y2LPBT7I.js → transcribe-ITVANIDK.js} +35 -18
- package/dist/{tts-BVTJEP72.js → tts-KMZPHG3K.js} +1 -1
- package/dist/{updateCheck-5LFZGC3P.js → updateCheck-SVADAQ43.js} +2 -2
- package/dist/{upgrade-X7QVSEKP.js → upgrade-WKW4FDNF.js} +2 -2
- package/dist/{urlDownloader-TYD6ROKL.js → urlDownloader-VWHCESDD.js} +6 -6
- package/dist/{validate-26KQ5VX7.js → validate-7VG2RLP2.js} +24 -24
- package/dist/{video-BPKLZIJK.js → video-LM3FYHGG.js} +8 -8
- package/dist/warmCheck.js +40 -39
- package/package.json +1 -1
- package/dist/chunk-LL3VMDAC.js +0 -5013
- package/dist/studio/assets/hyperframes-player-Dka6e1BG.js +0 -478
- package/dist/{chunk-NOH32H42.js → chunk-HBAUU3IK.js} +124 -124
- package/dist/{destroy-BQ5R7LUF.js → destroy-6NWJMQX2.js} +4 -4
- package/dist/{synthesize-4JC74JW5.js → synthesize-DIT2SR3D.js} +5 -5
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
compareWindowArgs,
|
|
9
|
+
jsonArg,
|
|
10
|
+
num,
|
|
11
|
+
roiArg,
|
|
12
|
+
runMeasure,
|
|
13
|
+
videoAndRoi,
|
|
14
|
+
videoArg,
|
|
15
|
+
window
|
|
16
|
+
} from "./chunk-WGOIJN57.js";
|
|
17
|
+
import {
|
|
18
|
+
Fix,
|
|
19
|
+
parseRoi,
|
|
20
|
+
probeVideo,
|
|
21
|
+
readFrames,
|
|
22
|
+
round
|
|
23
|
+
} from "./chunk-VJM6NX54.js";
|
|
24
|
+
import "./chunk-WWOHLNFO.js";
|
|
25
|
+
import {
|
|
26
|
+
defineCommand
|
|
27
|
+
} from "./chunk-DL4OD7IA.js";
|
|
28
|
+
import "./chunk-S3S4TGEH.js";
|
|
29
|
+
import "./chunk-2GICKZ3I.js";
|
|
30
|
+
import "./chunk-4XQQQ4KN.js";
|
|
31
|
+
import "./chunk-Z5J67X44.js";
|
|
32
|
+
import "./chunk-5S7W3TUO.js";
|
|
33
|
+
import "./chunk-D3MUHMFG.js";
|
|
34
|
+
import "./chunk-FKBWONRY.js";
|
|
35
|
+
import "./chunk-YWRUQ7XZ.js";
|
|
36
|
+
import "./chunk-OWFSGDQS.js";
|
|
37
|
+
import "./chunk-MEJH7VEA.js";
|
|
38
|
+
import "./chunk-UQECNXFA.js";
|
|
39
|
+
import "./chunk-VC76R6W2.js";
|
|
40
|
+
import "./chunk-OFQWTKPW.js";
|
|
41
|
+
import "./chunk-RQVDTPGD.js";
|
|
42
|
+
import "./chunk-3GXQPCJC.js";
|
|
43
|
+
import "./chunk-TK7THLRO.js";
|
|
44
|
+
import "./chunk-FXMKHHPO.js";
|
|
45
|
+
import "./chunk-X6JUUQCM.js";
|
|
46
|
+
import "./chunk-KGPLIH7B.js";
|
|
47
|
+
import "./chunk-K4MJX7SR.js";
|
|
48
|
+
import "./chunk-WE42NVH7.js";
|
|
49
|
+
import "./chunk-HT3D5AKG.js";
|
|
50
|
+
import "./chunk-HYRPH6LL.js";
|
|
51
|
+
import "./chunk-AKMY4QVI.js";
|
|
52
|
+
import "./chunk-CZGHFATT.js";
|
|
53
|
+
import "./chunk-C2KEGBR3.js";
|
|
54
|
+
import "./chunk-T5ELONXY.js";
|
|
55
|
+
import "./chunk-FR7YBU3H.js";
|
|
56
|
+
import "./chunk-DPVXBVLL.js";
|
|
57
|
+
import "./chunk-GWTIFRF5.js";
|
|
58
|
+
import "./chunk-2RY2LWAA.js";
|
|
59
|
+
import "./chunk-EPQC3FGZ.js";
|
|
60
|
+
import "./chunk-WC4MTXGN.js";
|
|
61
|
+
import "./chunk-FBN2M2HK.js";
|
|
62
|
+
import "./chunk-K5GMPWMG.js";
|
|
63
|
+
import "./chunk-BR2JQQC5.js";
|
|
64
|
+
import "./chunk-BLBMPEBX.js";
|
|
65
|
+
import "./chunk-ISN5GRYI.js";
|
|
66
|
+
import "./chunk-SJGE5I5F.js";
|
|
67
|
+
import "./chunk-DP5LF7GF.js";
|
|
68
|
+
import "./chunk-J3RXEDR2.js";
|
|
69
|
+
import "./chunk-QBXDU24O.js";
|
|
70
|
+
import "./chunk-P5QGZMGC.js";
|
|
71
|
+
import "./chunk-E63BDV4Z.js";
|
|
72
|
+
import "./chunk-G7VEYUZ2.js";
|
|
73
|
+
import "./chunk-XT6MXC7A.js";
|
|
74
|
+
import "./chunk-7KDQAD2W.js";
|
|
75
|
+
import "./chunk-M2WBOQ2Q.js";
|
|
76
|
+
|
|
77
|
+
// src/measure/curve.ts
|
|
78
|
+
var W = 240;
|
|
79
|
+
var PROPS = ["x", "y", "w", "h", "ink"];
|
|
80
|
+
var pw = (k) => [`power${k}.in`, (u) => u ** (k + 1)];
|
|
81
|
+
var pwo = (k) => [`power${k}.out`, (u) => 1 - (1 - u) ** (k + 1)];
|
|
82
|
+
var pwio = (k) => [
|
|
83
|
+
`power${k}.inOut`,
|
|
84
|
+
(u) => u < 0.5 ? 2 ** k * u ** (k + 1) : 1 - (-2 * u + 2) ** (k + 1) / 2
|
|
85
|
+
];
|
|
86
|
+
var back = (s) => [
|
|
87
|
+
`back.out(${s.toFixed(1)})`,
|
|
88
|
+
(u) => 1 + (s + 1) * (u - 1) ** 3 + s * (u - 1) ** 2
|
|
89
|
+
];
|
|
90
|
+
var elastic = (p) => [
|
|
91
|
+
`elastic.out(1,${p})`,
|
|
92
|
+
(u) => u <= 0 ? 0 : u >= 1 ? 1 : 2 ** (-10 * u) * Math.sin((u - p / 4) * 2 * Math.PI / p) + 1
|
|
93
|
+
];
|
|
94
|
+
var EASES = [
|
|
95
|
+
["none", (u) => u],
|
|
96
|
+
...[1, 2, 3, 4].flatMap((k) => [pw(k), pwo(k), pwio(k)]),
|
|
97
|
+
["sine.out", (u) => Math.sin(u * Math.PI / 2)],
|
|
98
|
+
["sine.inOut", (u) => -(Math.cos(Math.PI * u) - 1) / 2],
|
|
99
|
+
["expo.out", (u) => u >= 1 ? 1 : 1 - 2 ** (-10 * u)],
|
|
100
|
+
["circ.out", (u) => Math.sqrt(1 - (u - 1) ** 2)],
|
|
101
|
+
...Array.from({ length: 26 }, (_, i) => back(0.5 + i * 0.1)),
|
|
102
|
+
...[0.2, 0.25, 0.3, 0.4, 0.5].map(elastic)
|
|
103
|
+
];
|
|
104
|
+
function track(path, start, seconds, roi, { bg = null, thr = 24 } = {}) {
|
|
105
|
+
const fps = probeVideo(path).fps;
|
|
106
|
+
const width = Math.min(W, roi[2]);
|
|
107
|
+
const { frames: fs, h } = readFrames(path, { start, seconds, roi, width });
|
|
108
|
+
const first = fs[0];
|
|
109
|
+
if (!first)
|
|
110
|
+
throw new Fix(
|
|
111
|
+
`no frames between ${start}s and ${start + seconds}s`,
|
|
112
|
+
"pick a window inside the video"
|
|
113
|
+
);
|
|
114
|
+
const k = roi[2] / width;
|
|
115
|
+
let ref = bg;
|
|
116
|
+
if (!ref) {
|
|
117
|
+
const border = [[], [], []];
|
|
118
|
+
for (let y = 0; y < h; y++)
|
|
119
|
+
for (let x = 0; x < width; x++)
|
|
120
|
+
if (x < 2 || y < 2 || x >= width - 2 || y >= h - 2)
|
|
121
|
+
for (let c = 0; c < 3; c++) border[c].push(first[(y * width + x) * 3 + c]);
|
|
122
|
+
ref = border.map((v) => v.sort((a, b) => a - b)[v.length >> 1]);
|
|
123
|
+
}
|
|
124
|
+
const [r0, g0, b0] = [ref[0], ref[1], ref[2]];
|
|
125
|
+
const rows = fs.map((f, i) => {
|
|
126
|
+
const xs = [];
|
|
127
|
+
const ys = [];
|
|
128
|
+
let ink = 0;
|
|
129
|
+
for (let y = 0; y < h; y++)
|
|
130
|
+
for (let x = 0; x < width; x++) {
|
|
131
|
+
const j = (y * width + x) * 3;
|
|
132
|
+
const d = Math.max(
|
|
133
|
+
Math.abs(f[j] - r0),
|
|
134
|
+
Math.abs(f[j + 1] - g0),
|
|
135
|
+
Math.abs(f[j + 2] - b0)
|
|
136
|
+
);
|
|
137
|
+
ink += d;
|
|
138
|
+
if (d > thr) {
|
|
139
|
+
xs.push(x);
|
|
140
|
+
ys.push(y);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const t = round(start + i / fps, 3);
|
|
144
|
+
if (xs.length < 4) return { t, x: null, y: null, w: 0, h: 0, ink: round(ink / (width * h), 2) };
|
|
145
|
+
xs.sort((a, b) => a - b);
|
|
146
|
+
ys.sort((a, b) => a - b);
|
|
147
|
+
const q = (v, p) => v[Math.min(v.length - 1, Math.floor(v.length * p))];
|
|
148
|
+
const [x0, x1, y0, y1] = [q(xs, 0.01), q(xs, 0.99), q(ys, 0.01), q(ys, 0.99)];
|
|
149
|
+
return {
|
|
150
|
+
t,
|
|
151
|
+
x: round(roi[0] + (x0 + x1 + 1) / 2 * k, 1),
|
|
152
|
+
y: round(roi[1] + (y0 + y1 + 1) / 2 * k, 1),
|
|
153
|
+
w: round((x1 - x0 + 1) * k, 1),
|
|
154
|
+
h: round((y1 - y0 + 1) * k, 1),
|
|
155
|
+
ink: round(ink / (width * h), 2)
|
|
156
|
+
};
|
|
157
|
+
});
|
|
158
|
+
return { fps, bg: ref, rows };
|
|
159
|
+
}
|
|
160
|
+
function fit(rows, idx, v, prop, fps, a, b) {
|
|
161
|
+
const [v0, v1] = [v[a], v[b]];
|
|
162
|
+
const span = v1 - v0;
|
|
163
|
+
const p = v.slice(a, b + 1).map((x) => (x - v0) / span);
|
|
164
|
+
const u = p.map((_, i) => i / Math.max(1, p.length - 1));
|
|
165
|
+
const fits = EASES.map(([name, f]) => ({
|
|
166
|
+
name,
|
|
167
|
+
rmse: Math.sqrt(p.reduce((s, x, i) => s + (x - f(u[i])) ** 2, 0) / p.length)
|
|
168
|
+
})).sort((m, n) => m.rmse - n.rmse);
|
|
169
|
+
return {
|
|
170
|
+
prop,
|
|
171
|
+
from: round(v0, 1),
|
|
172
|
+
to: round(v1, 1),
|
|
173
|
+
start_s: rows[idx[a]].t,
|
|
174
|
+
duration_s: round((idx[b] - idx[a]) / fps, 3),
|
|
175
|
+
frames: idx[b] - idx[a],
|
|
176
|
+
overshoot_pct: round(Math.max(0, Math.max(...p) - 1) * 100, 1),
|
|
177
|
+
anticipation_pct: round(Math.max(0, -Math.min(...p)) * 100, 1),
|
|
178
|
+
ease: fits[0].name,
|
|
179
|
+
rmse: round(fits[0].rmse, 3),
|
|
180
|
+
next: fits.slice(1, 3).map((f) => `${f.name} ${round(f.rmse, 3)}`),
|
|
181
|
+
curve: Array.from(
|
|
182
|
+
{ length: 21 },
|
|
183
|
+
(_, i) => round(p[Math.round(i / 20 * (p.length - 1))], 3)
|
|
184
|
+
)
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
function fitMoves(rows, prop, fps, minChange, quant) {
|
|
188
|
+
const idx = rows.flatMap((r, i) => r[prop] == null ? [] : [i]);
|
|
189
|
+
const v = idx.map((i) => rows[i][prop] ?? 0);
|
|
190
|
+
const out = [];
|
|
191
|
+
for (let i = 0; i < v.length - 1; ) {
|
|
192
|
+
if (Math.abs(v[i + 1] - v[i]) <= quant) {
|
|
193
|
+
i++;
|
|
194
|
+
continue;
|
|
195
|
+
}
|
|
196
|
+
const hold = Math.max(3, Math.round(0.15 * fps));
|
|
197
|
+
let [b, still] = [i + 1, 0];
|
|
198
|
+
for (let j = i + 1; j < v.length - 1 && still < hold; j++)
|
|
199
|
+
if (Math.abs(v[j + 1] - v[j]) <= quant) still++;
|
|
200
|
+
else [still, b] = [0, j + 1];
|
|
201
|
+
const span = v[b] - v[i];
|
|
202
|
+
const peak = v.slice(i, b + 1).reduce((m, x) => Math.abs(x - v[i]) > Math.abs(m - v[i]) ? x : m, v[i]);
|
|
203
|
+
let a = i;
|
|
204
|
+
while (a < b - 2 && Math.abs(v[a + 1] - v[a]) < 0.03 * Math.abs(span)) a++;
|
|
205
|
+
if (Math.abs(span) >= minChange) out.push(fit(rows, idx, v, prop, fps, a, b));
|
|
206
|
+
else if (Math.abs(peak - v[i]) >= minChange)
|
|
207
|
+
out.push({
|
|
208
|
+
prop,
|
|
209
|
+
pulse: true,
|
|
210
|
+
from: round(v[i], 1),
|
|
211
|
+
peak: round(peak, 1),
|
|
212
|
+
start_s: rows[idx[i]].t,
|
|
213
|
+
duration_s: round((idx[b] - idx[i]) / fps, 3),
|
|
214
|
+
frames: idx[b] - idx[i]
|
|
215
|
+
});
|
|
216
|
+
i = b;
|
|
217
|
+
}
|
|
218
|
+
return out;
|
|
219
|
+
}
|
|
220
|
+
function curves(path, start, seconds, roi, opts = {}) {
|
|
221
|
+
const { fps, bg, rows } = track(path, start, seconds, roi, opts);
|
|
222
|
+
const minPx = 0.02 * Math.max(roi[2], roi[3]);
|
|
223
|
+
const step = roi[2] / Math.min(W, roi[2]);
|
|
224
|
+
const moves = PROPS.flatMap(
|
|
225
|
+
(k) => k === "ink" ? fitMoves(rows, k, fps, 2, 0.5) : fitMoves(rows, k, fps, minPx, step)
|
|
226
|
+
).sort((m, n) => m.start_s - n.start_s);
|
|
227
|
+
return { start, seconds, roi, fps: round(fps, 2), bg, moves };
|
|
228
|
+
}
|
|
229
|
+
function compareCurves(ref, yours) {
|
|
230
|
+
const family = (s) => s.replace(/\(.*\)/, "").replace(/\d/, "");
|
|
231
|
+
return ref.moves.map((m) => {
|
|
232
|
+
const rel = m.start_s - ref.start;
|
|
233
|
+
const d = yours.moves.filter((x) => x.prop === m.prop && !!x.pulse === !!m.pulse).sort(
|
|
234
|
+
(x, y) => Math.abs(x.start_s - yours.start - rel) - Math.abs(y.start_s - yours.start - rel)
|
|
235
|
+
)[0];
|
|
236
|
+
const head = { prop: m.prop, at_s: round(rel, 2) };
|
|
237
|
+
if (!d) return { ...head, yours: "no matching move" };
|
|
238
|
+
const common = {
|
|
239
|
+
...head,
|
|
240
|
+
start_offset_s: round(d.start_s - yours.start - rel, 3),
|
|
241
|
+
duration_frames: `${m.frames} \u2192 ${d.frames}`
|
|
242
|
+
};
|
|
243
|
+
if (m.pulse || d.pulse)
|
|
244
|
+
return {
|
|
245
|
+
...common,
|
|
246
|
+
pulse: true,
|
|
247
|
+
peak: `${m.pulse ? m.peak : m.to} \u2192 ${d.pulse ? d.peak : d.to}`
|
|
248
|
+
};
|
|
249
|
+
return {
|
|
250
|
+
...common,
|
|
251
|
+
ease: `${m.ease} \u2192 ${d.ease}`,
|
|
252
|
+
same_family: family(m.ease) === family(d.ease),
|
|
253
|
+
overshoot_pct: `${m.overshoot_pct} \u2192 ${d.overshoot_pct}`,
|
|
254
|
+
curve_rmse: round(
|
|
255
|
+
Math.sqrt(m.curve.reduce((s, x, i) => s + (x - d.curve[i]) ** 2, 0) / m.curve.length),
|
|
256
|
+
3
|
|
257
|
+
)
|
|
258
|
+
};
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
var printable = (moves) => moves.map((m) => m.pulse ? m : { ...m, curve: void 0 });
|
|
262
|
+
|
|
263
|
+
// src/commands/measure/curve.ts
|
|
264
|
+
var examples = [
|
|
265
|
+
[
|
|
266
|
+
"The ease, duration and overshoot of one element's move",
|
|
267
|
+
"hyperframes measure curve original.mp4 --start 2.1 --end 3 --roi 240,280,600,540"
|
|
268
|
+
],
|
|
269
|
+
[
|
|
270
|
+
"The same move in your render, paired with the original's",
|
|
271
|
+
"hyperframes measure curve original.mp4 --start 2.1 --end 3 --roi 240,280,600,540 --compare renders/final.mp4 --compare-start 2.1"
|
|
272
|
+
]
|
|
273
|
+
];
|
|
274
|
+
function hex(text) {
|
|
275
|
+
const m = /^#?([0-9a-f]{6})$/i.exec(text);
|
|
276
|
+
if (!m) throw new Fix(`--bg must be #rrggbb, got "${text}"`, "--bg #101820");
|
|
277
|
+
return [0, 2, 4].map((i) => parseInt(m[1].slice(i, i + 2), 16));
|
|
278
|
+
}
|
|
279
|
+
var curve_default = defineCommand({
|
|
280
|
+
meta: {
|
|
281
|
+
name: "curve",
|
|
282
|
+
description: "Each move of one element on a flat background: start, duration, overshoot and the closest GSAP ease"
|
|
283
|
+
},
|
|
284
|
+
args: {
|
|
285
|
+
video: videoArg,
|
|
286
|
+
start: { type: "string", description: "Window start in seconds (default 0)" },
|
|
287
|
+
end: { type: "string", description: "Window end in seconds (default: the end)" },
|
|
288
|
+
roi: {
|
|
289
|
+
...roiArg,
|
|
290
|
+
description: "Region holding the whole move, overshoot included, and nothing else that moves"
|
|
291
|
+
},
|
|
292
|
+
bg: { type: "string", description: "Background #rrggbb (default: the ROI border's median)" },
|
|
293
|
+
thr: {
|
|
294
|
+
type: "string",
|
|
295
|
+
description: "Pixel distance from the background that counts as the element (24)"
|
|
296
|
+
},
|
|
297
|
+
compare: {
|
|
298
|
+
type: "string",
|
|
299
|
+
description: "A second video (your render) to measure the same way"
|
|
300
|
+
},
|
|
301
|
+
...compareWindowArgs,
|
|
302
|
+
json: jsonArg
|
|
303
|
+
},
|
|
304
|
+
run: ({ args }) => runMeasure(() => {
|
|
305
|
+
const { info, roi } = videoAndRoi(args.video, args.roi);
|
|
306
|
+
const [start, end] = window(info, args.start, args.end);
|
|
307
|
+
const opts = { bg: args.bg ? hex(args.bg) : null, thr: num(args.thr, "--thr", 24) };
|
|
308
|
+
const ref = curves(info.path, start, end - start, roi, opts);
|
|
309
|
+
if (!args.compare) return { video: info.path, ...ref, moves: printable(ref.moves) };
|
|
310
|
+
const other = probeVideo(args.compare);
|
|
311
|
+
const yoursRoi = args["compare-roi"] ? parseRoi(args["compare-roi"], other.width, other.height) : roi;
|
|
312
|
+
const yours = curves(
|
|
313
|
+
other.path,
|
|
314
|
+
num(args["compare-start"], "--compare-start", start),
|
|
315
|
+
end - start,
|
|
316
|
+
yoursRoi,
|
|
317
|
+
opts
|
|
318
|
+
);
|
|
319
|
+
return {
|
|
320
|
+
compare: compareCurves(ref, yours),
|
|
321
|
+
reference: printable(ref.moves),
|
|
322
|
+
yours: printable(yours.moves)
|
|
323
|
+
};
|
|
324
|
+
})
|
|
325
|
+
});
|
|
326
|
+
export {
|
|
327
|
+
curve_default as default,
|
|
328
|
+
examples
|
|
329
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
findCuts,
|
|
9
|
+
signatures
|
|
10
|
+
} from "./chunk-OZM6VLD7.js";
|
|
11
|
+
import {
|
|
12
|
+
jsonArg,
|
|
13
|
+
runMeasure,
|
|
14
|
+
videoArg,
|
|
15
|
+
window
|
|
16
|
+
} from "./chunk-WGOIJN57.js";
|
|
17
|
+
import {
|
|
18
|
+
probeVideo,
|
|
19
|
+
round,
|
|
20
|
+
videoClip
|
|
21
|
+
} from "./chunk-VJM6NX54.js";
|
|
22
|
+
import "./chunk-WWOHLNFO.js";
|
|
23
|
+
import {
|
|
24
|
+
defineCommand
|
|
25
|
+
} from "./chunk-DL4OD7IA.js";
|
|
26
|
+
import "./chunk-S3S4TGEH.js";
|
|
27
|
+
import "./chunk-2GICKZ3I.js";
|
|
28
|
+
import "./chunk-4XQQQ4KN.js";
|
|
29
|
+
import "./chunk-Z5J67X44.js";
|
|
30
|
+
import "./chunk-5S7W3TUO.js";
|
|
31
|
+
import "./chunk-D3MUHMFG.js";
|
|
32
|
+
import "./chunk-FKBWONRY.js";
|
|
33
|
+
import "./chunk-YWRUQ7XZ.js";
|
|
34
|
+
import "./chunk-OWFSGDQS.js";
|
|
35
|
+
import "./chunk-MEJH7VEA.js";
|
|
36
|
+
import "./chunk-UQECNXFA.js";
|
|
37
|
+
import "./chunk-VC76R6W2.js";
|
|
38
|
+
import "./chunk-OFQWTKPW.js";
|
|
39
|
+
import "./chunk-RQVDTPGD.js";
|
|
40
|
+
import "./chunk-3GXQPCJC.js";
|
|
41
|
+
import "./chunk-TK7THLRO.js";
|
|
42
|
+
import "./chunk-FXMKHHPO.js";
|
|
43
|
+
import "./chunk-X6JUUQCM.js";
|
|
44
|
+
import "./chunk-KGPLIH7B.js";
|
|
45
|
+
import "./chunk-K4MJX7SR.js";
|
|
46
|
+
import "./chunk-WE42NVH7.js";
|
|
47
|
+
import "./chunk-HT3D5AKG.js";
|
|
48
|
+
import "./chunk-HYRPH6LL.js";
|
|
49
|
+
import "./chunk-AKMY4QVI.js";
|
|
50
|
+
import "./chunk-CZGHFATT.js";
|
|
51
|
+
import "./chunk-C2KEGBR3.js";
|
|
52
|
+
import "./chunk-T5ELONXY.js";
|
|
53
|
+
import "./chunk-FR7YBU3H.js";
|
|
54
|
+
import "./chunk-DPVXBVLL.js";
|
|
55
|
+
import "./chunk-GWTIFRF5.js";
|
|
56
|
+
import "./chunk-2RY2LWAA.js";
|
|
57
|
+
import "./chunk-EPQC3FGZ.js";
|
|
58
|
+
import "./chunk-WC4MTXGN.js";
|
|
59
|
+
import "./chunk-FBN2M2HK.js";
|
|
60
|
+
import "./chunk-K5GMPWMG.js";
|
|
61
|
+
import "./chunk-BR2JQQC5.js";
|
|
62
|
+
import "./chunk-BLBMPEBX.js";
|
|
63
|
+
import "./chunk-ISN5GRYI.js";
|
|
64
|
+
import "./chunk-SJGE5I5F.js";
|
|
65
|
+
import "./chunk-DP5LF7GF.js";
|
|
66
|
+
import "./chunk-J3RXEDR2.js";
|
|
67
|
+
import "./chunk-QBXDU24O.js";
|
|
68
|
+
import "./chunk-P5QGZMGC.js";
|
|
69
|
+
import "./chunk-E63BDV4Z.js";
|
|
70
|
+
import "./chunk-G7VEYUZ2.js";
|
|
71
|
+
import "./chunk-XT6MXC7A.js";
|
|
72
|
+
import "./chunk-7KDQAD2W.js";
|
|
73
|
+
import "./chunk-M2WBOQ2Q.js";
|
|
74
|
+
|
|
75
|
+
// src/commands/measure/cuts.ts
|
|
76
|
+
var examples = [
|
|
77
|
+
["Every hard cut and the shots between them", "hyperframes measure cuts ref.mp4"],
|
|
78
|
+
["Cuts in the first 20 seconds", "hyperframes measure cuts ref.mp4 --start 0 --end 20"]
|
|
79
|
+
];
|
|
80
|
+
var cuts_default = defineCommand({
|
|
81
|
+
meta: {
|
|
82
|
+
name: "cuts",
|
|
83
|
+
description: "Hard cuts from the frame-to-frame difference (scene scores miss some), and the shots between them"
|
|
84
|
+
},
|
|
85
|
+
args: {
|
|
86
|
+
video: videoArg,
|
|
87
|
+
start: { type: "string", description: "First second to read (default 0)" },
|
|
88
|
+
end: { type: "string", description: "Last second to read (default: the end)" },
|
|
89
|
+
json: jsonArg
|
|
90
|
+
},
|
|
91
|
+
async run({ args }) {
|
|
92
|
+
await runMeasure(() => {
|
|
93
|
+
const info = probeVideo(String(args.video));
|
|
94
|
+
const [start, end] = window(info, args.start, args.end);
|
|
95
|
+
const clip = videoClip(info.path, start, end - start, info);
|
|
96
|
+
const found = findCuts(signatures(clip.input, clip.filters).frames);
|
|
97
|
+
const f0 = Math.ceil(start * info.fps - 1e-6);
|
|
98
|
+
const cuts = found.map((c) => ({
|
|
99
|
+
t: round((f0 + c.frame) / info.fps, 3),
|
|
100
|
+
frame: f0 + c.frame,
|
|
101
|
+
...c.frames > 1 ? { frames: c.frames } : {},
|
|
102
|
+
change: round(c.change, 1)
|
|
103
|
+
}));
|
|
104
|
+
const edges = [start, ...cuts.map((c) => c.t), end];
|
|
105
|
+
return {
|
|
106
|
+
video: info.path,
|
|
107
|
+
start,
|
|
108
|
+
end: round(end, 3),
|
|
109
|
+
fps: round(info.fps, 3),
|
|
110
|
+
cuts,
|
|
111
|
+
shots: edges.slice(1).map((e, i) => ({
|
|
112
|
+
start: round(edges[i], 3),
|
|
113
|
+
end: round(e, 3),
|
|
114
|
+
seconds: round(e - edges[i], 2)
|
|
115
|
+
}))
|
|
116
|
+
};
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
export {
|
|
121
|
+
cuts_default as default,
|
|
122
|
+
examples
|
|
123
|
+
};
|
|
@@ -7,11 +7,11 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
createCloudClient,
|
|
9
9
|
reportApiError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-I6OY5MS6.js";
|
|
11
11
|
import "./chunk-6A45RKAK.js";
|
|
12
|
-
import "./chunk-YSTBSLWY.js";
|
|
13
|
-
import "./chunk-MESSJFK3.js";
|
|
14
12
|
import "./chunk-NO6F7CLR.js";
|
|
13
|
+
import "./chunk-VBCBHDIW.js";
|
|
14
|
+
import "./chunk-RWSVSCOP.js";
|
|
15
15
|
import {
|
|
16
16
|
errorBox
|
|
17
17
|
} from "./chunk-5ZBMHUY2.js";
|
|
@@ -28,7 +28,7 @@ import "./chunk-YWRUQ7XZ.js";
|
|
|
28
28
|
import "./chunk-OFQWTKPW.js";
|
|
29
29
|
import {
|
|
30
30
|
withMeta
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-K5GMPWMG.js";
|
|
32
32
|
import "./chunk-BR2JQQC5.js";
|
|
33
33
|
import "./chunk-BLBMPEBX.js";
|
|
34
34
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
isUnattended
|
|
42
42
|
} from "./chunk-J3RXEDR2.js";
|
|
43
43
|
import "./chunk-QBXDU24O.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-P5QGZMGC.js";
|
|
45
45
|
import "./chunk-E63BDV4Z.js";
|
|
46
46
|
import "./chunk-G7VEYUZ2.js";
|
|
47
47
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -4,22 +4,22 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
-
import {
|
|
8
|
-
repoRoot
|
|
9
|
-
} from "./chunk-2X4PQEYM.js";
|
|
10
7
|
import {
|
|
11
8
|
isMissingPackageError
|
|
12
9
|
} from "./chunk-FLXZ4GZI.js";
|
|
13
10
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
writeStackOutputs
|
|
17
|
-
} from "./chunk-S2HWGG5O.js";
|
|
11
|
+
repoRoot
|
|
12
|
+
} from "./chunk-2X4PQEYM.js";
|
|
18
13
|
import {
|
|
19
14
|
fetchStackOutputs,
|
|
20
15
|
locateSamTemplate,
|
|
21
16
|
samDeploy
|
|
22
17
|
} from "./chunk-ONMTNYGR.js";
|
|
18
|
+
import {
|
|
19
|
+
DEFAULT_STACK_NAME,
|
|
20
|
+
readStackOutputs,
|
|
21
|
+
writeStackOutputs
|
|
22
|
+
} from "./chunk-S2HWGG5O.js";
|
|
23
23
|
import {
|
|
24
24
|
downloadFile
|
|
25
25
|
} from "./chunk-R4EWRIDL.js";
|
|
@@ -30,7 +30,7 @@ import "./chunk-DP5LF7GF.js";
|
|
|
30
30
|
import "./chunk-J3RXEDR2.js";
|
|
31
31
|
import {
|
|
32
32
|
VERSION
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-P5QGZMGC.js";
|
|
34
34
|
import "./chunk-G7VEYUZ2.js";
|
|
35
35
|
import "./chunk-XT6MXC7A.js";
|
|
36
36
|
import "./chunk-7KDQAD2W.js";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
NEVER_VISIBLE,
|
|
9
|
+
createProbeGate,
|
|
10
|
+
describeProject
|
|
11
|
+
} from "./chunk-OL2C3ODS.js";
|
|
12
|
+
import "./chunk-LLMSX6V6.js";
|
|
13
|
+
import "./chunk-AW3XJY4S.js";
|
|
14
|
+
import "./chunk-7LKEHM2R.js";
|
|
15
|
+
import "./chunk-2GICKZ3I.js";
|
|
16
|
+
import "./chunk-4XQQQ4KN.js";
|
|
17
|
+
import "./chunk-Z5J67X44.js";
|
|
18
|
+
import "./chunk-5S7W3TUO.js";
|
|
19
|
+
import "./chunk-D3MUHMFG.js";
|
|
20
|
+
import "./chunk-FKBWONRY.js";
|
|
21
|
+
import "./chunk-YWRUQ7XZ.js";
|
|
22
|
+
import "./chunk-OWFSGDQS.js";
|
|
23
|
+
import "./chunk-MEJH7VEA.js";
|
|
24
|
+
import "./chunk-UQECNXFA.js";
|
|
25
|
+
import "./chunk-VC76R6W2.js";
|
|
26
|
+
import "./chunk-OFQWTKPW.js";
|
|
27
|
+
import "./chunk-RQVDTPGD.js";
|
|
28
|
+
import "./chunk-3GXQPCJC.js";
|
|
29
|
+
import "./chunk-TK7THLRO.js";
|
|
30
|
+
import "./chunk-FXMKHHPO.js";
|
|
31
|
+
import "./chunk-K4MJX7SR.js";
|
|
32
|
+
import "./chunk-WE42NVH7.js";
|
|
33
|
+
import "./chunk-HT3D5AKG.js";
|
|
34
|
+
import "./chunk-HYRPH6LL.js";
|
|
35
|
+
import "./chunk-AKMY4QVI.js";
|
|
36
|
+
import "./chunk-CZGHFATT.js";
|
|
37
|
+
import "./chunk-C2KEGBR3.js";
|
|
38
|
+
import "./chunk-T5ELONXY.js";
|
|
39
|
+
import "./chunk-FR7YBU3H.js";
|
|
40
|
+
import "./chunk-DPVXBVLL.js";
|
|
41
|
+
import "./chunk-GWTIFRF5.js";
|
|
42
|
+
import "./chunk-2RY2LWAA.js";
|
|
43
|
+
import "./chunk-EPQC3FGZ.js";
|
|
44
|
+
import "./chunk-WC4MTXGN.js";
|
|
45
|
+
import "./chunk-FBN2M2HK.js";
|
|
46
|
+
import "./chunk-J3RXEDR2.js";
|
|
47
|
+
import "./chunk-QBXDU24O.js";
|
|
48
|
+
import "./chunk-G7VEYUZ2.js";
|
|
49
|
+
import "./chunk-XT6MXC7A.js";
|
|
50
|
+
import "./chunk-7KDQAD2W.js";
|
|
51
|
+
import "./chunk-M2WBOQ2Q.js";
|
|
52
|
+
export {
|
|
53
|
+
NEVER_VISIBLE,
|
|
54
|
+
createProbeGate,
|
|
55
|
+
describeProject
|
|
56
|
+
};
|