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
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
lintMediaUrls,
|
|
13
13
|
lintProject,
|
|
14
14
|
shouldBlockRender
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-CZGHFATT.js";
|
|
15
|
+
} from "./chunk-HT3D5AKG.js";
|
|
17
16
|
import "./chunk-HYRPH6LL.js";
|
|
18
17
|
import "./chunk-AKMY4QVI.js";
|
|
18
|
+
import "./chunk-CZGHFATT.js";
|
|
19
19
|
import "./chunk-C2KEGBR3.js";
|
|
20
20
|
import "./chunk-T5ELONXY.js";
|
|
21
21
|
import "./chunk-FR7YBU3H.js";
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
serializeVfxChain,
|
|
96
96
|
toFps,
|
|
97
97
|
validateVariables
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-OWFSGDQS.js";
|
|
99
99
|
import "./chunk-MEJH7VEA.js";
|
|
100
100
|
import {
|
|
101
101
|
AUDIBLE_MEDIA_SELECTOR,
|
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
sourceTimeAt,
|
|
161
161
|
stripEmbeddedRuntimeScripts,
|
|
162
162
|
timeAtSourceTime
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-UQECNXFA.js";
|
|
164
164
|
import "./chunk-VC76R6W2.js";
|
|
165
165
|
import {
|
|
166
166
|
ProjectRootMissingError,
|
|
@@ -15,27 +15,27 @@ import {
|
|
|
15
15
|
examples,
|
|
16
16
|
ffmpegDoctorDetail,
|
|
17
17
|
redactHome
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DFK4RMNE.js";
|
|
19
19
|
import "./chunk-SHOE3UR6.js";
|
|
20
20
|
import "./chunk-J3OVTOVC.js";
|
|
21
21
|
import {
|
|
22
22
|
parseToolVersion
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-A5WWEW6U.js";
|
|
24
24
|
import "./chunk-Y65ZU7XY.js";
|
|
25
25
|
import "./chunk-6BEFEWFB.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-WWOHLNFO.js";
|
|
27
27
|
import "./chunk-DL4OD7IA.js";
|
|
28
28
|
import "./chunk-S3S4TGEH.js";
|
|
29
29
|
import "./chunk-2GICKZ3I.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-4XQQQ4KN.js";
|
|
31
31
|
import "./chunk-Z5J67X44.js";
|
|
32
32
|
import "./chunk-5S7W3TUO.js";
|
|
33
33
|
import "./chunk-D3MUHMFG.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-FKBWONRY.js";
|
|
35
35
|
import "./chunk-YWRUQ7XZ.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-OWFSGDQS.js";
|
|
37
37
|
import "./chunk-MEJH7VEA.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-UQECNXFA.js";
|
|
39
39
|
import "./chunk-VC76R6W2.js";
|
|
40
40
|
import "./chunk-OFQWTKPW.js";
|
|
41
41
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -48,10 +48,10 @@ import "./chunk-KGPLIH7B.js";
|
|
|
48
48
|
import "./chunk-LAGZGKKN.js";
|
|
49
49
|
import "./chunk-K4MJX7SR.js";
|
|
50
50
|
import "./chunk-WE42NVH7.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-CZGHFATT.js";
|
|
51
|
+
import "./chunk-HT3D5AKG.js";
|
|
53
52
|
import "./chunk-HYRPH6LL.js";
|
|
54
53
|
import "./chunk-AKMY4QVI.js";
|
|
54
|
+
import "./chunk-CZGHFATT.js";
|
|
55
55
|
import "./chunk-C2KEGBR3.js";
|
|
56
56
|
import "./chunk-T5ELONXY.js";
|
|
57
57
|
import "./chunk-FR7YBU3H.js";
|
|
@@ -61,7 +61,7 @@ import "./chunk-2RY2LWAA.js";
|
|
|
61
61
|
import "./chunk-EPQC3FGZ.js";
|
|
62
62
|
import "./chunk-WC4MTXGN.js";
|
|
63
63
|
import "./chunk-FBN2M2HK.js";
|
|
64
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-K5GMPWMG.js";
|
|
65
65
|
import "./chunk-BR2JQQC5.js";
|
|
66
66
|
import "./chunk-BLBMPEBX.js";
|
|
67
67
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -69,7 +69,7 @@ import "./chunk-SJGE5I5F.js";
|
|
|
69
69
|
import "./chunk-DP5LF7GF.js";
|
|
70
70
|
import "./chunk-J3RXEDR2.js";
|
|
71
71
|
import "./chunk-QBXDU24O.js";
|
|
72
|
-
import "./chunk-
|
|
72
|
+
import "./chunk-P5QGZMGC.js";
|
|
73
73
|
import "./chunk-E63BDV4Z.js";
|
|
74
74
|
import "./chunk-G7VEYUZ2.js";
|
|
75
75
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -0,0 +1,134 @@
|
|
|
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
|
+
compareEnergy,
|
|
9
|
+
energyCurve
|
|
10
|
+
} from "./chunk-EJOFIHX4.js";
|
|
11
|
+
import {
|
|
12
|
+
jsonArg,
|
|
13
|
+
num,
|
|
14
|
+
runMeasure
|
|
15
|
+
} from "./chunk-WGOIJN57.js";
|
|
16
|
+
import {
|
|
17
|
+
Fix,
|
|
18
|
+
parseRoi,
|
|
19
|
+
probeVideo,
|
|
20
|
+
round,
|
|
21
|
+
videoClip
|
|
22
|
+
} from "./chunk-VJM6NX54.js";
|
|
23
|
+
import "./chunk-WWOHLNFO.js";
|
|
24
|
+
import {
|
|
25
|
+
defineCommand
|
|
26
|
+
} from "./chunk-DL4OD7IA.js";
|
|
27
|
+
import "./chunk-S3S4TGEH.js";
|
|
28
|
+
import "./chunk-2GICKZ3I.js";
|
|
29
|
+
import "./chunk-4XQQQ4KN.js";
|
|
30
|
+
import "./chunk-Z5J67X44.js";
|
|
31
|
+
import "./chunk-5S7W3TUO.js";
|
|
32
|
+
import "./chunk-D3MUHMFG.js";
|
|
33
|
+
import "./chunk-FKBWONRY.js";
|
|
34
|
+
import "./chunk-YWRUQ7XZ.js";
|
|
35
|
+
import "./chunk-OWFSGDQS.js";
|
|
36
|
+
import "./chunk-MEJH7VEA.js";
|
|
37
|
+
import "./chunk-UQECNXFA.js";
|
|
38
|
+
import "./chunk-VC76R6W2.js";
|
|
39
|
+
import "./chunk-OFQWTKPW.js";
|
|
40
|
+
import "./chunk-RQVDTPGD.js";
|
|
41
|
+
import "./chunk-3GXQPCJC.js";
|
|
42
|
+
import "./chunk-TK7THLRO.js";
|
|
43
|
+
import "./chunk-FXMKHHPO.js";
|
|
44
|
+
import "./chunk-X6JUUQCM.js";
|
|
45
|
+
import "./chunk-KGPLIH7B.js";
|
|
46
|
+
import "./chunk-K4MJX7SR.js";
|
|
47
|
+
import "./chunk-WE42NVH7.js";
|
|
48
|
+
import "./chunk-HT3D5AKG.js";
|
|
49
|
+
import "./chunk-HYRPH6LL.js";
|
|
50
|
+
import "./chunk-AKMY4QVI.js";
|
|
51
|
+
import "./chunk-CZGHFATT.js";
|
|
52
|
+
import "./chunk-C2KEGBR3.js";
|
|
53
|
+
import "./chunk-T5ELONXY.js";
|
|
54
|
+
import "./chunk-FR7YBU3H.js";
|
|
55
|
+
import "./chunk-DPVXBVLL.js";
|
|
56
|
+
import "./chunk-GWTIFRF5.js";
|
|
57
|
+
import "./chunk-2RY2LWAA.js";
|
|
58
|
+
import "./chunk-EPQC3FGZ.js";
|
|
59
|
+
import "./chunk-WC4MTXGN.js";
|
|
60
|
+
import "./chunk-FBN2M2HK.js";
|
|
61
|
+
import "./chunk-K5GMPWMG.js";
|
|
62
|
+
import "./chunk-BR2JQQC5.js";
|
|
63
|
+
import "./chunk-BLBMPEBX.js";
|
|
64
|
+
import "./chunk-ISN5GRYI.js";
|
|
65
|
+
import "./chunk-SJGE5I5F.js";
|
|
66
|
+
import "./chunk-DP5LF7GF.js";
|
|
67
|
+
import "./chunk-J3RXEDR2.js";
|
|
68
|
+
import "./chunk-QBXDU24O.js";
|
|
69
|
+
import "./chunk-P5QGZMGC.js";
|
|
70
|
+
import "./chunk-E63BDV4Z.js";
|
|
71
|
+
import "./chunk-G7VEYUZ2.js";
|
|
72
|
+
import "./chunk-XT6MXC7A.js";
|
|
73
|
+
import "./chunk-7KDQAD2W.js";
|
|
74
|
+
import "./chunk-M2WBOQ2Q.js";
|
|
75
|
+
|
|
76
|
+
// src/commands/measure/energy.ts
|
|
77
|
+
var examples = [
|
|
78
|
+
[
|
|
79
|
+
"Does a regenerated shot move as much as the original's, and when",
|
|
80
|
+
"hyperframes measure energy ref.mp4 renders/v1.mp4 --start 4 --seconds 5"
|
|
81
|
+
]
|
|
82
|
+
];
|
|
83
|
+
var energy_default = defineCommand({
|
|
84
|
+
meta: {
|
|
85
|
+
name: "energy",
|
|
86
|
+
description: "How much two clips move, and whether they move at the same moments, when their pixels differ"
|
|
87
|
+
},
|
|
88
|
+
args: {
|
|
89
|
+
reference: { type: "positional", description: "The original", required: true },
|
|
90
|
+
yours: { type: "positional", description: "The other video", required: true },
|
|
91
|
+
start: { type: "string", description: "Second the window starts in the original (default 0)" },
|
|
92
|
+
"yours-start": { type: "string", description: "Second it starts in yours (default: --start)" },
|
|
93
|
+
seconds: { type: "string", description: "Window length (default: the rest of the original)" },
|
|
94
|
+
roi: { type: "string", description: "Region of the original, x,y,w,h" },
|
|
95
|
+
"yours-roi": {
|
|
96
|
+
type: "string",
|
|
97
|
+
description: "Region of yours (default: --roi scaled by the widths)"
|
|
98
|
+
},
|
|
99
|
+
json: jsonArg
|
|
100
|
+
},
|
|
101
|
+
async run({ args }) {
|
|
102
|
+
await runMeasure(() => {
|
|
103
|
+
const [a, b] = [probeVideo(String(args.reference)), probeVideo(String(args.yours))];
|
|
104
|
+
const start = num(args.start, "--start", 0);
|
|
105
|
+
const yoursStart = num(args["yours-start"], "--yours-start", start);
|
|
106
|
+
const seconds = num(args.seconds, "--seconds", a.duration - start);
|
|
107
|
+
if (seconds <= 0.5) throw new Fix("the window is under half a second", "--seconds 2 or more");
|
|
108
|
+
const roi = args.roi === void 0 ? void 0 : parseRoi(args.roi, a.width, a.height);
|
|
109
|
+
const k = b.width / a.width;
|
|
110
|
+
const scaled = (r2) => [
|
|
111
|
+
Math.round(r2[0] * k),
|
|
112
|
+
Math.round(r2[1] * k),
|
|
113
|
+
Math.max(2, Math.round(r2[2] * k)),
|
|
114
|
+
Math.max(2, Math.round(r2[3] * k))
|
|
115
|
+
];
|
|
116
|
+
const yoursRoi = args["yours-roi"] !== void 0 ? parseRoi(args["yours-roi"], b.width, b.height) : roi && scaled(roi);
|
|
117
|
+
const r = compareEnergy(
|
|
118
|
+
energyCurve(videoClip(a.path, start, seconds, a), roi),
|
|
119
|
+
energyCurve(videoClip(b.path, yoursStart, seconds, b), yoursRoi)
|
|
120
|
+
);
|
|
121
|
+
return {
|
|
122
|
+
reference: a.path,
|
|
123
|
+
yours: b.path,
|
|
124
|
+
window_s: round(seconds, 3),
|
|
125
|
+
...r,
|
|
126
|
+
reading: "mean_ratio is how much yours moves (0.8\u20131.25 is the same amount); r near 1 at a small lag_s is the same action at the same time"
|
|
127
|
+
};
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
export {
|
|
132
|
+
energy_default as default,
|
|
133
|
+
examples
|
|
134
|
+
};
|
|
@@ -32,8 +32,8 @@ import {
|
|
|
32
32
|
trackSkillsInstallSkipped,
|
|
33
33
|
trackSnapshotRun,
|
|
34
34
|
trackTranscribeUnavailable
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-LAIGIOEA.js";
|
|
36
|
+
import "./chunk-45UOXUUH.js";
|
|
37
37
|
import "./chunk-PXVQOMKL.js";
|
|
38
38
|
import "./chunk-EQGKUPBJ.js";
|
|
39
39
|
import "./chunk-VLA6UJGH.js";
|
|
@@ -50,7 +50,7 @@ import "./chunk-SJGE5I5F.js";
|
|
|
50
50
|
import "./chunk-DP5LF7GF.js";
|
|
51
51
|
import "./chunk-J3RXEDR2.js";
|
|
52
52
|
import "./chunk-QBXDU24O.js";
|
|
53
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-P5QGZMGC.js";
|
|
54
54
|
import "./chunk-E63BDV4Z.js";
|
|
55
55
|
import "./chunk-G7VEYUZ2.js";
|
|
56
56
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
flushSync,
|
|
12
12
|
trackEvent
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-45UOXUUH.js";
|
|
14
14
|
import "./chunk-PXVQOMKL.js";
|
|
15
15
|
import "./chunk-EQGKUPBJ.js";
|
|
16
16
|
import "./chunk-VLA6UJGH.js";
|
|
@@ -30,7 +30,7 @@ import "./chunk-SJGE5I5F.js";
|
|
|
30
30
|
import "./chunk-DP5LF7GF.js";
|
|
31
31
|
import "./chunk-J3RXEDR2.js";
|
|
32
32
|
import "./chunk-QBXDU24O.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-P5QGZMGC.js";
|
|
34
34
|
import "./chunk-E63BDV4Z.js";
|
|
35
35
|
import "./chunk-G7VEYUZ2.js";
|
|
36
36
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -0,0 +1,221 @@
|
|
|
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
|
+
countEvents,
|
|
9
|
+
detectEvents,
|
|
10
|
+
drawStrip,
|
|
11
|
+
lookWindows
|
|
12
|
+
} from "./chunk-AW7UW2Z7.js";
|
|
13
|
+
import "./chunk-OZM6VLD7.js";
|
|
14
|
+
import {
|
|
15
|
+
jsonArg,
|
|
16
|
+
num,
|
|
17
|
+
outArg,
|
|
18
|
+
roiArg,
|
|
19
|
+
runMeasure,
|
|
20
|
+
videoAndRoi,
|
|
21
|
+
videoArg,
|
|
22
|
+
window
|
|
23
|
+
} from "./chunk-WGOIJN57.js";
|
|
24
|
+
import {
|
|
25
|
+
Fix,
|
|
26
|
+
outDir,
|
|
27
|
+
round
|
|
28
|
+
} from "./chunk-VJM6NX54.js";
|
|
29
|
+
import "./chunk-WWOHLNFO.js";
|
|
30
|
+
import {
|
|
31
|
+
defineCommand
|
|
32
|
+
} from "./chunk-DL4OD7IA.js";
|
|
33
|
+
import "./chunk-S3S4TGEH.js";
|
|
34
|
+
import "./chunk-2GICKZ3I.js";
|
|
35
|
+
import "./chunk-4XQQQ4KN.js";
|
|
36
|
+
import "./chunk-Z5J67X44.js";
|
|
37
|
+
import "./chunk-5S7W3TUO.js";
|
|
38
|
+
import "./chunk-D3MUHMFG.js";
|
|
39
|
+
import "./chunk-FKBWONRY.js";
|
|
40
|
+
import "./chunk-YWRUQ7XZ.js";
|
|
41
|
+
import "./chunk-OWFSGDQS.js";
|
|
42
|
+
import "./chunk-MEJH7VEA.js";
|
|
43
|
+
import "./chunk-UQECNXFA.js";
|
|
44
|
+
import "./chunk-VC76R6W2.js";
|
|
45
|
+
import "./chunk-OFQWTKPW.js";
|
|
46
|
+
import "./chunk-RQVDTPGD.js";
|
|
47
|
+
import "./chunk-3GXQPCJC.js";
|
|
48
|
+
import "./chunk-TK7THLRO.js";
|
|
49
|
+
import "./chunk-FXMKHHPO.js";
|
|
50
|
+
import "./chunk-X6JUUQCM.js";
|
|
51
|
+
import "./chunk-KGPLIH7B.js";
|
|
52
|
+
import "./chunk-K4MJX7SR.js";
|
|
53
|
+
import "./chunk-WE42NVH7.js";
|
|
54
|
+
import "./chunk-HT3D5AKG.js";
|
|
55
|
+
import "./chunk-HYRPH6LL.js";
|
|
56
|
+
import "./chunk-AKMY4QVI.js";
|
|
57
|
+
import "./chunk-CZGHFATT.js";
|
|
58
|
+
import "./chunk-C2KEGBR3.js";
|
|
59
|
+
import "./chunk-T5ELONXY.js";
|
|
60
|
+
import "./chunk-FR7YBU3H.js";
|
|
61
|
+
import "./chunk-DPVXBVLL.js";
|
|
62
|
+
import "./chunk-GWTIFRF5.js";
|
|
63
|
+
import "./chunk-2RY2LWAA.js";
|
|
64
|
+
import "./chunk-EPQC3FGZ.js";
|
|
65
|
+
import "./chunk-WC4MTXGN.js";
|
|
66
|
+
import "./chunk-FBN2M2HK.js";
|
|
67
|
+
import "./chunk-K5GMPWMG.js";
|
|
68
|
+
import "./chunk-BR2JQQC5.js";
|
|
69
|
+
import "./chunk-BLBMPEBX.js";
|
|
70
|
+
import "./chunk-ISN5GRYI.js";
|
|
71
|
+
import "./chunk-SJGE5I5F.js";
|
|
72
|
+
import "./chunk-DP5LF7GF.js";
|
|
73
|
+
import "./chunk-J3RXEDR2.js";
|
|
74
|
+
import "./chunk-QBXDU24O.js";
|
|
75
|
+
import "./chunk-P5QGZMGC.js";
|
|
76
|
+
import "./chunk-E63BDV4Z.js";
|
|
77
|
+
import "./chunk-G7VEYUZ2.js";
|
|
78
|
+
import "./chunk-XT6MXC7A.js";
|
|
79
|
+
import "./chunk-7KDQAD2W.js";
|
|
80
|
+
import "./chunk-M2WBOQ2Q.js";
|
|
81
|
+
|
|
82
|
+
// src/commands/measure/events.ts
|
|
83
|
+
import { writeFileSync } from "fs";
|
|
84
|
+
import { join } from "path";
|
|
85
|
+
var examples = [
|
|
86
|
+
[
|
|
87
|
+
"The film's event map: cuts, flashes, what appears where, holds, and the sound's hits, grouped into windows to look at",
|
|
88
|
+
"hyperframes measure events ref.mp4 --map"
|
|
89
|
+
],
|
|
90
|
+
[
|
|
91
|
+
"When one region changes, frame by frame",
|
|
92
|
+
"hyperframes measure events ref.mp4 --roi 0,800,1080,300 --start 2 --end 6"
|
|
93
|
+
]
|
|
94
|
+
];
|
|
95
|
+
function parseGrid(text) {
|
|
96
|
+
const m = /^(\d+)x(\d+)$/.exec(String(text));
|
|
97
|
+
if (!m || Number(m[1]) < 1 || Number(m[2]) < 1)
|
|
98
|
+
throw new Fix(`--grid must be COLSxROWS, got "${String(text)}"`, "--grid 6x10");
|
|
99
|
+
return { cols: Number(m[1]), rows: Number(m[2]) };
|
|
100
|
+
}
|
|
101
|
+
var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
102
|
+
var numbers = (v) => Array.isArray(v) ? v.filter((x) => typeof x === "number") : [];
|
|
103
|
+
async function soundOf(info, start, end) {
|
|
104
|
+
if (!info.audio) return null;
|
|
105
|
+
const { analyzeTargets, previewTarget } = await import("./run-67OPNJGD.js");
|
|
106
|
+
const report = await analyzeTargets([await previewTarget(info.path, info.path, null)], {
|
|
107
|
+
capabilities: ["onsets", "beats", "bpm"],
|
|
108
|
+
quality: "local"
|
|
109
|
+
});
|
|
110
|
+
const item = report.items[0];
|
|
111
|
+
if (!item) return null;
|
|
112
|
+
const inside = (t) => t >= start && t <= end;
|
|
113
|
+
const onsets = isRecord(item.onsets) && Array.isArray(item.onsets.events) ? item.onsets.events : [];
|
|
114
|
+
return {
|
|
115
|
+
bpm: isRecord(item.bpm) && typeof item.bpm.value === "number" ? round(item.bpm.value, 1) : null,
|
|
116
|
+
beats: numbers(isRecord(item.beats) ? item.beats.times : void 0).filter(inside),
|
|
117
|
+
onsets: onsets.filter(isRecord).flatMap(
|
|
118
|
+
(e) => typeof e.t === "number" && typeof e.strength === "number" && inside(e.t) ? [{ t: e.t, strength: e.strength }] : []
|
|
119
|
+
)
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
var LIST_MAX = 64;
|
|
123
|
+
var events_default = defineCommand({
|
|
124
|
+
meta: {
|
|
125
|
+
name: "events",
|
|
126
|
+
description: "When things change on screen: cuts, flashes, appears, disappears, changes and holds; --map adds the sound and the windows worth looking at"
|
|
127
|
+
},
|
|
128
|
+
args: {
|
|
129
|
+
video: videoArg,
|
|
130
|
+
map: {
|
|
131
|
+
type: "boolean",
|
|
132
|
+
description: "The whole window on a 4x4 grid with the sound's onsets and beats, grouped into windows to look at",
|
|
133
|
+
default: false
|
|
134
|
+
},
|
|
135
|
+
roi: roiArg,
|
|
136
|
+
grid: {
|
|
137
|
+
type: "string",
|
|
138
|
+
description: "Split the frame into COLSxROWS cells, e.g. 6x10 (default with --map: 4x4)"
|
|
139
|
+
},
|
|
140
|
+
start: { type: "string", description: "First second (default 0)" },
|
|
141
|
+
end: { type: "string", description: "Last second (default: the end)" },
|
|
142
|
+
thr: {
|
|
143
|
+
type: "string",
|
|
144
|
+
description: "Mean grey-level change of an appear or a cut (default 5)"
|
|
145
|
+
},
|
|
146
|
+
out: outArg,
|
|
147
|
+
json: jsonArg
|
|
148
|
+
},
|
|
149
|
+
async run({ args }) {
|
|
150
|
+
await runMeasure(async () => {
|
|
151
|
+
const { info, roi } = videoAndRoi(args.video, args.roi);
|
|
152
|
+
const [start, end] = window(info, args.start, args.end);
|
|
153
|
+
const grid = args.grid !== void 0 ? parseGrid(args.grid) : args.map && args.roi === void 0 ? { cols: 4, rows: 4 } : void 0;
|
|
154
|
+
const thr = num(args.thr, "--thr", 5);
|
|
155
|
+
const found = detectEvents({ info, start, end, roi, grid, thr });
|
|
156
|
+
if (found.frames < 3)
|
|
157
|
+
throw new Fix(`under 3 frames between ${start}s and ${end}s`, "widen --start/--end");
|
|
158
|
+
const dir = outDir(args.out, "measure/events");
|
|
159
|
+
const name = `events-${start}-${round(end, 2)}s`;
|
|
160
|
+
const strip = found.shown.length ? drawStrip(found, join(dir, `${name}.png`)) : null;
|
|
161
|
+
const holds = found.events.filter((e) => e.type === "hold");
|
|
162
|
+
const head = {
|
|
163
|
+
video: info.path,
|
|
164
|
+
...grid ? { grid: `${grid.cols}x${grid.rows}` } : { roi },
|
|
165
|
+
start,
|
|
166
|
+
end: round(end, 3),
|
|
167
|
+
fps: round(info.fps, 3)
|
|
168
|
+
};
|
|
169
|
+
if (!args.map) {
|
|
170
|
+
const lengths = holds.map((e) => e.seconds ?? 0).sort((a, b) => a - b);
|
|
171
|
+
return {
|
|
172
|
+
...head,
|
|
173
|
+
frames: found.frames,
|
|
174
|
+
thr,
|
|
175
|
+
counts: countEvents(found.events),
|
|
176
|
+
holds: {
|
|
177
|
+
longest_s: lengths.at(-1) ?? 0,
|
|
178
|
+
median_s: lengths[lengths.length - 1 >> 1] ?? 0,
|
|
179
|
+
count: lengths.length
|
|
180
|
+
},
|
|
181
|
+
strip,
|
|
182
|
+
strip_events: `${found.shown.length} of ${found.events.length - holds.length} (cuts and flashes, then the largest steps, then changes)`,
|
|
183
|
+
events: found.events
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
const sound = await soundOf(info, start, end);
|
|
187
|
+
const cuts = found.events.filter((e) => e.type === "cut").map((e) => e.t);
|
|
188
|
+
const edges = [start, ...cuts, end];
|
|
189
|
+
const windows = lookWindows(found.events, info.fps, sound?.onsets.map((o) => o.t) ?? []);
|
|
190
|
+
const file = join(dir, `${name}-map.json`);
|
|
191
|
+
writeFileSync(
|
|
192
|
+
file,
|
|
193
|
+
JSON.stringify({ ...head, events: found.events, sound, windows }, null, 1)
|
|
194
|
+
);
|
|
195
|
+
const strong = sound?.onsets.filter((o) => o.strength >= 0.5).map((o) => round(o.t, 3)) ?? [];
|
|
196
|
+
const longHolds = holds.filter((e) => (e.seconds ?? 0) >= 0.5).map((e) => ({ t: e.t, seconds: e.seconds }));
|
|
197
|
+
return {
|
|
198
|
+
...head,
|
|
199
|
+
duration: round(end - start, 3),
|
|
200
|
+
counts: countEvents(found.events),
|
|
201
|
+
shots: edges.slice(1).map((e, i) => ({ start: round(edges[i], 3), end: round(e, 3) })),
|
|
202
|
+
holds: longHolds,
|
|
203
|
+
sound: sound ? {
|
|
204
|
+
bpm: sound.bpm,
|
|
205
|
+
beats: sound.beats.length,
|
|
206
|
+
...sound.beats.length ? { beat_times: sound.beats.slice(0, LIST_MAX).map((t) => round(t, 3)) } : {},
|
|
207
|
+
onsets: sound.onsets.length,
|
|
208
|
+
strong_onsets: strong.slice(0, LIST_MAX)
|
|
209
|
+
} : "none",
|
|
210
|
+
windows,
|
|
211
|
+
strip,
|
|
212
|
+
file,
|
|
213
|
+
next: "look at each window's frames: npx hyperframes measure frames <video> --events"
|
|
214
|
+
};
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
export {
|
|
219
|
+
events_default as default,
|
|
220
|
+
examples
|
|
221
|
+
};
|