hyperframes 0.8.224 → 0.8.226
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-JEPKJ2F4.js → add-3NBOSGKQ.js} +12 -12
- package/dist/{agentPromptGenerator-ZBNWLX5D.js → agentPromptGenerator-GQSDTAV5.js} +7 -7
- package/dist/{animatedGifPrep-43LLMTN5.js → animatedGifPrep-UXFFDGA7.js} +7 -7
- package/dist/api.js +23 -23
- package/dist/{asset-M6SH6PUW.js → asset-VQVAYC7E.js} +2 -2
- package/dist/{assetCataloger-BLQ7UVJ5.js → assetCataloger-C6KNE2IQ.js} +8 -8
- package/dist/{audio-J3QREJK4.js → audio-2KULGXHA.js} +17 -17
- package/dist/{auth-7TRCBCKA.js → auth-QNMLPJOW.js} +5 -5
- package/dist/{autoUpdate-WTFSYLTK.js → autoUpdate-VFQQ47UD.js} +2 -2
- package/dist/{backgroundChecks-YZW7AMMJ.js → backgroundChecks-SSQ2U3ZY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-LDZ6NO2X.js → batchRender-Y45PZC3Q.js} +3 -3
- package/dist/{beats-JWUADKHV.js → beats-YSJT4NUG.js} +10 -10
- package/dist/{benchmark-QOQZ7UGD.js → benchmark-6UOMMUXF.js} +9 -9
- package/dist/{billing-3GVNEE56.js → billing-WNOAP6KO.js} +4 -4
- package/dist/{browser-4HNCSPUR.js → browser-GM4ZTCRQ.js} +4 -4
- package/dist/{bundleWithLocalizedFonts-GTKHB45M.js → bundleWithLocalizedFonts-CUTSKVRK.js} +2 -2
- package/dist/{capture-5OYZNIOR.js → capture-J24XSJTZ.js} +17 -17
- package/dist/{capture-XSRWYHAM.js → capture-SZ65WG5Z.js} +3 -3
- package/dist/{captureCompositionFrame-4F7PPQKB.js → captureCompositionFrame-5UUXIOF2.js} +13 -12
- package/dist/{catalog-4FVQSID5.js → catalog-5EQFE3BC.js} +12 -12
- package/dist/{catch-up-KQVK2QZC.js → catch-up-ASBRKHDL.js} +5 -5
- package/dist/{check-3YHLB6FM.js → check-BA4SSXPY.js} +39 -38
- package/dist/{checkAudio-7ZSZVBSJ.js → checkAudio-TU4GPHIR.js} +10 -10
- package/dist/{checkBrowser-VX5CHNQS.js → checkBrowser-27SFNNPD.js} +33 -32
- package/dist/chunk-262C25DQ.js +31 -0
- package/dist/{chunk-AKMY4QVI.js → chunk-2GTFW4MK.js} +9 -1
- package/dist/{chunk-2QQO3J3B.js → chunk-2IQONCMF.js} +7 -7
- package/dist/{chunk-OZMZFJDW.js → chunk-2JBCK6DX.js} +1 -1
- package/dist/{chunk-K3QT232E.js → chunk-35LAWHTD.js} +23 -6
- package/dist/{chunk-GLTSINRP.js → chunk-37PS2IPO.js} +1 -1
- package/dist/{chunk-2WVQ3CCN.js → chunk-3V3XMQEF.js} +1 -1
- package/dist/{chunk-7RTPHNOO.js → chunk-3XYDZQJF.js} +7 -4
- package/dist/{chunk-BEMGUGGJ.js → chunk-3ZWUNOTS.js} +1 -1
- package/dist/{chunk-RR5QE7DB.js → chunk-4XYLQYUE.js} +18 -14
- package/dist/{chunk-Z7GIHPAZ.js → chunk-53ZOVLGJ.js} +2 -2
- package/dist/{chunk-F34GYYXO.js → chunk-5TXYCG4M.js} +6 -6
- package/dist/{chunk-BTK3T4HJ.js → chunk-5X65O5WM.js} +10 -3
- package/dist/{chunk-QOI46C6F.js → chunk-6AEHVBMX.js} +2 -2
- package/dist/{chunk-3ZDOAVZM.js → chunk-6CU2ZQGW.js} +147 -22
- package/dist/{chunk-L4ULTWCD.js → chunk-6EQSJ7MT.js} +1 -1
- package/dist/{chunk-VLA6UJGH.js → chunk-6NJVSTSY.js} +5 -6
- package/dist/{chunk-HDPW7THH.js → chunk-76N526VX.js} +13 -13
- package/dist/{chunk-3NHCTTLP.js → chunk-7LUZ4RQX.js} +13 -13
- package/dist/{chunk-NFUR6NNT.js → chunk-7UKRCWBO.js} +310 -134
- package/dist/{chunk-GE4ABM5K.js → chunk-7WNPWUJP.js} +3 -3
- package/dist/{chunk-RU7KMDFL.js → chunk-A23K6P7L.js} +1 -1
- package/dist/{chunk-MOXNAVCW.js → chunk-ABNPD4NF.js} +1 -1
- package/dist/{chunk-THL3N377.js → chunk-AMTAKSKJ.js} +9 -9
- package/dist/{chunk-UCPEABYK.js → chunk-APCGOECM.js} +2 -2
- package/dist/{chunk-CGX4EOGT.js → chunk-B243Y7MM.js} +3 -3
- package/dist/{chunk-A25SCSOK.js → chunk-B52P2FU2.js} +1 -1
- package/dist/{chunk-2KDHJCH2.js → chunk-B7OI3WAR.js} +1 -1
- package/dist/{chunk-J7FVF73D.js → chunk-BD2CQDXP.js} +18 -18
- package/dist/{chunk-JMP52GTN.js → chunk-BJ3Q3XK7.js} +313 -149
- package/dist/{chunk-H6APAFKE.js → chunk-CRIVUWLA.js} +2 -2
- package/dist/{chunk-5KAGTSLY.js → chunk-CU3SVSKX.js} +5 -5
- package/dist/{chunk-ZLZXGJ63.js → chunk-DGQOBTFQ.js} +1 -1
- package/dist/{chunk-53JEHQBW.js → chunk-DW7W4J7D.js} +2 -2
- package/dist/{chunk-GQ2QER6M.js → chunk-EJEHDDVX.js} +1 -1
- package/dist/{chunk-35NDLXHZ.js → chunk-EQGBGOQQ.js} +9 -9
- package/dist/{chunk-JKLWWGE6.js → chunk-ETH6WXKZ.js} +1 -1
- package/dist/{chunk-F3CTUCFD.js → chunk-EYDV3MHA.js} +7 -7
- package/dist/{chunk-HIPW4JXL.js → chunk-GADKBSZ5.js} +2 -2
- package/dist/{chunk-HT3D5AKG.js → chunk-GR2T3BOX.js} +6 -5
- package/dist/{chunk-X5BSSPC2.js → chunk-GUJ45PRX.js} +1 -1
- package/dist/chunk-HSXV7QPC.js +177 -0
- package/dist/{chunk-AMQFGICP.js → chunk-HYB3WSJL.js} +1 -1
- package/dist/{chunk-JIF347PW.js → chunk-JE5ZPFN2.js} +3 -3
- package/dist/{chunk-52B3AOIV.js → chunk-JIYNPDH6.js} +1 -1
- package/dist/{chunk-4ZAOAPWP.js → chunk-KQARKGEJ.js} +16 -11
- package/dist/{chunk-G45NYKSM.js → chunk-LVV5EUSO.js} +3 -3
- package/dist/{chunk-5N5FYE5K.js → chunk-MF6KVPWF.js} +3 -3
- package/dist/{chunk-6QIYQ43G.js → chunk-MWQNQA77.js} +2 -2
- package/dist/{chunk-F7T57BZZ.js → chunk-OMT75FQI.js} +3 -2
- package/dist/{chunk-VPMHRLJH.js → chunk-OQYGHP3E.js} +1 -1
- package/dist/{chunk-EQFDOQTG.js → chunk-OSCRZUEB.js} +1 -1
- package/dist/{chunk-E47ZWDMH.js → chunk-P7TDUSPH.js} +1 -1
- package/dist/{chunk-34GAW4GO.js → chunk-PCH3O6I6.js} +5 -5
- package/dist/{chunk-IYYQRNIZ.js → chunk-PHUTMTHB.js} +1 -1
- package/dist/{chunk-POOLZTMZ.js → chunk-PVBSCPZI.js} +3 -3
- package/dist/{chunk-MA5AQK7T.js → chunk-PWHOMCFB.js} +2 -2
- package/dist/{chunk-PKMAWQUI.js → chunk-PXSCN6X5.js} +4 -4
- package/dist/{chunk-HANNA5JJ.js → chunk-PZ6VVOOE.js} +1 -1
- package/dist/{chunk-JUF43Q7Q.js → chunk-QSWUM7WR.js} +3 -6
- package/dist/{chunk-O2VKGYSK.js → chunk-RBYSMHB7.js} +1 -1
- package/dist/{chunk-UZ5AWZCA.js → chunk-RKDMYKGL.js} +1 -1
- package/dist/{chunk-QK6ZNEBW.js → chunk-RRT5S42U.js} +1 -1
- package/dist/{chunk-SGMCQAYU.js → chunk-S4UDVFAN.js} +3 -3
- package/dist/{chunk-KEDN4LSV.js → chunk-TFJSU4IV.js} +2 -2
- package/dist/{chunk-W7MJPKBJ.js → chunk-U6LQ4BTL.js} +1 -1
- package/dist/{chunk-VCJE7IMY.js → chunk-UIJLEBHQ.js} +1 -1
- package/dist/{chunk-ODJ2WBZX.js → chunk-UXHGYMX4.js} +1 -1
- package/dist/{chunk-VXRBPWVW.js → chunk-V2N747YM.js} +7 -7
- package/dist/{chunk-QOYZ3U6G.js → chunk-V4SD6HQ6.js} +2 -3
- package/dist/{chunk-53TKUWDX.js → chunk-VB77RRT7.js} +1 -1
- package/dist/{chunk-IORJ42GY.js → chunk-VUDMPRZN.js} +5 -6
- package/dist/{chunk-E2ZY4GWH.js → chunk-WESIEW2M.js} +3 -25
- package/dist/{chunk-D4M37ATV.js → chunk-WGVREWKN.js} +2 -2
- package/dist/{chunk-FJ3KUOUZ.js → chunk-XCGPPU32.js} +1 -1
- package/dist/{chunk-2M6B2JKZ.js → chunk-XDTRM4OS.js} +4 -4
- package/dist/{chunk-JK2KNL6F.js → chunk-XH7SSJSQ.js} +1 -1
- package/dist/chunk-XINVBLXA.js +5030 -0
- package/dist/{chunk-7HSV5SJ4.js → chunk-XOFJZ3UG.js} +1 -1
- package/dist/{chunk-BAXL3U3T.js → chunk-Y2NSHQVE.js} +2 -2
- package/dist/{chunk-NI35PAVN.js → chunk-YTQSLNIA.js} +1 -1
- package/dist/{chunk-LRS4FV5W.js → chunk-Z257R7TN.js} +1 -1
- package/dist/{chunk-ZGQC6IU7.js → chunk-ZI64CTVC.js} +1 -1
- package/dist/{chunk-Y5HVDK7X.js → chunk-ZJE2XWQC.js} +2 -2
- package/dist/{chunk-652ERUZD.js → chunk-ZNXUM4D2.js} +2 -2
- package/dist/{clean-SXEI6FT4.js → clean-X5VL4ILR.js} +17 -17
- package/dist/cli.js +57 -57
- package/dist/{cloud-SKN6FWAZ.js → cloud-4GUUYRD3.js} +4 -4
- package/dist/{cloudrun-RHPVVXCR.js → cloudrun-KPL32MBI.js} +4 -4
- package/dist/{compare-RTXF2NSK.js → compare-CVEB5SQC.js} +30 -29
- package/dist/{compiler-SKRY6FPA.js → compiler-RRTQNBUH.js} +4 -4
- package/dist/{component-2NPF5PA6.js → component-TZ2SIYOX.js} +3 -3
- package/dist/{compositions-AZRVHGBT.js → compositions-KRTRDV72.js} +12 -12
- package/dist/{curve-QSFEGBUH.js → curve-ZXUAGU4T.js} +11 -11
- package/dist/{cuts-6AWEJH2H.js → cuts-GY2K2CTK.js} +20 -15
- package/dist/{delete-NOHFVICL.js → delete-ZT4FCUX2.js} +6 -6
- package/dist/{deploy-UFRADJOA.js → deploy-DVKSQTC7.js} +1 -1
- package/dist/{describeProject-F43LI3YQ.js → describeProject-L4ZW5CI7.js} +8 -8
- package/dist/{diff-3WS6NMSE.js → diff-AFOP2B3Y.js} +89 -229
- package/dist/{dist-24QQO5IL.js → dist-DCP77RWC.js} +2 -2
- package/dist/{dist-YEYUGCOR.js → dist-DPOLFG5U.js} +2 -2
- package/dist/{doctor-F4VJYQXC.js → doctor-Y7YVL34W.js} +11 -11
- package/dist/{energy-BN3QD6Y7.js → energy-YFLFELFX.js} +12 -12
- package/dist/{events-PZH4C7VA.js → events-C5QV2MQG.js} +3 -3
- package/dist/{events-5W7ETFWR.js → events-THASMGN6.js} +14 -14
- package/dist/{events-YJ3XSIPL.js → events-VL7JKI2K.js} +4 -4
- package/dist/{extract-S34DWGAD.js → extract-GTNBVQ63.js} +15 -19
- package/dist/{face-3SCJADG4.js → face-BSRKCB5W.js} +12 -12
- package/dist/{feedback-3K6NSKIC.js → feedback-MCQ2FKCC.js} +11 -11
- package/dist/{ffmpeg-2RBDDMHU.js → ffmpeg-3QNN3TQ5.js} +7 -7
- package/dist/{figma-NWAJYMAI.js → figma-IGXE3KWU.js} +3 -3
- package/dist/fontLocalizeCli.js +10 -10
- package/dist/{frames-6UARLPLK.js → frames-XIFLB5KC.js} +13 -13
- package/dist/{generate-KBVWFVXN.js → generate-55FZPR3J.js} +18 -18
- package/dist/{get-SEZZMLQ3.js → get-2MHD7XFA.js} +6 -6
- package/dist/{gpuPolicy-VIZAJ3GY.js → gpuPolicy-REJFNHWD.js} +7 -7
- package/dist/{grade-compare-PMAK4PJD.js → grade-compare-CM45H7CR.js} +31 -30
- package/dist/{heifImagePrep-6NYIR7WN.js → heifImagePrep-O3UZHGWR.js} +8 -8
- package/dist/{help-4UPSHWI2.js → help-V2GGIKP2.js} +1 -1
- package/dist/{history-VNAZEQDE.js → history-NUOQVUNY.js} +7 -7
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-OREET5PM.js → info-5CMRZEJA.js} +8 -8
- package/dist/{init-K7AEJBAL.js → init-JNL5R27I.js} +28 -28
- package/dist/ink-HGQUC6L3.js +148 -0
- package/dist/{inspect-STME5DNY.js → inspect-GGOCM324.js} +31 -30
- package/dist/{installer-NQA4KXRP.js → installer-BBY3T5MJ.js} +4 -4
- package/dist/{keyframes-JQWZ235Q.js → keyframes-2D4ZS6HE.js} +8 -8
- package/dist/{lambda-RJNLW2EO.js → lambda-TY2ZCPEN.js} +11 -11
- package/dist/{layout-MTZWBPNZ.js → layout-X5GT4O2L.js} +31 -30
- package/dist/{lint-AQWTSL75.js → lint-NVOUXE2L.js} +9 -9
- package/dist/{lintProject-6H64SX3V.js → lintProject-54CNQ4HT.js} +2 -2
- package/dist/{list-ZEBZ5DB5.js → list-CB4UDTID.js} +6 -6
- package/dist/{localPage-CQ3H4N2N.js → localPage-EYPZRIGY.js} +7 -7
- package/dist/{login-VHCZHENV.js → login-L7JTVKV5.js} +7 -7
- package/dist/{logout-LHTQV2BZ.js → logout-6CEIH4HW.js} +3 -3
- package/dist/{look-25TSRPSV.js → look-VHQA2JSS.js} +12 -12
- package/dist/{manager-57SX7D5G.js → manager-FGQKQMI7.js} +8 -8
- package/dist/{measure-Y2R3G5OJ.js → measure-5F7QZLO5.js} +12 -11
- package/dist/{media-treatment-3G2IVS64.js → media-treatment-RRFIZKSA.js} +14 -14
- package/dist/{media-use-LUAOZJNV.js → media-use-5YGFOFKI.js} +3 -3
- package/dist/{models-NT56FKRG.js → models-5B2RGGBT.js} +11 -11
- package/dist/{motionShot-P4NTFKYS.js → motionShot-JJBQLYCC.js} +16 -15
- package/dist/{normalize-audio-2DUTZ6QK.js → normalize-audio-LWTNZWDJ.js} +10 -10
- package/dist/{open-OATYOOR7.js → open-PGRJXREV.js} +12 -12
- package/dist/{parakeetRunner-UASHW3A4.js → parakeetRunner-OV4NSPB3.js} +12 -12
- package/dist/{pipeline-GGAYP5Q6.js → pipeline-HXGPFQZC.js} +10 -10
- package/dist/{play-GHXBJS3T.js → play-JONX6CIM.js} +21 -21
- package/dist/{preflight-6VOP3IOI.js → preflight-7OKMMUWG.js} +8 -8
- package/dist/{present-M7UYHVEZ.js → present-EHU52MSU.js} +17 -17
- package/dist/{preview-YWT5WA3W.js → preview-DCEIITM6.js} +19 -19
- package/dist/{probe-CQAGZJLP.js → probe-EA4N3WOT.js} +11 -11
- package/dist/{producer-OU2BCMLY.js → producer-FGAOUR7O.js} +1 -1
- package/dist/{projectConfig-UI4NZDN7.js → projectConfig-N3ZRVJKB.js} +6 -6
- package/dist/{publication-VPJZQCLA.js → publication-ZKY2LVN5.js} +2 -2
- package/dist/{publish-7RA2MK2M.js → publish-RZVDFTBX.js} +15 -15
- package/dist/{refresh-AM2ULRRV.js → refresh-MQTO43RB.js} +3 -3
- package/dist/{remove-background-A5KJUH6W.js → remove-background-V5UXYPJS.js} +11 -11
- package/dist/{render-EMW4I6C6.js → render-NEZLBRAY.js} +37 -35
- package/dist/{render-IYV73CG6.js → render-UJCPQXGB.js} +5 -5
- package/dist/{render-Z5IS4AUP.js → render-YZSDHP3U.js} +60 -27
- package/dist/{render-batch-IN2ZXPS7.js → render-batch-KPGYARDI.js} +5 -5
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-DIXFK5ZR.js → resolver-HWNPLSXK.js} +4 -4
- package/dist/{run-MCVU7AZX.js → run-OJ2GBYKB.js} +4 -4
- package/dist/{sherpa-SAY3I7PK.js → sherpa-HSBYKUQC.js} +11 -11
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +3 -9
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +6 -4
- package/dist/skills/media-use/scripts/lib/logo-provider.mjs +8 -3
- package/dist/skills/media-use/scripts/lib/logo-provider.test.mjs +14 -0
- package/dist/skills/media-use/scripts/resolve.mjs +11 -5
- package/dist/{skills-YWQ5XKH6.js → skills-CW23U675.js} +6 -6
- package/dist/{skillsUpdateCheck-ST5ZFEET.js → skillsUpdateCheck-LGBNNYLI.js} +3 -3
- package/dist/{snapshot-57YYYE5J.js → snapshot-RK7ED6DW.js} +47 -38
- package/dist/{src-LNSJHD25.js → src-KORQVG7O.js} +10 -6
- package/dist/{src-7MEBCSTP.js → src-ZDLQFZ4B.js} +9 -9
- package/dist/{staticProjectServer-TTJSAB2Q.js → staticProjectServer-TFWT5G2L.js} +18 -18
- package/dist/{status-FGXBUX2T.js → status-6WAZ5EBM.js} +5 -5
- package/dist/studio/assets/{hyperframes-player-Bzcd9O2g.js → hyperframes-player-qeY0knUZ.js} +3 -3
- package/dist/studio/assets/{index-LW6kxYVF.js → index-B9O4nOYD.js} +1 -1
- package/dist/studio/assets/{index-CZI-XmnO.js → index-BhZkOhf2.js} +174 -174
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-57E36S5N.js → studio-api-OIZEPWHS.js} +10 -10
- package/dist/{studioServer-2AIRUNBA.js → studioServer-62MG7LJR.js} +50 -49
- package/dist/{sync-52GUXEYZ.js → sync-Q3XYLXTX.js} +12 -12
- package/dist/{telemetry-RVY6RSCD.js → telemetry-3YDPEGQK.js} +4 -4
- package/dist/{timeline-MMZF4AX3.js → timeline-VDLKFZZ7.js} +19 -19
- package/dist/{tokens-WGWCYFTY.js → tokens-ZZ4G2VKC.js} +2 -2
- package/dist/{transcribe-YYDHXRQW.js → transcribe-2D6UIVAE.js} +10 -10
- package/dist/{transcribe-6BF5FFPV.js → transcribe-OYRCZUZM.js} +22 -22
- package/dist/{updateCheck-AAR5LLUF.js → updateCheck-ZRG5DR74.js} +2 -2
- package/dist/{upgrade-Y7CIRL4B.js → upgrade-ZU6BHCTC.js} +2 -2
- package/dist/{urlDownloader-KZOD7EWX.js → urlDownloader-5WPUC6C6.js} +6 -6
- package/dist/{validate-K3PHAA2E.js → validate-OZRPF6YZ.js} +25 -24
- package/dist/{video-Z6EBVCAT.js → video-N2KXXYS3.js} +8 -8
- package/dist/warmCheck.js +39 -38
- package/package.json +1 -1
- package/dist/chunk-6UWSEXQ3.js +0 -5030
|
@@ -7,32 +7,39 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
compareEnergy,
|
|
9
9
|
energyCurve
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RRT5S42U.js";
|
|
11
|
+
import {
|
|
12
|
+
contrast,
|
|
13
|
+
drawnFrames,
|
|
14
|
+
drawnVerdict,
|
|
15
|
+
readDrawn,
|
|
16
|
+
scoreDrawnFrame
|
|
17
|
+
} from "./chunk-HSXV7QPC.js";
|
|
11
18
|
import {
|
|
12
19
|
compareLook,
|
|
13
20
|
look,
|
|
14
21
|
sameLook
|
|
15
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-EJEHDDVX.js";
|
|
16
23
|
import {
|
|
17
24
|
faceBoxes
|
|
18
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UXHGYMX4.js";
|
|
19
26
|
import {
|
|
20
27
|
avSync
|
|
21
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3V3XMQEF.js";
|
|
22
29
|
import {
|
|
23
30
|
parseMask,
|
|
24
31
|
repeated
|
|
25
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-6CU2ZQGW.js";
|
|
26
33
|
import {
|
|
34
|
+
classifiedCuts,
|
|
27
35
|
confirmsCut,
|
|
28
|
-
cutsIn,
|
|
29
36
|
frameChanges,
|
|
30
37
|
signatures
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-35LAWHTD.js";
|
|
39
|
+
import "./chunk-OMT75FQI.js";
|
|
33
40
|
import "./chunk-NO6F7CLR.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-CU3SVSKX.js";
|
|
42
|
+
import "./chunk-QSWUM7WR.js";
|
|
36
43
|
import {
|
|
37
44
|
Fix,
|
|
38
45
|
decode,
|
|
@@ -47,13 +54,13 @@ import {
|
|
|
47
54
|
runFfmpeg,
|
|
48
55
|
videoClip,
|
|
49
56
|
writeImage
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-5X65O5WM.js";
|
|
58
|
+
import "./chunk-3ZWUNOTS.js";
|
|
59
|
+
import "./chunk-V4SD6HQ6.js";
|
|
53
60
|
import "./chunk-RZ6CXJ56.js";
|
|
54
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-PZ6VVOOE.js";
|
|
55
62
|
import "./chunk-A4ZTSQLW.js";
|
|
56
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-6NJVSTSY.js";
|
|
57
64
|
import {
|
|
58
65
|
defineCommand
|
|
59
66
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -61,15 +68,15 @@ import "./chunk-S3S4TGEH.js";
|
|
|
61
68
|
import {
|
|
62
69
|
c
|
|
63
70
|
} from "./chunk-2GICKZ3I.js";
|
|
64
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-7UKRCWBO.js";
|
|
65
72
|
import "./chunk-Z5J67X44.js";
|
|
66
73
|
import "./chunk-5S7W3TUO.js";
|
|
67
74
|
import "./chunk-D3MUHMFG.js";
|
|
68
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-3XYDZQJF.js";
|
|
69
76
|
import "./chunk-YWRUQ7XZ.js";
|
|
70
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-XCGPPU32.js";
|
|
71
78
|
import "./chunk-MEJH7VEA.js";
|
|
72
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-XINVBLXA.js";
|
|
73
80
|
import "./chunk-VC76R6W2.js";
|
|
74
81
|
import "./chunk-OFQWTKPW.js";
|
|
75
82
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -80,9 +87,9 @@ import "./chunk-X6JUUQCM.js";
|
|
|
80
87
|
import "./chunk-KGPLIH7B.js";
|
|
81
88
|
import "./chunk-K4MJX7SR.js";
|
|
82
89
|
import "./chunk-WE42NVH7.js";
|
|
83
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-GR2T3BOX.js";
|
|
84
91
|
import "./chunk-HYRPH6LL.js";
|
|
85
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-2GTFW4MK.js";
|
|
86
93
|
import "./chunk-CZGHFATT.js";
|
|
87
94
|
import "./chunk-C2KEGBR3.js";
|
|
88
95
|
import "./chunk-T5ELONXY.js";
|
|
@@ -95,18 +102,19 @@ import "./chunk-WC4MTXGN.js";
|
|
|
95
102
|
import "./chunk-FBN2M2HK.js";
|
|
96
103
|
import {
|
|
97
104
|
withMeta
|
|
98
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-B7OI3WAR.js";
|
|
99
106
|
import "./chunk-BR2JQQC5.js";
|
|
100
107
|
import "./chunk-BLBMPEBX.js";
|
|
101
108
|
import "./chunk-ISN5GRYI.js";
|
|
102
109
|
import "./chunk-ADVVQX4I.js";
|
|
103
110
|
import {
|
|
104
111
|
failCommand,
|
|
112
|
+
scheduleCliExit,
|
|
105
113
|
setCommandExitCode
|
|
106
114
|
} from "./chunk-66W5IWLO.js";
|
|
107
115
|
import "./chunk-J3RXEDR2.js";
|
|
108
116
|
import "./chunk-QBXDU24O.js";
|
|
109
|
-
import "./chunk-
|
|
117
|
+
import "./chunk-PWHOMCFB.js";
|
|
110
118
|
import {
|
|
111
119
|
normalizeErrorMessage
|
|
112
120
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -116,185 +124,27 @@ import "./chunk-7KDQAD2W.js";
|
|
|
116
124
|
import "./chunk-M2WBOQ2Q.js";
|
|
117
125
|
|
|
118
126
|
// src/commands/diff.ts
|
|
119
|
-
import { basename as basename2, extname, join as
|
|
127
|
+
import { basename as basename2, extname, join as join3, resolve as resolve2 } from "path";
|
|
120
128
|
|
|
121
129
|
// src/measure/diff.ts
|
|
122
130
|
import {
|
|
123
131
|
copyFileSync,
|
|
124
132
|
existsSync as existsSync2,
|
|
125
133
|
mkdirSync,
|
|
126
|
-
mkdtempSync as
|
|
134
|
+
mkdtempSync as mkdtempSync2,
|
|
127
135
|
readdirSync,
|
|
128
|
-
readFileSync as
|
|
129
|
-
rmSync as
|
|
136
|
+
readFileSync as readFileSync2,
|
|
137
|
+
rmSync as rmSync2,
|
|
130
138
|
statSync,
|
|
131
139
|
writeFileSync
|
|
132
140
|
} from "fs";
|
|
133
|
-
import { tmpdir as
|
|
134
|
-
import { basename, dirname, join as
|
|
141
|
+
import { tmpdir as tmpdir2 } from "os";
|
|
142
|
+
import { basename, dirname, join as join2, resolve } from "path";
|
|
135
143
|
|
|
136
|
-
// src/measure/
|
|
137
|
-
import { mkdtempSync, readFileSync, rmSync } from "fs";
|
|
144
|
+
// src/measure/person.ts
|
|
145
|
+
import { existsSync, mkdtempSync, readFileSync, rmSync } from "fs";
|
|
138
146
|
import { tmpdir } from "os";
|
|
139
147
|
import { join } from "path";
|
|
140
|
-
var DRAWN_MIN_MEAN = 0.8;
|
|
141
|
-
var DRAWN_MIN_P05 = 0.65;
|
|
142
|
-
var INK_CONTRAST = 60;
|
|
143
|
-
var MATCH_COLOUR = 45;
|
|
144
|
-
var ALIGN = 3;
|
|
145
|
-
var MIN_INK = 30;
|
|
146
|
-
var MAX_FPS = 10;
|
|
147
|
-
function contrast(px, w, h) {
|
|
148
|
-
const bs = Math.max(4, Math.floor(Math.max(8, Math.floor(h / 2)) / 2));
|
|
149
|
-
const [gw, gh] = [Math.ceil(w / bs), Math.ceil(h / bs)];
|
|
150
|
-
const med = new Float32Array(gw * gh * 3);
|
|
151
|
-
const hist = new Uint32Array(256);
|
|
152
|
-
for (let by = 0; by < gh; by++)
|
|
153
|
-
for (let bx = 0; bx < gw; bx++) {
|
|
154
|
-
const [x0, x1] = [Math.max(0, (bx - 1) * bs), Math.min(w, (bx + 2) * bs)];
|
|
155
|
-
const [y0, y1] = [Math.max(0, (by - 1) * bs), Math.min(h, (by + 2) * bs)];
|
|
156
|
-
const half = (x1 - x0) * (y1 - y0) / 2;
|
|
157
|
-
for (let c2 = 0; c2 < 3; c2++) {
|
|
158
|
-
hist.fill(0);
|
|
159
|
-
for (let y = y0; y < y1; y++)
|
|
160
|
-
for (let x = x0; x < x1; x++) hist[px[(y * w + x) * 3 + c2]]++;
|
|
161
|
-
let [v, seen] = [0, 0];
|
|
162
|
-
while (v < 255 && seen + hist[v] < half) seen += hist[v++];
|
|
163
|
-
med[(by * gw + bx) * 3 + c2] = v;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
const out = new Float32Array(w * h);
|
|
167
|
-
for (let y = 0; y < h; y++)
|
|
168
|
-
for (let x = 0; x < w; x++) {
|
|
169
|
-
const [o, m] = [(y * w + x) * 3, (Math.floor(y / bs) * gw + Math.floor(x / bs)) * 3];
|
|
170
|
-
out[y * w + x] = Math.hypot(
|
|
171
|
-
px[o] - med[m],
|
|
172
|
-
px[o + 1] - med[m + 1],
|
|
173
|
-
px[o + 2] - med[m + 2]
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
return out;
|
|
177
|
-
}
|
|
178
|
-
var inkOf = (px, w, h) => {
|
|
179
|
-
const c2 = contrast(px, w, h);
|
|
180
|
-
return Uint8Array.from(c2, (v) => v > INK_CONTRAST ? 1 : 0);
|
|
181
|
-
};
|
|
182
|
-
function scoreDrawnFrame(a, b, w, h) {
|
|
183
|
-
const [ia, ib] = [inkOf(a, w, h), inkOf(b, w, h)];
|
|
184
|
-
const [na, nb] = [ia.reduce((s, v) => s + v, 0), ib.reduce((s, v) => s + v, 0)];
|
|
185
|
-
if (na + nb < MIN_INK) return { score: null, offset: [0, 0], inkOriginal: na, inkYours: nb };
|
|
186
|
-
let mostOverlappingShift = { iou: -1, dx: 0, dy: 0 };
|
|
187
|
-
for (let dy = -ALIGN; dy <= ALIGN; dy++)
|
|
188
|
-
for (let dx = -ALIGN; dx <= ALIGN; dx++) {
|
|
189
|
-
let [both, either] = [0, 0];
|
|
190
|
-
for (let y = 0; y < h; y++) {
|
|
191
|
-
const sy = y - dy;
|
|
192
|
-
for (let x = 0; x < w; x++) {
|
|
193
|
-
const sx = x - dx;
|
|
194
|
-
const vb = sy >= 0 && sy < h && sx >= 0 && sx < w ? ib[sy * w + sx] : 0;
|
|
195
|
-
const va = ia[y * w + x];
|
|
196
|
-
both += va & vb;
|
|
197
|
-
either += va | vb;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
const iou = either ? both / either : 0;
|
|
201
|
-
if (iou > mostOverlappingShift.iou) mostOverlappingShift = { iou, dx, dy };
|
|
202
|
-
}
|
|
203
|
-
const at = (x, y) => (Math.min(h - 1, Math.max(0, y)) * w + Math.min(w - 1, Math.max(0, x))) * 3;
|
|
204
|
-
const near = (p, o, q, x, y) => {
|
|
205
|
-
for (let ry = -1; ry <= 1; ry++)
|
|
206
|
-
for (let rx = -1; rx <= 1; rx++) {
|
|
207
|
-
const k = at(x + rx, y + ry);
|
|
208
|
-
if (Math.hypot(p[o] - q[k], p[o + 1] - q[k + 1], p[o + 2] - q[k + 2]) < MATCH_COLOUR)
|
|
209
|
-
return true;
|
|
210
|
-
}
|
|
211
|
-
return false;
|
|
212
|
-
};
|
|
213
|
-
let [hitA, hitB, inkA, inkB] = [0, 0, 0, 0];
|
|
214
|
-
for (let y = 0; y < h; y++)
|
|
215
|
-
for (let x = 0; x < w; x++) {
|
|
216
|
-
const i = y * w + x;
|
|
217
|
-
const [sx, sy] = [x - mostOverlappingShift.dx, y - mostOverlappingShift.dy];
|
|
218
|
-
const inB = sy >= 0 && sy < h && sx >= 0 && sx < w && ib[sy * w + sx] === 1;
|
|
219
|
-
if (ia[i]) {
|
|
220
|
-
inkA++;
|
|
221
|
-
if (near(a, i * 3, b, sx, sy)) hitA++;
|
|
222
|
-
}
|
|
223
|
-
if (inB) {
|
|
224
|
-
inkB++;
|
|
225
|
-
if (near(b, at(sx, sy), a, x, y)) hitB++;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
const [recall, precision] = [inkA ? hitA / inkA : 0, inkB ? hitB / inkB : 0];
|
|
229
|
-
return {
|
|
230
|
-
score: recall + precision ? 2 * recall * precision / (recall + precision) : 0,
|
|
231
|
-
offset: [0 - mostOverlappingShift.dx, 0 - mostOverlappingShift.dy],
|
|
232
|
-
inkOriginal: na,
|
|
233
|
-
inkYours: nb
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
var median = (v) => [...v].sort((x, y) => x - y)[v.length >> 1] ?? 0;
|
|
237
|
-
function drawnVerdict(box, window, frames) {
|
|
238
|
-
const head = { box, window, frames: frames.length };
|
|
239
|
-
const scored = frames.flatMap((f) => f.score === null ? [] : [f]);
|
|
240
|
-
if (!scored.length) return { ...head, pass: null };
|
|
241
|
-
const sorted = scored.map((f) => f.score).sort((x, y) => x - y);
|
|
242
|
-
const mean = sorted.reduce((s, v) => s + v, 0) / sorted.length;
|
|
243
|
-
const p05 = sorted[Math.min(sorted.length - 1, Math.floor(0.05 * sorted.length))];
|
|
244
|
-
const both = scored.filter((f) => f.inkOriginal >= MIN_INK && f.inkYours >= MIN_INK);
|
|
245
|
-
return {
|
|
246
|
-
...head,
|
|
247
|
-
pass: mean >= DRAWN_MIN_MEAN && p05 >= DRAWN_MIN_P05,
|
|
248
|
-
score: round(mean, 3),
|
|
249
|
-
p05: round(p05, 3),
|
|
250
|
-
offset: [median(scored.map((f) => f.offset[0])), median(scored.map((f) => f.offset[1]))],
|
|
251
|
-
...both.length ? { ink: round(median(both.map((f) => f.inkYours / f.inkOriginal)), 2) } : {}
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
function readDrawn(clip, jobs, width, height) {
|
|
255
|
-
if (!jobs.length) return [];
|
|
256
|
-
const work = mkdtempSync(join(tmpdir(), "hf-diff-drawn-"));
|
|
257
|
-
try {
|
|
258
|
-
const tags = jobs.map((_, j) => `[d${j}]`).join("");
|
|
259
|
-
const graph = [
|
|
260
|
-
`[0:v]${[...clip.filters, "setsar=1", `scale=${width}:${height}:flags=bicubic`].join(",")},split=${jobs.length}${tags}`,
|
|
261
|
-
...jobs.map(({ box: [x, y, w, h], frames }, j) => {
|
|
262
|
-
const pick = frames.map((k) => `eq(n\\,${k})`).join("+");
|
|
263
|
-
return `[d${j}]select=${pick},crop=${w}:${h}:${x}:${y},format=rgb24[e${j}]`;
|
|
264
|
-
})
|
|
265
|
-
].join(";");
|
|
266
|
-
const outs = jobs.flatMap((_, j) => [
|
|
267
|
-
...["-map", `[e${j}]`, "-fps_mode", "passthrough", "-f", "rawvideo", `e${j}.rgb`]
|
|
268
|
-
]);
|
|
269
|
-
runFfmpeg([...clip.input, "-an", "-filter_complex", graph, ...outs], void 0, work);
|
|
270
|
-
return jobs.map(({ box: [, , w, h] }, j) => {
|
|
271
|
-
const raw = readFileSync(join(work, `e${j}.rgb`));
|
|
272
|
-
const size = w * h * 3;
|
|
273
|
-
const frames = [];
|
|
274
|
-
for (let i = 0; i + size <= raw.length; i += size) frames.push(raw.subarray(i, i + size));
|
|
275
|
-
return frames;
|
|
276
|
-
});
|
|
277
|
-
} finally {
|
|
278
|
-
rmSync(work, { recursive: true, force: true });
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
function drawnFrames(ks, fps, a, b, available) {
|
|
282
|
-
const stride = Math.max(1, Math.round(fps / MAX_FPS));
|
|
283
|
-
const inside = ks.flatMap(
|
|
284
|
-
(k, i) => i < available && k / fps >= a - 1e-6 && k / fps < b - 1e-6 ? [i] : []
|
|
285
|
-
);
|
|
286
|
-
let last = -Infinity;
|
|
287
|
-
return inside.filter((i) => {
|
|
288
|
-
if (ks[i] - last < stride) return false;
|
|
289
|
-
last = ks[i];
|
|
290
|
-
return true;
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
// src/measure/person.ts
|
|
295
|
-
import { existsSync, mkdtempSync as mkdtempSync2, readFileSync as readFileSync2, rmSync as rmSync2 } from "fs";
|
|
296
|
-
import { tmpdir as tmpdir2 } from "os";
|
|
297
|
-
import { join as join2 } from "path";
|
|
298
148
|
var FRAMING_SHIFT = 0.3;
|
|
299
149
|
var FRAMING_SCALE = [0.8, 1.25];
|
|
300
150
|
var FRAMING_MIN_S = 1;
|
|
@@ -364,7 +214,7 @@ function bestLag(a, b) {
|
|
|
364
214
|
function placeClips(clips, project, ref, cuts, shown = /* @__PURE__ */ new Map()) {
|
|
365
215
|
let whole;
|
|
366
216
|
return clips.map((c2) => {
|
|
367
|
-
const file = project ?
|
|
217
|
+
const file = project ? join(project, c2.path) : void 0;
|
|
368
218
|
let info;
|
|
369
219
|
try {
|
|
370
220
|
info = file ? probeVideo(file) : void 0;
|
|
@@ -404,17 +254,17 @@ function placeClips(clips, project, ref, cuts, shown = /* @__PURE__ */ new Map()
|
|
|
404
254
|
at_cut: [0, ...cuts].some((t) => Math.abs(t - offset) <= AT_CUT_S),
|
|
405
255
|
file,
|
|
406
256
|
info,
|
|
407
|
-
...c2.reference && existsSync(
|
|
257
|
+
...c2.reference && existsSync(join(project, c2.reference)) ? { still: join(project, c2.reference) } : {}
|
|
408
258
|
};
|
|
409
259
|
});
|
|
410
260
|
}
|
|
411
261
|
async function clipUses(project) {
|
|
412
262
|
const out = /* @__PURE__ */ new Map();
|
|
413
|
-
const index =
|
|
263
|
+
const index = join(project, "index.html");
|
|
414
264
|
if (!existsSync(index)) return out;
|
|
415
265
|
const [{ ensureDOMParser }, { describeProject }] = await Promise.all([
|
|
416
266
|
import("./dom-VFHEO7VM.js"),
|
|
417
|
-
import("./describeProject-
|
|
267
|
+
import("./describeProject-L4ZW5CI7.js")
|
|
418
268
|
]);
|
|
419
269
|
ensureDOMParser();
|
|
420
270
|
const timeline = await describeProject(index);
|
|
@@ -434,7 +284,7 @@ var normalize = (p) => p.replace(/^\.\//, "").replace(/\\/g, "/");
|
|
|
434
284
|
function boxAt(info, times, box, w, h) {
|
|
435
285
|
const ks = times.map((t) => Math.max(0, Math.min(info.frames - 1, Math.round(t * info.fps))));
|
|
436
286
|
const unique = [...new Set(ks)].sort((x, y) => x - y);
|
|
437
|
-
const work =
|
|
287
|
+
const work = mkdtempSync(join(tmpdir(), "hf-person-"));
|
|
438
288
|
try {
|
|
439
289
|
const filters = [
|
|
440
290
|
`select=${unique.map((k) => `eq(n\\,${k})`).join("+")}`,
|
|
@@ -451,14 +301,14 @@ function boxAt(info, times, box, w, h) {
|
|
|
451
301
|
void 0,
|
|
452
302
|
work
|
|
453
303
|
);
|
|
454
|
-
const raw =
|
|
304
|
+
const raw = readFileSync(join(work, "out.rgb"));
|
|
455
305
|
const size = box[2] * box[3] * 3;
|
|
456
306
|
return ks.map((k) => {
|
|
457
307
|
const i = unique.indexOf(k) * size;
|
|
458
308
|
return i + size <= raw.length ? raw.subarray(i, i + size) : void 0;
|
|
459
309
|
});
|
|
460
310
|
} finally {
|
|
461
|
-
|
|
311
|
+
rmSync(work, { recursive: true, force: true });
|
|
462
312
|
}
|
|
463
313
|
}
|
|
464
314
|
function nearby(w, h, x, y, r, test) {
|
|
@@ -552,7 +402,7 @@ function carriedText(ref, yours, clip, drawn) {
|
|
|
552
402
|
carried: score >= CARRIED_TEXT
|
|
553
403
|
};
|
|
554
404
|
}
|
|
555
|
-
var
|
|
405
|
+
var median = (v) => [...v].sort((x, y) => x - y)[v.length >> 1];
|
|
556
406
|
var centre = (b) => [b[0] + b[2] / 2, b[1] + b[3] / 2];
|
|
557
407
|
function shotsIn(window, cuts) {
|
|
558
408
|
const edges = [window[0], ...cuts.filter((t) => t > window[0] && t < window[1]), window[1]];
|
|
@@ -571,8 +421,8 @@ function shotFraming(window, original, yours, aspect = 1) {
|
|
|
571
421
|
return [{ shift: apart(near, ox, oy) / subject[3], scale: near[3] / subject[3] }];
|
|
572
422
|
});
|
|
573
423
|
if (moments.length < FRAMING_MIN_FACES) return void 0;
|
|
574
|
-
const shift = round(
|
|
575
|
-
const scale = round(
|
|
424
|
+
const shift = round(median(moments.map((m) => m.shift)), 3);
|
|
425
|
+
const scale = round(median(moments.map((m) => m.scale)), 3);
|
|
576
426
|
return {
|
|
577
427
|
window: [round(window[0], 3), round(window[1], 3)],
|
|
578
428
|
shift,
|
|
@@ -617,7 +467,7 @@ async function personVerdict(opts) {
|
|
|
617
467
|
const mouth = (info, samples) => {
|
|
618
468
|
const boxes = samples.filter((f) => f.t >= s[0] && f.t < s[1] && f.boxes.length).map((f) => f.boxes.reduce((x2, y2) => y2[3] > x2[3] ? y2 : x2));
|
|
619
469
|
if (boxes.length < FRAMING_MIN_FACES) return void 0;
|
|
620
|
-
const [x, y, w, h] = [0, 1, 2, 3].map((i) =>
|
|
470
|
+
const [x, y, w, h] = [0, 1, 2, 3].map((i) => median(boxes.map((b) => b[i])));
|
|
621
471
|
const roi = [
|
|
622
472
|
Math.round((x + 0.2 * w) * info.width / 2) * 2,
|
|
623
473
|
Math.round((y + 0.62 * h) * info.height / 2) * 2,
|
|
@@ -730,7 +580,7 @@ function ssimSeries(ref, yours, logPath) {
|
|
|
730
580
|
return `[r${k}]${crop}[rc${k}];[o${k}]${crop}[oc${k}];[oc${k}][rc${k}]ssim=stats_file=cell${i}.log:shortest=1[s${k}]`;
|
|
731
581
|
})
|
|
732
582
|
].join(";");
|
|
733
|
-
const work =
|
|
583
|
+
const work = mkdtempSync2(join2(tmpdir2(), "hf-diff-cells-"));
|
|
734
584
|
const all = (text) => [...text.matchAll(/All:([\d.]+)/g)].map((m) => Number(m[1]));
|
|
735
585
|
try {
|
|
736
586
|
const maps = Array.from({ length: n }, (_, i) => ["-map", `[s${i}]`]).flat();
|
|
@@ -743,11 +593,11 @@ function ssimSeries(ref, yours, logPath) {
|
|
|
743
593
|
const frame = all(text);
|
|
744
594
|
const perCell = Array.from(
|
|
745
595
|
{ length: GRID * GRID },
|
|
746
|
-
(_, i) => all(
|
|
596
|
+
(_, i) => all(readFileSync2(join2(work, `cell${i}.log`), "utf8"))
|
|
747
597
|
);
|
|
748
598
|
return { frame, cells: frame.map((_, f) => perCell.map((cell) => cell[f] ?? 1)) };
|
|
749
599
|
} finally {
|
|
750
|
-
|
|
600
|
+
rmSync2(work, { recursive: true, force: true });
|
|
751
601
|
}
|
|
752
602
|
}
|
|
753
603
|
function missingContent(ref, yours, ks, fps, judged = () => ALL_CELLS) {
|
|
@@ -844,8 +694,10 @@ function outline(px, w, [x, y, bw, bh], t = 3) {
|
|
|
844
694
|
}
|
|
845
695
|
}
|
|
846
696
|
function cutReport(ref, yours, k0, fps) {
|
|
847
|
-
const [
|
|
848
|
-
const [
|
|
697
|
+
const [fa, fb] = [ref, yours].map((c2) => signatures(c2.input, c2.filters).frames);
|
|
698
|
+
const [da, db] = [frameChanges(fa), frameChanges(fb)];
|
|
699
|
+
const [all, b] = [classifiedCuts(fa), classifiedCuts(fb).filter((c2) => !c2.kind)];
|
|
700
|
+
const a = all.filter((c2) => !c2.kind);
|
|
849
701
|
const used = /* @__PURE__ */ new Set();
|
|
850
702
|
const missing = [];
|
|
851
703
|
for (const cut of a) {
|
|
@@ -860,13 +712,14 @@ function cutReport(ref, yours, k0, fps) {
|
|
|
860
712
|
yours: b.map((c2) => t(c2.frame)),
|
|
861
713
|
missing: missing.map(t),
|
|
862
714
|
extra: extra.map((c2) => t(c2.frame)),
|
|
715
|
+
not_cuts: all.flatMap((c2) => c2.kind ? [{ t: t(c2.frame), kind: c2.kind }] : []),
|
|
863
716
|
pass: missing.length === 0 && extra.length === 0
|
|
864
717
|
};
|
|
865
718
|
}
|
|
866
719
|
async function captureProject(projectDir, times, opts, ref) {
|
|
867
|
-
const { captureSnapshots } = await import("./snapshot-
|
|
868
|
-
const shots =
|
|
869
|
-
const seq =
|
|
720
|
+
const { captureSnapshots } = await import("./snapshot-RK7ED6DW.js");
|
|
721
|
+
const shots = mkdtempSync2(join2(tmpdir2(), "hf-diff-shots-"));
|
|
722
|
+
const seq = mkdtempSync2(join2(tmpdir2(), "hf-diff-seq-"));
|
|
870
723
|
try {
|
|
871
724
|
const captured = await captureSnapshots(projectDir, {
|
|
872
725
|
at: times,
|
|
@@ -883,18 +736,18 @@ async function captureProject(projectDir, times, opts, ref) {
|
|
|
883
736
|
"run npx hyperframes check on the project, then diff again"
|
|
884
737
|
);
|
|
885
738
|
captured.paths.forEach(
|
|
886
|
-
(p, i) => copyFileSync(resolve(projectDir, p),
|
|
739
|
+
(p, i) => copyFileSync(resolve(projectDir, p), join2(seq, `${String(i).padStart(6, "0")}.png`))
|
|
887
740
|
);
|
|
888
741
|
} catch (err) {
|
|
889
|
-
|
|
742
|
+
rmSync2(seq, { recursive: true, force: true });
|
|
890
743
|
throw err;
|
|
891
744
|
} finally {
|
|
892
|
-
|
|
745
|
+
rmSync2(shots, { recursive: true, force: true });
|
|
893
746
|
}
|
|
894
747
|
return {
|
|
895
748
|
dir: seq,
|
|
896
749
|
clip: {
|
|
897
|
-
input: ["-framerate", ref.fpsText, "-i",
|
|
750
|
+
input: ["-framerate", ref.fpsText, "-i", join2(seq, "%06d.png")],
|
|
898
751
|
filters: [],
|
|
899
752
|
width: ref.width,
|
|
900
753
|
height: ref.height,
|
|
@@ -1155,7 +1008,7 @@ function findLedger(yours, segmentsFile) {
|
|
|
1155
1008
|
...existsSync2(yours) && statSync(yours).isDirectory() ? [yours] : [],
|
|
1156
1009
|
...segmentsFile ? [dirname(segmentsFile)] : []
|
|
1157
1010
|
];
|
|
1158
|
-
return dirs.flatMap((d) => [
|
|
1011
|
+
return dirs.flatMap((d) => [join2(d, ".media", "manifest.jsonl"), join2(d, "media-manifest.jsonl")]).find((f) => existsSync2(f));
|
|
1159
1012
|
}
|
|
1160
1013
|
function frameSpans(on, ks, fps) {
|
|
1161
1014
|
const spans = [];
|
|
@@ -1247,12 +1100,12 @@ async function worstMoments(picks, ctx) {
|
|
|
1247
1100
|
(y * (2 * cw + 4) + side * (cw + 4)) * 3
|
|
1248
1101
|
)
|
|
1249
1102
|
);
|
|
1250
|
-
const cellPicture = writeImage(
|
|
1103
|
+
const cellPicture = writeImage(join2(ctx.outDir, `${tag}-cell.png`), pair, 2 * cw + 4, ch);
|
|
1251
1104
|
const [a, b] = [frameOf(ctx.refClip, i, sw, sh), frameOf(ctx.yours, i, sw, sh)];
|
|
1252
1105
|
outline(a, sw, scaled);
|
|
1253
1106
|
outline(b, sw, scaled);
|
|
1254
|
-
images.push(writeImage(
|
|
1255
|
-
images.push(writeImage(
|
|
1107
|
+
images.push(writeImage(join2(ctx.outDir, `${tag}-original.png`), a, sw, sh));
|
|
1108
|
+
images.push(writeImage(join2(ctx.outDir, `${tag}-yours.png`), b, sw, sh));
|
|
1256
1109
|
labels.push(
|
|
1257
1110
|
`original ${t}s`,
|
|
1258
1111
|
`yours ${t}s \xB7 ssim ${round(series.frame[i], 3)} \xB7 cell ${round(cells[c2], 2)}`
|
|
@@ -1266,7 +1119,7 @@ async function worstMoments(picks, ctx) {
|
|
|
1266
1119
|
}
|
|
1267
1120
|
if (!images.length) return { worst };
|
|
1268
1121
|
const { createContactSheet } = await import("./contactSheet-WG4HT5XP.js");
|
|
1269
|
-
const sheet = await createContactSheet(images,
|
|
1122
|
+
const sheet = await createContactSheet(images, join2(ctx.outDir, "worst.jpg"), {
|
|
1270
1123
|
cols: 2,
|
|
1271
1124
|
maxImages: images.length,
|
|
1272
1125
|
cellWidth: 640,
|
|
@@ -1343,7 +1196,7 @@ async function diffVideos(options) {
|
|
|
1343
1196
|
"the original's frame rate varies, so frame times drift: npx hyperframes measure probe makes a constant-rate copy"
|
|
1344
1197
|
);
|
|
1345
1198
|
const mode = existsSync2(opts.yours) && statSync(opts.yours).isDirectory() ? "project" : "video";
|
|
1346
|
-
if (mode === "project" && !existsSync2(
|
|
1199
|
+
if (mode === "project" && !existsSync2(join2(opts.yours, "index.html")))
|
|
1347
1200
|
throw new Fix(`${opts.yours} has no index.html`, "pass a project folder or a rendered video");
|
|
1348
1201
|
if (mode === "project" && !opts.at && !opts.range && opts.segments?.length)
|
|
1349
1202
|
opts.range = [
|
|
@@ -1385,8 +1238,8 @@ async function diffVideos(options) {
|
|
|
1385
1238
|
try {
|
|
1386
1239
|
mkdirSync(opts.outDir, { recursive: true });
|
|
1387
1240
|
for (const f of readdirSync(opts.outDir))
|
|
1388
|
-
if (/^worst-/.test(f))
|
|
1389
|
-
const logPath =
|
|
1241
|
+
if (/^worst-/.test(f)) rmSync2(join2(opts.outDir, f), { force: true });
|
|
1242
|
+
const logPath = join2(opts.outDir, "ssim.log");
|
|
1390
1243
|
const series = ssimSeries(refClip, yours, logPath);
|
|
1391
1244
|
if (!series.frame.length)
|
|
1392
1245
|
throw new Fix("ffmpeg compared no frames", "check both videos play and overlap in time");
|
|
@@ -1394,7 +1247,7 @@ async function diffVideos(options) {
|
|
|
1394
1247
|
warnings.push(`yours ends early: ${series.frame.length} of ${ks.length} frames compared`);
|
|
1395
1248
|
const worstCell = series.cells.map((cells) => Math.min(...cells));
|
|
1396
1249
|
writeFileSync(
|
|
1397
|
-
|
|
1250
|
+
join2(opts.outDir, "frames.tsv"),
|
|
1398
1251
|
[
|
|
1399
1252
|
"t frame ssim worst_cell cell",
|
|
1400
1253
|
...series.frame.map((v, i) => {
|
|
@@ -1445,7 +1298,7 @@ async function diffVideos(options) {
|
|
|
1445
1298
|
yours: round(yoursInfo.pictureDuration, 3),
|
|
1446
1299
|
pass: Math.abs(ref.pictureDuration - yoursInfo.pictureDuration) <= 1.5 / ref.fps
|
|
1447
1300
|
} : void 0;
|
|
1448
|
-
const ledgerText = opts.ledger && existsSync2(opts.ledger) ?
|
|
1301
|
+
const ledgerText = opts.ledger && existsSync2(opts.ledger) ? readFileSync2(opts.ledger, "utf8") : void 0;
|
|
1449
1302
|
const people = /* @__PURE__ */ new Map();
|
|
1450
1303
|
let clips = [];
|
|
1451
1304
|
if (opts.segments && yoursInfo) {
|
|
@@ -1517,7 +1370,7 @@ async function diffVideos(options) {
|
|
|
1517
1370
|
`${Math.round(reuse.share * 100)}% of frames play the original's whole frame: pass --segments <file> to tell footage from copied drawings`
|
|
1518
1371
|
);
|
|
1519
1372
|
const sound = yoursInfo && pick.kind === "all" ? soundOffset(opts.reference, opts.yours, ref, yoursInfo) : void 0;
|
|
1520
|
-
const sbs = opts.sbs && mode === "video" ? sideBySide(opts.reference, opts.yours, ref,
|
|
1373
|
+
const sbs = opts.sbs && mode === "video" ? sideBySide(opts.reference, opts.yours, ref, join2(opts.outDir, "sbs.mp4")) : void 0;
|
|
1521
1374
|
const judged = segments ? segments.every((s) => s.pass !== false) : passes(overall, t);
|
|
1522
1375
|
const top = segments ? headline(
|
|
1523
1376
|
segments,
|
|
@@ -1546,16 +1399,16 @@ async function diffVideos(options) {
|
|
|
1546
1399
|
...sheet ? { sheet } : {},
|
|
1547
1400
|
...sbs ? { sbs } : {},
|
|
1548
1401
|
log: logPath,
|
|
1549
|
-
frames:
|
|
1402
|
+
frames: join2(opts.outDir, "frames.tsv"),
|
|
1550
1403
|
warnings
|
|
1551
1404
|
};
|
|
1552
1405
|
} finally {
|
|
1553
|
-
if (seqDir)
|
|
1406
|
+
if (seqDir) rmSync2(seqDir, { recursive: true, force: true });
|
|
1554
1407
|
}
|
|
1555
1408
|
}
|
|
1556
1409
|
|
|
1557
1410
|
// src/measure/segments.ts
|
|
1558
|
-
import { existsSync as existsSync3, readFileSync as
|
|
1411
|
+
import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
|
|
1559
1412
|
var HEADING = /^##\s+(S\d+)\s*[·|-]\s*(\d+(?:\.\d+)?)\s*[–—-]\s*(\d+(?:\.\d+)?)\s*s\b\s*(?:[·|-]\s*(.*))?$/gm;
|
|
1560
1413
|
var SOURCES = ["rebuilt", "reused", "regenerated"];
|
|
1561
1414
|
var PIXELS = /^Pixels:\s*(rebuilt|reused|regenerated)\b/im;
|
|
@@ -1600,7 +1453,7 @@ function parseSegments(markdown) {
|
|
|
1600
1453
|
function readSegments(path) {
|
|
1601
1454
|
if (!existsSync3(path))
|
|
1602
1455
|
throw new Fix(`no segments file at ${path}`, "pass a file of `## S01 \xB7 a\u2013b s` segments");
|
|
1603
|
-
const segments = parseSegments(
|
|
1456
|
+
const segments = parseSegments(readFileSync3(path, "utf8"));
|
|
1604
1457
|
if (!segments.length)
|
|
1605
1458
|
throw new Fix(
|
|
1606
1459
|
`${path} has no "## S01 \xB7 0.00\u20132.40 s \xB7 title" segment headings`,
|
|
@@ -1779,6 +1632,7 @@ var diff_default = defineCommand({
|
|
|
1779
1632
|
// fallow-ignore-next-line complexity
|
|
1780
1633
|
async run({ args, rawArgs }) {
|
|
1781
1634
|
const json = args.json === true;
|
|
1635
|
+
let exitCode = 0;
|
|
1782
1636
|
try {
|
|
1783
1637
|
if (args.at !== void 0 && args.range !== void 0)
|
|
1784
1638
|
throw new Fix("--at and --range both given", "pass one of them");
|
|
@@ -1801,14 +1655,18 @@ var diff_default = defineCommand({
|
|
|
1801
1655
|
},
|
|
1802
1656
|
worst: number(args.worst, "--worst"),
|
|
1803
1657
|
sbs: args.sbs === true,
|
|
1804
|
-
outDir: outDir(args.out,
|
|
1658
|
+
outDir: outDir(args.out, join3("diff", stem)),
|
|
1805
1659
|
timeoutMs: number(args.timeout, "--timeout"),
|
|
1806
1660
|
log: (message) => console.error(message)
|
|
1807
1661
|
});
|
|
1808
1662
|
if (json) console.log(formatJson(withMeta({ ok: true, ...result })));
|
|
1809
1663
|
else printHuman(result);
|
|
1810
|
-
if (!result.pass)
|
|
1664
|
+
if (!result.pass) {
|
|
1665
|
+
exitCode = 1;
|
|
1666
|
+
setCommandExitCode(1);
|
|
1667
|
+
}
|
|
1811
1668
|
} catch (err) {
|
|
1669
|
+
exitCode = 1;
|
|
1812
1670
|
const fix = err instanceof Fix ? err.fix : void 0;
|
|
1813
1671
|
const message = normalizeErrorMessage(err);
|
|
1814
1672
|
if (json)
|
|
@@ -1816,6 +1674,8 @@ var diff_default = defineCommand({
|
|
|
1816
1674
|
else console.error(`${c.error("\u2717")} ${message}${fix ? `
|
|
1817
1675
|
Fix: ${fix}` : ""}`);
|
|
1818
1676
|
failCommand();
|
|
1677
|
+
} finally {
|
|
1678
|
+
scheduleCliExit(exitCode);
|
|
1819
1679
|
}
|
|
1820
1680
|
}
|
|
1821
1681
|
});
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
lintMediaUrls,
|
|
13
13
|
lintProject,
|
|
14
14
|
shouldBlockRender
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GR2T3BOX.js";
|
|
16
16
|
import "./chunk-HYRPH6LL.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-2GTFW4MK.js";
|
|
18
18
|
import "./chunk-CZGHFATT.js";
|
|
19
19
|
import "./chunk-C2KEGBR3.js";
|
|
20
20
|
import "./chunk-T5ELONXY.js";
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
serializeVfxChain,
|
|
96
96
|
toFps,
|
|
97
97
|
validateVariables
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-XCGPPU32.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-XINVBLXA.js";
|
|
164
164
|
import "./chunk-VC76R6W2.js";
|
|
165
165
|
import {
|
|
166
166
|
ProjectRootMissingError,
|