hyperframes 0.9.8 → 0.9.9
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-KCOZUTMS.js → add-FQX5F6PC.js} +12 -12
- package/dist/{agentPromptGenerator-P75AWDLA.js → agentPromptGenerator-XNGPKVEX.js} +9 -9
- package/dist/{animatedGifPrep-OBZTJQ7X.js → animatedGifPrep-E3PYKFJ3.js} +9 -9
- package/dist/api.js +29 -29
- package/dist/{asset-N3A7GB3E.js → asset-X5GG5TTP.js} +2 -2
- package/dist/{assetCataloger-OQYRQZLW.js → assetCataloger-SDFP4DWL.js} +10 -10
- package/dist/{audio-KCKNENFH.js → audio-DDTYFS23.js} +26 -26
- package/dist/{auth-Y72WHJCW.js → auth-OAWLDT3A.js} +2 -2
- package/dist/{autoUpdate-DLNFGTN2.js → autoUpdate-BWIPXW2W.js} +23 -16
- package/dist/{backgroundChecks-EFVHAYNQ.js → backgroundChecks-YJ5NRMBA.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-JKOGFHLU.js → batchRender-ZDL65J7N.js} +4 -4
- package/dist/{beats-RIKKG4N7.js → beats-Q2TIAA7S.js} +11 -11
- package/dist/{benchmark-7TCK3SGH.js → benchmark-I3GRHFIN.js} +9 -9
- package/dist/{billing-JBG45ON2.js → billing-W224NIAM.js} +1 -1
- package/dist/{browser-4BF7NKPF.js → browser-F24WMZ52.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-PAWHGZRW.js → bundleWithLocalizedFonts-K5CQPNIZ.js} +2 -2
- package/dist/{capture-5PZTT5O7.js → capture-HLC6I4RE.js} +3 -3
- package/dist/{capture-H7UDNHF2.js → capture-UKWY3SZQ.js} +22 -22
- package/dist/{captureCompositionFrame-LR2XKVKX.js → captureCompositionFrame-YMB3CKSP.js} +14 -14
- package/dist/{catalog-4W5XDIKM.js → catalog-H7SOITD6.js} +12 -12
- package/dist/{catch-up-H2Y2WRIA.js → catch-up-YRGPVEM6.js} +4 -4
- package/dist/{check-NG6FULCN.js → check-BPQZZ2MO.js} +44 -44
- package/dist/{checkAudio-HI5ICPRV.js → checkAudio-4NRQ3WGS.js} +17 -17
- package/dist/{checkBrowser-YPPMCXET.js → checkBrowser-S66AHKW3.js} +37 -37
- package/dist/{chunk-VKWAW4JW.js → chunk-2NGBIAUF.js} +19 -19
- package/dist/{chunk-6RD46YOJ.js → chunk-2QMEP4LR.js} +1 -1
- package/dist/{chunk-5D23BECZ.js → chunk-2ROPUTCS.js} +1 -1
- package/dist/{chunk-VLHCR3G2.js → chunk-2Y575PWJ.js} +2 -2
- package/dist/{chunk-ZJ5ZLU2I.js → chunk-322AG75G.js} +2 -2
- package/dist/{chunk-WF4TXIXY.js → chunk-3DWH6Z5U.js} +1 -1
- package/dist/{chunk-VX3JUOZ6.js → chunk-42TYQPES.js} +2 -2
- package/dist/{chunk-GZZE2OJP.js → chunk-4W5X4S47.js} +9 -8
- package/dist/{chunk-6CEQCL6O.js → chunk-5YIZRU2L.js} +3 -3
- package/dist/{chunk-UQDO2L6F.js → chunk-62ATHBDS.js} +17 -14
- package/dist/{chunk-RPVL65M7.js → chunk-63GTSNMY.js} +6 -6
- package/dist/{chunk-TLBSOI2R.js → chunk-6DKWOG7L.js} +1 -1
- package/dist/{chunk-XPN7SDFQ.js → chunk-6HO6QKYG.js} +9 -9
- package/dist/{chunk-KKPYNKZD.js → chunk-6KV3CMY2.js} +1 -1
- package/dist/{chunk-7TAS4BNT.js → chunk-6UZLHLFP.js} +2 -2
- package/dist/{chunk-THSTFHB7.js → chunk-7RM3TB62.js} +29 -2
- package/dist/{chunk-GSZAUB3W.js → chunk-7W5ZDOLW.js} +2 -2
- package/dist/{chunk-QTEU6NL3.js → chunk-A2NFFVWH.js} +5 -5
- package/dist/{chunk-D7THUO4V.js → chunk-A33GFLPY.js} +22 -2
- package/dist/{chunk-74VSOKKS.js → chunk-ABI256T5.js} +1 -1
- package/dist/{chunk-YXIXTFRO.js → chunk-AH6MUQQC.js} +2 -2
- package/dist/{chunk-QXVW22VM.js → chunk-ASGRVFQ3.js} +1 -0
- package/dist/{chunk-7DQHV322.js → chunk-AUYRWWFL.js} +3 -3
- package/dist/{chunk-FNNNGI42.js → chunk-AVNF52HR.js} +1 -1
- package/dist/{chunk-ODIGIQ4C.js → chunk-B5GWDPUO.js} +3 -3
- package/dist/{chunk-4WJKSTDS.js → chunk-BBP5KGYS.js} +3 -3
- package/dist/{chunk-JCOECSLT.js → chunk-BHL4KN3H.js} +2 -2
- package/dist/{chunk-HVBQL3PZ.js → chunk-BX2JB24X.js} +1 -1
- package/dist/{chunk-UUW654GD.js → chunk-BXYB5NGT.js} +2 -2
- package/dist/{chunk-6DTXWYZA.js → chunk-BYC4C4YY.js} +9 -9
- package/dist/{chunk-7HRQOEYY.js → chunk-C3NC67BB.js} +8 -8
- package/dist/{chunk-RULCW25D.js → chunk-CBPBTQBH.js} +13 -13
- package/dist/{chunk-WY4J37EZ.js → chunk-CNX3WKQ5.js} +30 -8
- package/dist/{chunk-RWQANKWK.js → chunk-CPMTEWQM.js} +3 -3
- package/dist/{chunk-NU5LJYAT.js → chunk-CUYVIDGF.js} +4 -3
- package/dist/{chunk-2MUWGYXQ.js → chunk-DIKIN4BA.js} +29 -29
- package/dist/{chunk-BCQ42FAS.js → chunk-E2YXF2EP.js} +3 -3
- package/dist/{chunk-OYN54RSU.js → chunk-EBUA6NWH.js} +2 -2
- package/dist/{chunk-DHIXDUET.js → chunk-EN6MPNZT.js} +4 -4
- package/dist/{chunk-MNX7CK5N.js → chunk-GAKRZZHQ.js} +2 -2
- package/dist/{chunk-457LNKMV.js → chunk-GIYZMGYT.js} +1 -1
- package/dist/{chunk-UPN4UMT7.js → chunk-H534266X.js} +2 -2
- package/dist/{chunk-SBA4NG7Q.js → chunk-HBHLCMOQ.js} +7 -7
- package/dist/{chunk-ZK3GFNHM.js → chunk-HUJMTTKR.js} +152 -26
- package/dist/{chunk-WVH6VWMY.js → chunk-JZPUXDQE.js} +4 -4
- package/dist/{chunk-SACHIPZP.js → chunk-LR5NVYZT.js} +1 -1
- package/dist/{chunk-QPTQSM3D.js → chunk-LTBBFLOM.js} +1 -1
- package/dist/{chunk-7VHS56BT.js → chunk-LV5SL4YW.js} +2 -2
- package/dist/{chunk-Q3SKYJGG.js → chunk-M6JFR7KF.js} +18 -5
- package/dist/{chunk-2ZQ7BZOS.js → chunk-MDMQD6BV.js} +6 -6
- package/dist/{chunk-JP2ZSFRJ.js → chunk-MWHTLXG4.js} +4 -54
- package/dist/{chunk-TODLF56D.js → chunk-MY4PAH7C.js} +1 -1
- package/dist/{chunk-NUFOXUDF.js → chunk-N6FGHJ7X.js} +53 -29
- package/dist/{chunk-ECJCBLME.js → chunk-N74N2I2K.js} +1 -1
- package/dist/{chunk-3BCLDK6O.js → chunk-NCP3JQ6S.js} +99 -93
- package/dist/{chunk-W5VDIXYL.js → chunk-NNF6G2UH.js} +1 -1
- package/dist/{chunk-M336YVCP.js → chunk-NWQFOHXF.js} +1 -1
- package/dist/{chunk-ZAOQWCZM.js → chunk-NX2X326Z.js} +9 -9
- package/dist/{chunk-E2SVAOS6.js → chunk-OAFGA2FR.js} +4 -3
- package/dist/{chunk-AC3TSGGG.js → chunk-OYAZODSP.js} +28 -28
- package/dist/{chunk-4MDLXE3N.js → chunk-PPMCILED.js} +37 -5
- package/dist/{chunk-DT6NGXSS.js → chunk-Q3IT7I2K.js} +1 -1
- package/dist/{chunk-3YZ3LNXV.js → chunk-QOF7XZEI.js} +1 -1
- package/dist/{chunk-F6GJUCIY.js → chunk-QRCORKYC.js} +2 -2
- package/dist/{chunk-ZAXAT2D7.js → chunk-QUBVGS27.js} +5 -5
- package/dist/{chunk-BUYV2WGV.js → chunk-R7EKEIAK.js} +1 -1
- package/dist/{chunk-RGYPRUQP.js → chunk-S2UKSI3C.js} +1 -1
- package/dist/{chunk-TDIYINK6.js → chunk-SG4YBQPY.js} +2 -2
- package/dist/chunk-SRVAYGTN.js +62 -0
- package/dist/{chunk-K6QVKO7M.js → chunk-SSZTRWKQ.js} +2 -2
- package/dist/{chunk-X422IJKF.js → chunk-TJ2USKCK.js} +1 -1
- package/dist/{chunk-Y3RERZRQ.js → chunk-TZBJEKKU.js} +1 -1
- package/dist/{chunk-L3ZVUQGN.js → chunk-UWYHZCEQ.js} +2 -2
- package/dist/{chunk-3LLFF6EE.js → chunk-V74HSKGY.js} +1 -1
- package/dist/{chunk-CUR5UYYJ.js → chunk-VM6T3Z6B.js} +1 -1
- package/dist/{chunk-CCFSUSAE.js → chunk-VNR7LSN4.js} +50 -11
- package/dist/{chunk-HFNB2CG3.js → chunk-VZ5O7A77.js} +1 -1
- package/dist/{chunk-6ZICZOMN.js → chunk-W5AUD5OL.js} +2 -2
- package/dist/{chunk-BGHKFD3T.js → chunk-WWBEAKTO.js} +10 -2
- package/dist/{chunk-UGUYWTWD.js → chunk-XLPCBE2Q.js} +4 -4
- package/dist/{chunk-5SCOPSVL.js → chunk-XTYNW745.js} +1 -1
- package/dist/{chunk-BGMMC352.js → chunk-XX77LLFJ.js} +6 -6
- package/dist/chunk-Y3ICFPFK.js +5035 -0
- package/dist/{chunk-NST5G3WX.js → chunk-YTNHZT47.js} +2 -2
- package/dist/{chunk-H4D2X5N3.js → chunk-ZD3MK4H5.js} +1 -1
- package/dist/{chunk-6A4RAHMF.js → chunk-ZLN3AJKT.js} +1 -1
- package/dist/{clean-VPOP4TU4.js → clean-RCXKQNFM.js} +23 -23
- package/dist/cli.js +61 -60
- package/dist/{cloud-Q7ZXCZ6E.js → cloud-TQPQZRC5.js} +4 -4
- package/dist/cloud-Z3FNCC4T.js +39 -0
- package/dist/{cloudrun-6DVAE7GG.js → cloudrun-N737TJRC.js} +6 -6
- package/dist/{compare-X5SWN5XJ.js → compare-EO32AASM.js} +34 -34
- package/dist/{compiler-N4TTEEQC.js → compiler-NAIDMQFU.js} +6 -6
- package/dist/{component-MJXAMRKF.js → component-S3TYNVCR.js} +3 -3
- package/dist/{compositions-F3ZHG5F4.js → compositions-4TXRLZ3M.js} +15 -15
- package/dist/{curve-4TWENQO7.js → curve-HGLOP2GY.js} +13 -13
- package/dist/{cuts-X3LE5A2K.js → cuts-VNFIISLL.js} +14 -14
- package/dist/{delete-MYHKF3MS.js → delete-TIWI3G7X.js} +7 -5
- package/dist/{deploy-OP2BHWCQ.js → deploy-EHPNOGSY.js} +6 -6
- package/dist/{describeProject-ZMKVHAYX.js → describeProject-DN6YQU3X.js} +10 -10
- package/dist/{deterministicFonts-H4RC6TOJ.js → deterministicFonts-GQMT52JQ.js} +2 -2
- package/dist/{diff-7ZNSFBKV.js → diff-46JK5ZCL.js} +156 -76
- package/dist/dist-CCPYPKOC.js +197 -0
- package/dist/{dist-SWPSKAAJ.js → dist-GUX66F7V.js} +3 -3
- package/dist/{dist-H4C7ZCFU.js → dist-PCVNVAVC.js} +4 -4
- package/dist/{doctor-ABSXYNXY.js → doctor-LD23DW4N.js} +13 -13
- package/dist/{energy-X2OAWHME.js → energy-YZ3DB6AI.js} +14 -14
- package/dist/{events-4MDK4K7Q.js → events-3OWNDNJX.js} +3 -3
- package/dist/{events-26SWSHDR.js → events-DRTMYSQ6.js} +2 -2
- package/dist/{events-JFIZSYMH.js → events-MQIKCKA5.js} +16 -16
- package/dist/{extract-4O3Q3LOD.js → extract-F3NBE3X5.js} +14 -14
- package/dist/{face-7J7AQJDY.js → face-ZU7ZDYGO.js} +14 -14
- package/dist/{feedback-CVTJDQIX.js → feedback-37M37Y4F.js} +8 -8
- package/dist/{ffmpeg-EE2NKQT4.js → ffmpeg-PERZ6YHQ.js} +9 -9
- package/dist/{figma-55J7UDDC.js → figma-55AG42NN.js} +3 -3
- package/dist/fontLocalizeCli.js +15 -15
- package/dist/{frames-OZLUDUOS.js → frames-DJA3CFSY.js} +19 -16
- package/dist/{generate-CY2TRPRE.js → generate-BVJ5XNWP.js} +18 -18
- package/dist/{get-HJHSVKGK.js → get-PGLCWEBG.js} +7 -5
- package/dist/{gpuPolicy-LZFNAIJB.js → gpuPolicy-DUNSQM6M.js} +9 -9
- package/dist/{grade-compare-JVTYF2T6.js → grade-compare-R6Q6G6WP.js} +34 -34
- package/dist/{heifImagePrep-OGFEQMQT.js → heifImagePrep-YNPHFR6W.js} +10 -10
- package/dist/{help-6WDI76YU.js → help-4SNDXHWQ.js} +2 -1
- package/dist/{history-FIP5NGFC.js → history-NKRHKIE2.js} +10 -10
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +65 -65
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-WTGJE4QB.js → info-U4VDKU2Y.js} +8 -8
- package/dist/{init-UYTDM56U.js → init-2RUVBHQO.js} +29 -29
- package/dist/{ink-BTLAE3ZR.js → ink-TX3USU7X.js} +14 -14
- package/dist/{inspect-KIMJNTS4.js → inspect-MAGHXEWS.js} +34 -34
- package/dist/{installer-6GSD3CVW.js → installer-PUQYKLXZ.js} +5 -5
- package/dist/{keyframes-74LK522L.js → keyframes-2TDECIQZ.js} +6 -6
- package/dist/{lambda-CJ7P5NLO.js → lambda-CRVYDETX.js} +15 -15
- package/dist/{layout-RLIXTM56.js → layout-I3VNHWJH.js} +34 -34
- package/dist/{lint-IOJB746U.js → lint-MCVWXDJX.js} +10 -10
- package/dist/{lintProject-NZADSVSU.js → lintProject-EV3EEBY3.js} +4 -4
- package/dist/{list-V3TMQEQV.js → list-FJJNWPM6.js} +7 -5
- package/dist/{localPage-5LUCH2RM.js → localPage-6MQ6YFER.js} +9 -9
- package/dist/{login-GNVKQO3W.js → login-YAZZWYFK.js} +4 -4
- package/dist/{look-3QZIJFNX.js → look-U5UHXPUQ.js} +14 -14
- package/dist/{manager-3QTARUMT.js → manager-ARXEX6OP.js} +10 -10
- package/dist/{measure-7LUYTL2E.js → measure-JAPDVQ5X.js} +11 -11
- package/dist/{media-treatment-MYDIYP5I.js → media-treatment-A4Z32NGP.js} +15 -15
- package/dist/{media-use-UDBHEIYA.js → media-use-6HX7JHRD.js} +17 -11
- package/dist/{models-S5CT7CST.js → models-GMJODMZ5.js} +13 -13
- package/dist/{motionShot-U3TSHI33.js → motionShot-Z63I3GO7.js} +17 -17
- package/dist/{normalize-audio-ZETO53KI.js → normalize-audio-45CHOWKY.js} +10 -10
- package/dist/{open-UEJMPEPN.js → open-RSTNLDYI.js} +12 -12
- package/dist/{parakeetRunner-2KFML7ZA.js → parakeetRunner-K4EGDDVH.js} +14 -14
- package/dist/{pipeline-2TPI5L2C.js → pipeline-EKLTELWF.js} +12 -12
- package/dist/{play-XH2XKNCL.js → play-BYIEIRQQ.js} +25 -25
- package/dist/{preflight-L5P4QXXH.js → preflight-TC6ZW3GB.js} +10 -10
- package/dist/{present-XXEU7RTN.js → present-5B5VQKT5.js} +20 -20
- package/dist/{preview-V6LNVTBH.js → preview-5O2HT2WF.js} +23 -23
- package/dist/{probe-JL4JSTSP.js → probe-ZGK6DBAR.js} +14 -14
- package/dist/{producer-RLZ64COI.js → producer-RFTB2APL.js} +1 -1
- package/dist/{projectConfig-3IK4M62D.js → projectConfig-PUAOWUNS.js} +7 -7
- package/dist/{publication-4I6P772E.js → publication-K4XAMUI6.js} +3 -3
- package/dist/{publish-TOPACGPR.js → publish-7W46NJFT.js} +13 -13
- package/dist/{remove-background-CNXM4XJN.js → remove-background-LURZDSDJ.js} +13 -13
- package/dist/{render-XAE2YCRZ.js → render-7HIEI7QP.js} +46 -46
- package/dist/{render-OD3XEIBG.js → render-EF7Y6YYC.js} +6 -6
- package/dist/{render-WCLJ4GPZ.js → render-ETZ3WAJO.js} +39 -37
- package/dist/{render-batch-QM4SW65U.js → render-batch-JYYP4RXA.js} +6 -6
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-K2UZSBCZ.js → resolver-BKFLETMU.js} +5 -5
- package/dist/{reverse-JGOZUFKK.js → reverse-VPBNBP2Q.js} +1 -1
- package/dist/{run-2JI4VCW5.js → run-XER4YJY5.js} +3 -3
- package/dist/{sherpa-OIJBFCKZ.js → sherpa-D6FQ3CHN.js} +13 -13
- package/dist/skills/media-use/SKILL.md +2 -2
- package/dist/skills/media-use/references/heygen.md +17 -9
- package/dist/skills/media-use/references/operations.md +14 -13
- package/dist/skills/media-use/scripts/lib/adopt.mjs +11 -0
- package/dist/skills/media-use/scripts/lib/adopt.test.mjs +26 -0
- package/dist/skills/media-use/scripts/lib/registry.mjs +2 -1
- package/dist/skills/media-use/scripts/lib/registry.test.mjs +5 -6
- package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +23 -0
- package/dist/skills/media-use/scripts/resolve.mjs +3 -1
- package/dist/{skills-L4AWBUJJ.js → skills-EBVQSIK4.js} +22 -12
- package/dist/{skillsUpdateCheck-GSX5MLON.js → skillsUpdateCheck-7VXK4R4J.js} +3 -3
- package/dist/{snapshot-5FK3HCJ7.js → snapshot-PJUNSMDS.js} +49 -46
- package/dist/{src-HKLKN7AE.js → src-RL6YEPTD.js} +10 -10
- package/dist/{src-JT324RDD.js → src-SMIMKSHZ.js} +18 -18
- package/dist/{start-5O33EGN2.js → start-5ZDH643Z.js} +19 -19
- package/dist/{staticProjectServer-CWKMUI6O.js → staticProjectServer-BX4RWEY5.js} +21 -21
- package/dist/{status-MPCREDMQ.js → status-4LLUW5YT.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-D7kdypzS.js → hyperframes-player-CcNGHTev.js} +1 -1
- package/dist/studio/assets/{index-BT1zmedz.js → index-D9uDed3x.js} +1 -1
- package/dist/studio/assets/{index-CaOrmH_8.js → index-DSRgrCDX.js} +118 -118
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-24HJ5KQX.js → studio-api-PEUXVD7P.js} +17 -17
- package/dist/{studioServer-KKGBELBR.js → studioServer-2WIQBEQC.js} +61 -61
- package/dist/{sync-BT4WDK3B.js → sync-P3O3WZWT.js} +19 -16
- package/dist/{telemetry-77PW2F7B.js → telemetry-267LV4SC.js} +3 -3
- package/dist/templates/_shared/AGENTS.md +1 -0
- package/dist/templates/_shared/CLAUDE.md +1 -0
- package/dist/templates-MQ742KVZ.js +173 -0
- package/dist/{timeline-RKJ63VIU.js → timeline-WP7AZAQC.js} +24 -24
- package/dist/{tokens-JATS65YH.js → tokens-ROFKR7AE.js} +2 -2
- package/dist/{transcribe-ELWJ6NYG.js → transcribe-N66QUYCS.js} +12 -12
- package/dist/{transcribe-FYBJBBP3.js → transcribe-WS2STSCJ.js} +23 -23
- package/dist/{tts-JHGGL7GL.js → tts-HIQMJU6O.js} +1 -1
- package/dist/{updateCheck-NU374MVC.js → updateCheck-M2SMSDIO.js} +2 -2
- package/dist/{upgrade-VIWR25J6.js → upgrade-ZUWFB2QM.js} +2 -2
- package/dist/upload-L5TSWWIU.js +16 -0
- package/dist/{urlDownloader-MVZYN7XB.js → urlDownloader-YNI3Y3IE.js} +8 -8
- package/dist/{validate-3HM2XCH4.js → validate-M2M37G47.js} +28 -28
- package/dist/{video-H4ASUN7D.js → video-2OEOTSPQ.js} +10 -10
- package/dist/warmCheck.js +44 -44
- package/package.json +1 -1
- package/dist/chunk-N3CZ437C.js +0 -5035
- package/dist/{chunk-GSNSSFT7.js → chunk-G3ERWPNV.js} +0 -0
- package/dist/{chunk-T5ELONXY.js → chunk-JHILL4BN.js} +0 -0
- package/dist/{destroy-IQLGADZM.js → destroy-C5GQLZVZ.js} +4 -4
- package/dist/{synthesize-YYT7UON6.js → synthesize-YK3WLOEQ.js} +5 -5
|
@@ -4,42 +4,42 @@ 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
|
+
avSync
|
|
9
|
+
} from "./chunk-Q3IT7I2K.js";
|
|
7
10
|
import {
|
|
8
11
|
compareEnergy,
|
|
9
12
|
energyCurve
|
|
10
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3DWH6Z5U.js";
|
|
11
14
|
import {
|
|
12
15
|
contrast,
|
|
13
16
|
drawnFrames,
|
|
14
17
|
drawnVerdict,
|
|
15
18
|
readDrawn,
|
|
16
19
|
scoreDrawnFrame
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OAFGA2FR.js";
|
|
18
21
|
import {
|
|
19
22
|
compareLook,
|
|
20
23
|
look,
|
|
21
24
|
sameLook
|
|
22
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-N74N2I2K.js";
|
|
23
26
|
import {
|
|
24
27
|
faceBoxes
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import {
|
|
27
|
-
avSync
|
|
28
|
-
} from "./chunk-DT6NGXSS.js";
|
|
28
|
+
} from "./chunk-CUYVIDGF.js";
|
|
29
29
|
import {
|
|
30
30
|
parseMask,
|
|
31
31
|
repeated
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-HUJMTTKR.js";
|
|
33
33
|
import {
|
|
34
34
|
classifiedCuts,
|
|
35
35
|
confirmsCut,
|
|
36
36
|
frameChanges,
|
|
37
37
|
signatures
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-7RM3TB62.js";
|
|
39
|
+
import "./chunk-BXYB5NGT.js";
|
|
40
40
|
import "./chunk-NO6F7CLR.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-4W5X4S47.js";
|
|
42
|
+
import "./chunk-ASGRVFQ3.js";
|
|
43
43
|
import {
|
|
44
44
|
Fix,
|
|
45
45
|
decode,
|
|
@@ -52,17 +52,18 @@ import {
|
|
|
52
52
|
probeVideo,
|
|
53
53
|
round,
|
|
54
54
|
runFfmpeg,
|
|
55
|
+
sumOf,
|
|
55
56
|
videoClip,
|
|
56
57
|
writeImage
|
|
57
|
-
} from "./chunk-
|
|
58
|
-
import "./chunk-3XJM7XZN.js";
|
|
58
|
+
} from "./chunk-A33GFLPY.js";
|
|
59
59
|
import "./chunk-TSQZ3DSC.js";
|
|
60
|
+
import "./chunk-3XJM7XZN.js";
|
|
60
61
|
import "./chunk-ETYQYG6Q.js";
|
|
61
62
|
import "./chunk-RZ6CXJ56.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-AVNF52HR.js";
|
|
63
64
|
import {
|
|
64
65
|
readCompositionFps
|
|
65
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-LR5NVYZT.js";
|
|
66
67
|
import "./chunk-A4ZTSQLW.js";
|
|
67
68
|
import "./chunk-BVAPHHMQ.js";
|
|
68
69
|
import {
|
|
@@ -72,18 +73,18 @@ import "./chunk-S3S4TGEH.js";
|
|
|
72
73
|
import {
|
|
73
74
|
c
|
|
74
75
|
} from "./chunk-2GICKZ3I.js";
|
|
75
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-N6FGHJ7X.js";
|
|
76
77
|
import "./chunk-Z5J67X44.js";
|
|
77
78
|
import "./chunk-5S7W3TUO.js";
|
|
78
79
|
import "./chunk-D3MUHMFG.js";
|
|
79
|
-
import "./chunk-
|
|
80
|
+
import "./chunk-PPMCILED.js";
|
|
80
81
|
import "./chunk-YWRUQ7XZ.js";
|
|
81
82
|
import {
|
|
82
83
|
fpsToNumber,
|
|
83
84
|
parseFps
|
|
84
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-W5AUD5OL.js";
|
|
85
86
|
import "./chunk-MEJH7VEA.js";
|
|
86
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-Y3ICFPFK.js";
|
|
87
88
|
import "./chunk-VC76R6W2.js";
|
|
88
89
|
import "./chunk-OFQWTKPW.js";
|
|
89
90
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -94,12 +95,12 @@ import "./chunk-X6JUUQCM.js";
|
|
|
94
95
|
import "./chunk-KGPLIH7B.js";
|
|
95
96
|
import "./chunk-K4MJX7SR.js";
|
|
96
97
|
import "./chunk-WE42NVH7.js";
|
|
97
|
-
import "./chunk-
|
|
98
|
-
import "./chunk-HYRPH6LL.js";
|
|
99
|
-
import "./chunk-WVRAFHJU.js";
|
|
98
|
+
import "./chunk-XX77LLFJ.js";
|
|
100
99
|
import "./chunk-CZGHFATT.js";
|
|
100
|
+
import "./chunk-WVRAFHJU.js";
|
|
101
|
+
import "./chunk-HYRPH6LL.js";
|
|
101
102
|
import "./chunk-C2KEGBR3.js";
|
|
102
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-JHILL4BN.js";
|
|
103
104
|
import "./chunk-FR7YBU3H.js";
|
|
104
105
|
import "./chunk-DPVXBVLL.js";
|
|
105
106
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -110,7 +111,7 @@ import "./chunk-FBN2M2HK.js";
|
|
|
110
111
|
import "./chunk-766MOTIZ.js";
|
|
111
112
|
import {
|
|
112
113
|
withMeta
|
|
113
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-TZBJEKKU.js";
|
|
114
115
|
import "./chunk-BR2JQQC5.js";
|
|
115
116
|
import "./chunk-BLBMPEBX.js";
|
|
116
117
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -122,7 +123,7 @@ import {
|
|
|
122
123
|
} from "./chunk-66W5IWLO.js";
|
|
123
124
|
import "./chunk-J3RXEDR2.js";
|
|
124
125
|
import "./chunk-QBXDU24O.js";
|
|
125
|
-
import "./chunk-
|
|
126
|
+
import "./chunk-AH6MUQQC.js";
|
|
126
127
|
import {
|
|
127
128
|
normalizeErrorMessage
|
|
128
129
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -272,7 +273,7 @@ async function clipUses(project) {
|
|
|
272
273
|
if (!existsSync(index)) return out;
|
|
273
274
|
const [{ ensureDOMParser }, { describeProject }] = await Promise.all([
|
|
274
275
|
import("./dom-VFHEO7VM.js"),
|
|
275
|
-
import("./describeProject-
|
|
276
|
+
import("./describeProject-DN6YQU3X.js")
|
|
276
277
|
]);
|
|
277
278
|
ensureDOMParser();
|
|
278
279
|
const timeline = await describeProject(index);
|
|
@@ -295,7 +296,7 @@ function boxAt(info, times, box, w, h) {
|
|
|
295
296
|
const work = mkdtempSync(join(tmpdir(), "hf-person-"));
|
|
296
297
|
try {
|
|
297
298
|
const filters = [
|
|
298
|
-
`select=${unique.map((k) => `eq(n\\,${k})`)
|
|
299
|
+
`select=${sumOf(unique.map((k) => `eq(n\\,${k})`))}`,
|
|
299
300
|
`scale=${w}:${h}:force_original_aspect_ratio=increase:flags=bicubic`,
|
|
300
301
|
`crop=${w}:${h}`,
|
|
301
302
|
`crop=${box[2]}:${box[3]}:${box[0]}:${box[1]}`,
|
|
@@ -568,7 +569,36 @@ function selectFilter(pick, fpsText) {
|
|
|
568
569
|
const pts = `setpts=N/(${fpsText})/TB`;
|
|
569
570
|
if (pick.kind === "all") return [];
|
|
570
571
|
if (pick.kind === "range") return [`select=between(n\\,${pick.k0}\\,${pick.k1 - 1})`, pts];
|
|
571
|
-
return [`select=${pick.ks.map((k) => `eq(n\\,${k})`)
|
|
572
|
+
return [`select=${sumOf(pick.ks.map((k) => `eq(n\\,${k})`))}`, pts];
|
|
573
|
+
}
|
|
574
|
+
function yoursFilters(pick, fpsText, offset = 0) {
|
|
575
|
+
const rate = offset ? `fps=${fpsText}:start_time=${offset}` : `fps=${fpsText}`;
|
|
576
|
+
const select = selectFilter(pick, fpsText);
|
|
577
|
+
return [rate, ...offset && !select.length ? [`setpts=N/(${fpsText})/TB`] : select];
|
|
578
|
+
}
|
|
579
|
+
function overlapFrames(frames, fps, offset, yoursFrames) {
|
|
580
|
+
const shift = offset * fps;
|
|
581
|
+
const first = Math.min(frames, Math.max(0, Math.ceil(-shift - 1e-6)));
|
|
582
|
+
const end = yoursFrames === void 0 ? frames : Math.min(frames, Math.floor(yoursFrames - 1 - shift + 1e-6) + 1);
|
|
583
|
+
return [first, Math.max(first, end)];
|
|
584
|
+
}
|
|
585
|
+
function clipPick(pick, total, [first, end]) {
|
|
586
|
+
if (pick.kind === "at") return { kind: "at", ks: pick.ks.filter((k) => k >= first && k < end) };
|
|
587
|
+
if (pick.kind === "all" && first <= 0 && end >= total) return pick;
|
|
588
|
+
const [k0, k1] = pick.kind === "range" ? [pick.k0, pick.k1] : [0, total];
|
|
589
|
+
return { kind: "range", k0: Math.max(k0, first), k1: Math.min(k1, end) };
|
|
590
|
+
}
|
|
591
|
+
function captureTimes(ks, fps, offset = 0) {
|
|
592
|
+
return ks.map((k) => offset ? Math.max(0, k / fps + offset) : k / fps);
|
|
593
|
+
}
|
|
594
|
+
function parseOffset(text) {
|
|
595
|
+
const value = typeof text === "string" ? text.trim() : "";
|
|
596
|
+
if (!/^[-+]?(\d+\.?\d*|\.\d+)(e[-+]?\d+)?$/i.test(value) || !Number.isFinite(Number(value)))
|
|
597
|
+
throw new Fix(
|
|
598
|
+
`--offset must be a number of seconds, got "${String(text)}"`,
|
|
599
|
+
"--offset 0.5 when yours runs half a second behind the original, --offset -0.5 when it runs ahead"
|
|
600
|
+
);
|
|
601
|
+
return Number(value);
|
|
572
602
|
}
|
|
573
603
|
var cellSize = (w, h) => [
|
|
574
604
|
Math.floor(w / (2 * GRID)) * 2,
|
|
@@ -741,7 +771,7 @@ function cutReport(ref, yours, k0, fps) {
|
|
|
741
771
|
};
|
|
742
772
|
}
|
|
743
773
|
async function captureProject(projectDir, times, opts, ref) {
|
|
744
|
-
const { captureSnapshots } = await import("./snapshot-
|
|
774
|
+
const { captureSnapshots } = await import("./snapshot-PJUNSMDS.js");
|
|
745
775
|
const shots = mkdtempSync2(join2(tmpdir2(), "hf-diff-shots-"));
|
|
746
776
|
const seq = mkdtempSync2(join2(tmpdir2(), "hf-diff-seq-"));
|
|
747
777
|
try {
|
|
@@ -779,9 +809,13 @@ async function captureProject(projectDir, times, opts, ref) {
|
|
|
779
809
|
}
|
|
780
810
|
};
|
|
781
811
|
}
|
|
782
|
-
function regeneratedVerdict(s, reference, yours, ref, roi) {
|
|
783
|
-
const
|
|
784
|
-
const
|
|
812
|
+
function regeneratedVerdict(s, reference, yours, ref, roi, offset = 0) {
|
|
813
|
+
const from = Math.max(s.start, -offset);
|
|
814
|
+
const seconds = s.end - from;
|
|
815
|
+
const [a, b] = [
|
|
816
|
+
videoClip(reference, from, seconds, ref),
|
|
817
|
+
videoClip(yours, from + offset, seconds)
|
|
818
|
+
];
|
|
785
819
|
const mine = roi && scaleRoi(roi, b.width / ref.width, b.height / ref.height);
|
|
786
820
|
const energy = compareEnergy(energyCurve(a, roi), energyCurve(b, mine));
|
|
787
821
|
const looks = compareLook(look(a, 2, roi), look(b, 2, mine));
|
|
@@ -815,23 +849,7 @@ function cellsOutside(roi, width, height) {
|
|
|
815
849
|
function segmentVerdicts(segments, series, worstCell, ks, ctx) {
|
|
816
850
|
return segments.map((s) => {
|
|
817
851
|
const head = { id: s.id, window: [s.start, s.end], pixels: s.pixels };
|
|
818
|
-
if (s.pixels === "regenerated" && !s.drawn)
|
|
819
|
-
if (ctx.mode !== "video")
|
|
820
|
-
return {
|
|
821
|
-
...head,
|
|
822
|
-
pass: null,
|
|
823
|
-
note: "regenerated pixels are judged on a render: diff a render"
|
|
824
|
-
};
|
|
825
|
-
const moved = regeneratedVerdict(s, ctx.reference, ctx.yours, ctx.ref);
|
|
826
|
-
const person = ctx.person.get(s);
|
|
827
|
-
if (!person || person.pass === null) return { ...head, ...moved };
|
|
828
|
-
return {
|
|
829
|
-
...head,
|
|
830
|
-
pass: person.pass,
|
|
831
|
-
scored: "the person: framing, text carried in the generated clip, lip sync",
|
|
832
|
-
person: { ...person, energy: moved.energy, look: moved.look }
|
|
833
|
-
};
|
|
834
|
-
}
|
|
852
|
+
if (s.pixels === "regenerated" && !s.drawn) return regeneratedSegment(s, head, ctx);
|
|
835
853
|
const [a, b] = [frameAt(s.start, ctx.ref.fps), frameAt(s.end, ctx.ref.fps)];
|
|
836
854
|
const mine = ks.flatMap((k, i) => k >= a && k < b && i < series.frame.length ? [i] : []);
|
|
837
855
|
if (!mine.length)
|
|
@@ -850,6 +868,25 @@ function segmentVerdicts(segments, series, worstCell, ks, ctx) {
|
|
|
850
868
|
};
|
|
851
869
|
});
|
|
852
870
|
}
|
|
871
|
+
function regeneratedSegment(s, head, ctx) {
|
|
872
|
+
if (ctx.mode !== "video")
|
|
873
|
+
return {
|
|
874
|
+
...head,
|
|
875
|
+
pass: null,
|
|
876
|
+
note: "regenerated pixels are judged on a render: diff a render"
|
|
877
|
+
};
|
|
878
|
+
if (s.end <= -ctx.offset)
|
|
879
|
+
return { ...head, pass: null, note: "yours starts after this segment at this offset" };
|
|
880
|
+
const moved = regeneratedVerdict(s, ctx.reference, ctx.yours, ctx.ref, void 0, ctx.offset);
|
|
881
|
+
const person = ctx.person.get(s);
|
|
882
|
+
if (!person || person.pass === null) return { ...head, ...moved };
|
|
883
|
+
return {
|
|
884
|
+
...head,
|
|
885
|
+
pass: person.pass,
|
|
886
|
+
scored: "the person: framing, text carried in the generated clip, lip sync",
|
|
887
|
+
person: { ...person, energy: moved.energy, look: moved.look }
|
|
888
|
+
};
|
|
889
|
+
}
|
|
853
890
|
function lowestCell(mine, series, ks, ref) {
|
|
854
891
|
const means = series.cells[mine[0]].map(
|
|
855
892
|
(_, c3) => mine.reduce((sum, i) => sum + series.cells[i][c3], 0) / mine.length
|
|
@@ -867,7 +904,14 @@ function mixedVerdict(s, head, mine, series, ctx) {
|
|
|
867
904
|
const whole = s.pixels === "regenerated";
|
|
868
905
|
const roi = whole ? [0, 0, ctx.ref.width, ctx.ref.height] : regionRoi(s.regenerated, ctx.ref.width, ctx.ref.height);
|
|
869
906
|
const rest = whole ? [] : cellsOutside(roi, ctx.ref.width, ctx.ref.height);
|
|
870
|
-
const moved = ctx.mode === "video" ? regeneratedVerdict(
|
|
907
|
+
const moved = ctx.mode === "video" ? regeneratedVerdict(
|
|
908
|
+
s,
|
|
909
|
+
ctx.reference,
|
|
910
|
+
ctx.yours,
|
|
911
|
+
ctx.ref,
|
|
912
|
+
whole ? void 0 : roi,
|
|
913
|
+
ctx.offset
|
|
914
|
+
) : void 0;
|
|
871
915
|
const gates = ctx.person.get(s);
|
|
872
916
|
const person = gates || moved ? {
|
|
873
917
|
...gates ?? { gates: { framing: null, text: null, sync: null }, pass: null },
|
|
@@ -1132,7 +1176,7 @@ async function worstMoments(picks, ctx) {
|
|
|
1132
1176
|
images.push(writeImage(join2(ctx.outDir, `${tag}-yours.png`), b, sw, sh));
|
|
1133
1177
|
labels.push(
|
|
1134
1178
|
`original ${t}s`,
|
|
1135
|
-
`yours ${t}s \xB7 ssim ${round(series.frame[i], 3)} \xB7 cell ${round(cells[c2], 2)}`
|
|
1179
|
+
`yours ${round(t + ctx.offset, 3)}s \xB7 ssim ${round(series.frame[i], 3)} \xB7 cell ${round(cells[c2], 2)}`
|
|
1136
1180
|
);
|
|
1137
1181
|
worst.push({
|
|
1138
1182
|
t,
|
|
@@ -1188,9 +1232,10 @@ function soundOffset(reference, yours, ref, mine) {
|
|
|
1188
1232
|
};
|
|
1189
1233
|
return { offset_ms: offset, match: round(best[0], 2), pass: Math.abs(offset) <= 1e3 / ref.fps };
|
|
1190
1234
|
}
|
|
1191
|
-
function sideBySide(reference, yours, ref, out) {
|
|
1235
|
+
function sideBySide(reference, yours, ref, out, offset = 0) {
|
|
1236
|
+
const skip = (seconds) => seconds > 0 ? ["-ss", String(seconds)] : [];
|
|
1192
1237
|
runFfmpeg([
|
|
1193
|
-
...["-y", "-i", reference, "-i", yours, "-filter_complex"],
|
|
1238
|
+
...["-y", ...skip(-offset), "-i", reference, ...skip(offset), "-i", yours, "-filter_complex"],
|
|
1194
1239
|
`[0:v]setsar=1[a];[1:v]scale=${ref.width}:${ref.height},setsar=1[b];[a][b]hstack=inputs=2,pad=ceil(iw/2)*2:ceil(ih/2)*2[v]`,
|
|
1195
1240
|
...["-map", "[v]", "-map", "0:a?", "-c:v", "libx264", "-crf", "20", "-pix_fmt", "yuv420p"],
|
|
1196
1241
|
...["-c:a", "aac", "-shortest", out]
|
|
@@ -1242,31 +1287,40 @@ async function diffVideos(options) {
|
|
|
1242
1287
|
"a project folder is compared at chosen times, not whole",
|
|
1243
1288
|
"pass --at t1,t2 or --range start,end, or render it and diff the render"
|
|
1244
1289
|
);
|
|
1245
|
-
const
|
|
1246
|
-
const
|
|
1247
|
-
if (!
|
|
1290
|
+
const asked = choosePick(opts, ref);
|
|
1291
|
+
const askedKs = pickedFrames(asked, ref.frames);
|
|
1292
|
+
if (!askedKs.length || askedKs.some((k) => k >= ref.frames))
|
|
1248
1293
|
throw new Fix(
|
|
1249
1294
|
`the original has ${ref.frames} frames (${round(ref.duration, 2)} s)`,
|
|
1250
1295
|
"pick times inside it"
|
|
1251
1296
|
);
|
|
1297
|
+
const yoursInfo = mode === "video" ? probeVideo(opts.yours) : void 0;
|
|
1298
|
+
const offset = opts.offset ?? 0;
|
|
1299
|
+
const yoursFrames = yoursInfo && Math.round(yoursInfo.pictureDuration * ref.fps);
|
|
1300
|
+
const pick = offset ? clipPick(asked, ref.frames, overlapFrames(ref.frames, ref.fps, offset, yoursFrames)) : asked;
|
|
1301
|
+
const ks = offset ? pickedFrames(pick, ref.frames) : askedKs;
|
|
1302
|
+
const span = (a, b) => `${round(a, 3)}\u2013${round(b, 3)} s`;
|
|
1303
|
+
const spanOf = (frames, shift = 0) => span(frames[0] / ref.fps + shift, (frames.at(-1) + 1) / ref.fps + shift);
|
|
1304
|
+
if (!ks.length)
|
|
1305
|
+
throw new Fix(
|
|
1306
|
+
`--offset ${offset} leaves no overlap: the original's ${spanOf(askedKs)} falls at ${spanOf(askedKs, offset)} in yours, which runs ${yoursInfo ? span(0, yoursInfo.pictureDuration) : "from 0 s"}`,
|
|
1307
|
+
"pass an --offset that keeps some of the compared times inside yours"
|
|
1308
|
+
);
|
|
1309
|
+
if (ks.length < askedKs.length)
|
|
1310
|
+
warnings.push(
|
|
1311
|
+
`--offset ${offset}: ${askedKs.length - ks.length} of ${askedKs.length} frames fall outside yours, so the original's ${spanOf(ks)} is compared with yours' ${spanOf(ks, offset)}`
|
|
1312
|
+
);
|
|
1252
1313
|
const select = selectFilter(pick, ref.fpsText);
|
|
1253
1314
|
const refClip = { ...videoClip(opts.reference, 0, void 0, ref), filters: select };
|
|
1254
1315
|
let yours;
|
|
1255
1316
|
let seqDir;
|
|
1256
|
-
let yoursInfo;
|
|
1257
1317
|
if (mode === "project") {
|
|
1258
|
-
const captured = await captureProject(
|
|
1259
|
-
opts.yours,
|
|
1260
|
-
ks.map((k) => k / ref.fps),
|
|
1261
|
-
opts,
|
|
1262
|
-
ref
|
|
1263
|
-
);
|
|
1318
|
+
const captured = await captureProject(opts.yours, captureTimes(ks, ref.fps, offset), opts, ref);
|
|
1264
1319
|
[yours, seqDir] = [captured.clip, captured.dir];
|
|
1265
1320
|
} else {
|
|
1266
|
-
yoursInfo = probeVideo(opts.yours);
|
|
1267
1321
|
yours = {
|
|
1268
1322
|
...videoClip(opts.yours, 0, void 0, yoursInfo),
|
|
1269
|
-
filters:
|
|
1323
|
+
filters: yoursFilters(pick, ref.fpsText, offset)
|
|
1270
1324
|
};
|
|
1271
1325
|
}
|
|
1272
1326
|
const offRate = rateWarning(ref, yoursInfo?.fps ?? projectRate(opts.yours));
|
|
@@ -1326,18 +1380,32 @@ async function diffVideos(options) {
|
|
|
1326
1380
|
series,
|
|
1327
1381
|
ks,
|
|
1328
1382
|
ref,
|
|
1329
|
-
outDir: opts.outDir
|
|
1383
|
+
outDir: opts.outDir,
|
|
1384
|
+
offset
|
|
1330
1385
|
});
|
|
1331
1386
|
const cuts = pick.kind === "at" ? void 0 : cutReport(refClip, yours, ks[0], ref.fps);
|
|
1332
|
-
const
|
|
1387
|
+
const whole = yoursInfo && asked.kind === "all";
|
|
1388
|
+
const lengths = yoursInfo && {
|
|
1333
1389
|
reference: round(ref.pictureDuration, 3),
|
|
1334
|
-
yours: round(yoursInfo.pictureDuration, 3)
|
|
1390
|
+
yours: round(yoursInfo.pictureDuration, 3)
|
|
1391
|
+
};
|
|
1392
|
+
const duration = whole && lengths ? offset ? {
|
|
1393
|
+
...lengths,
|
|
1394
|
+
pass: null,
|
|
1395
|
+
note: "not measured: --offset shifts yours against the original, so the whole lengths do not compare"
|
|
1396
|
+
} : {
|
|
1397
|
+
...lengths,
|
|
1335
1398
|
pass: Math.abs(ref.pictureDuration - yoursInfo.pictureDuration) <= 1.5 / ref.fps
|
|
1336
1399
|
} : void 0;
|
|
1337
1400
|
const ledgerText = opts.ledger && existsSync2(opts.ledger) ? readFileSync2(opts.ledger, "utf8") : void 0;
|
|
1338
1401
|
const people = /* @__PURE__ */ new Map();
|
|
1339
1402
|
let clips = [];
|
|
1340
|
-
|
|
1403
|
+
const regenerated = opts.segments?.some((s) => s.regenerated || s.pixels === "regenerated");
|
|
1404
|
+
if (offset && regenerated && yoursInfo)
|
|
1405
|
+
warnings.push(
|
|
1406
|
+
`--offset ${offset}: the person's framing, carried text and lip sync are not measured with an offset; motion and look are, on yours' shifted clock`
|
|
1407
|
+
);
|
|
1408
|
+
if (opts.segments && yoursInfo && !offset) {
|
|
1341
1409
|
const project = opts.project ?? (opts.ledger && basename(dirname(opts.ledger)) === ".media" ? dirname(dirname(opts.ledger)) : void 0);
|
|
1342
1410
|
const refCuts = cuts?.reference ?? [];
|
|
1343
1411
|
const uses = project ? await clipUses(project).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
@@ -1367,7 +1435,8 @@ async function diffVideos(options) {
|
|
|
1367
1435
|
mode,
|
|
1368
1436
|
t,
|
|
1369
1437
|
drawn: scoreDrawn(opts.segments, refClip, yours, ks, ref, series.frame.length),
|
|
1370
|
-
person: people
|
|
1438
|
+
person: people,
|
|
1439
|
+
offset
|
|
1371
1440
|
}) : void 0;
|
|
1372
1441
|
if (opts.segments) warnings.push(...regionWarnings(opts.segments, ref));
|
|
1373
1442
|
const elements = opts.drawn?.length ? scoreElements(
|
|
@@ -1405,8 +1474,8 @@ async function diffVideos(options) {
|
|
|
1405
1474
|
warnings.push(
|
|
1406
1475
|
`${Math.round(reuse.share * 100)}% of frames play the original's whole frame: pass --segments <file> to tell footage from copied drawings`
|
|
1407
1476
|
);
|
|
1408
|
-
const sound =
|
|
1409
|
-
const sbs = opts.sbs && mode === "video" ? sideBySide(opts.reference, opts.yours, ref, join2(opts.outDir, "sbs.mp4")) : void 0;
|
|
1477
|
+
const sound = whole ? soundOffset(opts.reference, opts.yours, ref, yoursInfo) : void 0;
|
|
1478
|
+
const sbs = opts.sbs && mode === "video" ? sideBySide(opts.reference, opts.yours, ref, join2(opts.outDir, "sbs.mp4"), offset) : void 0;
|
|
1410
1479
|
const judged = segments ? segments.every((s) => s.pass !== false) : passes(overall, t);
|
|
1411
1480
|
const top = segments ? headline(
|
|
1412
1481
|
segments,
|
|
@@ -1436,6 +1505,7 @@ async function diffVideos(options) {
|
|
|
1436
1505
|
...sbs ? { sbs } : {},
|
|
1437
1506
|
log: logPath,
|
|
1438
1507
|
frames: join2(opts.outDir, "frames.tsv"),
|
|
1508
|
+
...options.offset === void 0 ? {} : { offset: options.offset },
|
|
1439
1509
|
warnings
|
|
1440
1510
|
};
|
|
1441
1511
|
} finally {
|
|
@@ -1569,7 +1639,7 @@ function printHuman(r) {
|
|
|
1569
1639
|
);
|
|
1570
1640
|
if (r.duration)
|
|
1571
1641
|
console.log(
|
|
1572
|
-
` duration: original ${r.duration.reference} s, yours ${r.duration.yours} s${r.duration.pass ? "" : " (differ)"}`
|
|
1642
|
+
` duration: original ${r.duration.reference} s, yours ${r.duration.yours} s${r.duration.pass === null ? ` (${r.duration.note})` : r.duration.pass ? "" : " (differ)"}`
|
|
1573
1643
|
);
|
|
1574
1644
|
if (r.sound)
|
|
1575
1645
|
console.log(
|
|
@@ -1619,11 +1689,15 @@ var diff_default = defineCommand({
|
|
|
1619
1689
|
reference: { type: "positional", description: "The original video", required: true },
|
|
1620
1690
|
yours: {
|
|
1621
1691
|
type: "positional",
|
|
1622
|
-
description: "A rendered video, or a project folder (captured at the original's frame times, no render)",
|
|
1623
|
-
required:
|
|
1692
|
+
description: "A rendered video, or a project folder (captured at the original's frame times, no render) (required)",
|
|
1693
|
+
required: false
|
|
1624
1694
|
},
|
|
1625
1695
|
at: { type: "string", description: "Compare only these seconds, e.g. 0.5,2.4" },
|
|
1626
1696
|
range: { type: "string", description: "Compare every frame of start,end seconds" },
|
|
1697
|
+
offset: {
|
|
1698
|
+
type: "string",
|
|
1699
|
+
description: "Compare the original at t with yours at t + offset seconds (may be negative)"
|
|
1700
|
+
},
|
|
1627
1701
|
segments: {
|
|
1628
1702
|
type: "string",
|
|
1629
1703
|
description: "A file of `## S01 \xB7 a\u2013b s` segments: a verdict per segment (Pixels: regenerated compares motion and look)"
|
|
@@ -1672,6 +1746,11 @@ var diff_default = defineCommand({
|
|
|
1672
1746
|
try {
|
|
1673
1747
|
if (args.at !== void 0 && args.range !== void 0)
|
|
1674
1748
|
throw new Fix("--at and --range both given", "pass one of them");
|
|
1749
|
+
if (args.yours === void 0)
|
|
1750
|
+
throw new Fix(
|
|
1751
|
+
"diff compares two: the original and yours",
|
|
1752
|
+
"hyperframes diff <original.mp4> <your render.mp4 | your project folder>"
|
|
1753
|
+
);
|
|
1675
1754
|
const yours = resolve2(String(args.yours));
|
|
1676
1755
|
const stem = basename2(yours, extname(yours)) || "project";
|
|
1677
1756
|
const segmentsFile = args.segments === void 0 ? void 0 : resolve2(String(args.segments));
|
|
@@ -1684,6 +1763,7 @@ var diff_default = defineCommand({
|
|
|
1684
1763
|
ledger: args.ledger === void 0 ? findLedger(yours, segmentsFile) : resolve2(String(args.ledger)),
|
|
1685
1764
|
project: args.project === void 0 ? void 0 : resolve2(String(args.project)),
|
|
1686
1765
|
drawn: repeated(rawArgs, "--drawn").map(parseDrawn),
|
|
1766
|
+
offset: args.offset === void 0 ? void 0 : parseOffset(args.offset),
|
|
1687
1767
|
thresholds: {
|
|
1688
1768
|
mean: number(args["min-mean"], "--min-mean"),
|
|
1689
1769
|
p05: number(args["min-p05"], "--min-p05"),
|
|
@@ -0,0 +1,197 @@
|
|
|
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
|
+
MAX_UPLOAD_BYTES,
|
|
9
|
+
MIME_TYPES,
|
|
10
|
+
PREVIEW_BUNDLE_OPTIONS,
|
|
11
|
+
affectsPreview,
|
|
12
|
+
applyFileMutations,
|
|
13
|
+
buildSubCompositionHtml,
|
|
14
|
+
clearElementScreenshotIsolation,
|
|
15
|
+
compositionsAffectedBy,
|
|
16
|
+
createBackgroundRemovalJob,
|
|
17
|
+
createPreviewDocumentStore,
|
|
18
|
+
createStudioApi,
|
|
19
|
+
duplicateElementInHtml,
|
|
20
|
+
getElementScreenshotClip,
|
|
21
|
+
getMimeType,
|
|
22
|
+
stampProjectHfIds,
|
|
23
|
+
stampProjectHfIdsAsync,
|
|
24
|
+
thumbnailDeviceScaleFactor
|
|
25
|
+
} from "./chunk-NCP3JQ6S.js";
|
|
26
|
+
import {
|
|
27
|
+
dedupeClonedCompositionId,
|
|
28
|
+
findTargetElement,
|
|
29
|
+
parseSourceDocument,
|
|
30
|
+
patchElementInHtml,
|
|
31
|
+
removeElementFromHtml,
|
|
32
|
+
splitElementInHtml
|
|
33
|
+
} from "./chunk-JZPUXDQE.js";
|
|
34
|
+
import "./chunk-AW3XJY4S.js";
|
|
35
|
+
import {
|
|
36
|
+
requestSubPath
|
|
37
|
+
} from "./chunk-CPMTEWQM.js";
|
|
38
|
+
import {
|
|
39
|
+
DEFAULT_HISTORY_ROOT,
|
|
40
|
+
DELETED_VERSION,
|
|
41
|
+
HistoryBusyError,
|
|
42
|
+
HistoryClosedError,
|
|
43
|
+
HistoryIdError,
|
|
44
|
+
HistoryRefusedError,
|
|
45
|
+
MAX_WINDOW_IDLE_MS,
|
|
46
|
+
START,
|
|
47
|
+
STUDIO_SIGNATURE_MANIFEST_PATHS,
|
|
48
|
+
UNDO_MODES,
|
|
49
|
+
affectsProjectSignature,
|
|
50
|
+
artifactDirectory,
|
|
51
|
+
beginArtifactCapture,
|
|
52
|
+
consumeFileWriteReceipt,
|
|
53
|
+
createProjectSignature,
|
|
54
|
+
createProjectSignatureAsync,
|
|
55
|
+
fileContentVersion,
|
|
56
|
+
finishSnapshotRun,
|
|
57
|
+
forgetRecordedArtifacts,
|
|
58
|
+
historyCache,
|
|
59
|
+
identifyFileWrite,
|
|
60
|
+
isUncopiedMedia,
|
|
61
|
+
listProjectHistories,
|
|
62
|
+
onRestoredInPlace,
|
|
63
|
+
openProjectHistory,
|
|
64
|
+
pruneGoneProjectHistories,
|
|
65
|
+
readProjectHistory,
|
|
66
|
+
reclaimUncopiedBlobs,
|
|
67
|
+
recordArtifact,
|
|
68
|
+
recordArtifacts,
|
|
69
|
+
recordRenderSuccess,
|
|
70
|
+
registerRenderOutput,
|
|
71
|
+
retainSnapshotOutput,
|
|
72
|
+
settledFileTag
|
|
73
|
+
} from "./chunk-XLPCBE2Q.js";
|
|
74
|
+
import {
|
|
75
|
+
CACHE_DIR_NAME,
|
|
76
|
+
cleanupProxyCache
|
|
77
|
+
} from "./chunk-MDMQD6BV.js";
|
|
78
|
+
import "./chunk-2QMEP4LR.js";
|
|
79
|
+
import {
|
|
80
|
+
STUDIO_MOTION_PATH,
|
|
81
|
+
createStudioMotionRenderBodyScript,
|
|
82
|
+
walkDir
|
|
83
|
+
} from "./chunk-ALVXFXUG.js";
|
|
84
|
+
import "./chunk-W4DMQZL5.js";
|
|
85
|
+
import "./chunk-A4ZTSQLW.js";
|
|
86
|
+
import {
|
|
87
|
+
MAX_OPEN_MEDIA_RANGE_BYTES,
|
|
88
|
+
openRangeEnd
|
|
89
|
+
} from "./chunk-VEIGTKYZ.js";
|
|
90
|
+
import {
|
|
91
|
+
STUDIO_MANUAL_EDITS_PATH,
|
|
92
|
+
createStudioManualEditsRenderBodyScript,
|
|
93
|
+
createStudioPositionSeekReapplyScript
|
|
94
|
+
} from "./chunk-EVMY7IPL.js";
|
|
95
|
+
import "./chunk-7FMUTGOH.js";
|
|
96
|
+
import "./chunk-5S7W3TUO.js";
|
|
97
|
+
import "./chunk-D3MUHMFG.js";
|
|
98
|
+
import "./chunk-PPMCILED.js";
|
|
99
|
+
import "./chunk-YWRUQ7XZ.js";
|
|
100
|
+
import "./chunk-W5AUD5OL.js";
|
|
101
|
+
import "./chunk-MEJH7VEA.js";
|
|
102
|
+
import "./chunk-Y3ICFPFK.js";
|
|
103
|
+
import "./chunk-VC76R6W2.js";
|
|
104
|
+
import {
|
|
105
|
+
isSafePath
|
|
106
|
+
} from "./chunk-OFQWTKPW.js";
|
|
107
|
+
import "./chunk-RQVDTPGD.js";
|
|
108
|
+
import "./chunk-TK7THLRO.js";
|
|
109
|
+
import "./chunk-FXMKHHPO.js";
|
|
110
|
+
import "./chunk-XX77LLFJ.js";
|
|
111
|
+
import "./chunk-CZGHFATT.js";
|
|
112
|
+
import "./chunk-WVRAFHJU.js";
|
|
113
|
+
import "./chunk-HYRPH6LL.js";
|
|
114
|
+
import {
|
|
115
|
+
decodeWellFormedEscapes
|
|
116
|
+
} from "./chunk-C2KEGBR3.js";
|
|
117
|
+
import "./chunk-JHILL4BN.js";
|
|
118
|
+
import "./chunk-FR7YBU3H.js";
|
|
119
|
+
import "./chunk-DPVXBVLL.js";
|
|
120
|
+
import "./chunk-GWTIFRF5.js";
|
|
121
|
+
import "./chunk-2RY2LWAA.js";
|
|
122
|
+
import "./chunk-EPQC3FGZ.js";
|
|
123
|
+
import "./chunk-WC4MTXGN.js";
|
|
124
|
+
import "./chunk-766MOTIZ.js";
|
|
125
|
+
import "./chunk-M2WBOQ2Q.js";
|
|
126
|
+
export {
|
|
127
|
+
DEFAULT_HISTORY_ROOT,
|
|
128
|
+
DELETED_VERSION,
|
|
129
|
+
START as HISTORY_START,
|
|
130
|
+
HistoryBusyError,
|
|
131
|
+
HistoryClosedError,
|
|
132
|
+
HistoryIdError,
|
|
133
|
+
HistoryRefusedError,
|
|
134
|
+
MAX_OPEN_MEDIA_RANGE_BYTES,
|
|
135
|
+
MAX_UPLOAD_BYTES,
|
|
136
|
+
MAX_WINDOW_IDLE_MS,
|
|
137
|
+
MIME_TYPES,
|
|
138
|
+
PREVIEW_BUNDLE_OPTIONS,
|
|
139
|
+
CACHE_DIR_NAME as PROXY_CACHE_DIR_NAME,
|
|
140
|
+
STUDIO_MANUAL_EDITS_PATH,
|
|
141
|
+
STUDIO_MOTION_PATH,
|
|
142
|
+
STUDIO_SIGNATURE_MANIFEST_PATHS,
|
|
143
|
+
UNDO_MODES,
|
|
144
|
+
affectsPreview,
|
|
145
|
+
affectsProjectSignature,
|
|
146
|
+
applyFileMutations,
|
|
147
|
+
artifactDirectory,
|
|
148
|
+
beginArtifactCapture,
|
|
149
|
+
buildSubCompositionHtml,
|
|
150
|
+
cleanupProxyCache,
|
|
151
|
+
clearElementScreenshotIsolation,
|
|
152
|
+
compositionsAffectedBy,
|
|
153
|
+
consumeFileWriteReceipt,
|
|
154
|
+
createBackgroundRemovalJob,
|
|
155
|
+
createPreviewDocumentStore,
|
|
156
|
+
createProjectSignature,
|
|
157
|
+
createProjectSignatureAsync,
|
|
158
|
+
createStudioApi,
|
|
159
|
+
createStudioManualEditsRenderBodyScript,
|
|
160
|
+
createStudioMotionRenderBodyScript,
|
|
161
|
+
createStudioPositionSeekReapplyScript,
|
|
162
|
+
decodeWellFormedEscapes,
|
|
163
|
+
dedupeClonedCompositionId,
|
|
164
|
+
duplicateElementInHtml,
|
|
165
|
+
fileContentVersion,
|
|
166
|
+
findTargetElement,
|
|
167
|
+
finishSnapshotRun,
|
|
168
|
+
forgetRecordedArtifacts,
|
|
169
|
+
getElementScreenshotClip,
|
|
170
|
+
getMimeType,
|
|
171
|
+
historyCache,
|
|
172
|
+
identifyFileWrite,
|
|
173
|
+
isSafePath,
|
|
174
|
+
isUncopiedMedia,
|
|
175
|
+
listProjectHistories,
|
|
176
|
+
onRestoredInPlace,
|
|
177
|
+
openProjectHistory,
|
|
178
|
+
openRangeEnd,
|
|
179
|
+
parseSourceDocument,
|
|
180
|
+
patchElementInHtml,
|
|
181
|
+
pruneGoneProjectHistories,
|
|
182
|
+
readProjectHistory,
|
|
183
|
+
reclaimUncopiedBlobs,
|
|
184
|
+
recordArtifact,
|
|
185
|
+
recordArtifacts,
|
|
186
|
+
recordRenderSuccess,
|
|
187
|
+
registerRenderOutput,
|
|
188
|
+
removeElementFromHtml,
|
|
189
|
+
requestSubPath,
|
|
190
|
+
retainSnapshotOutput,
|
|
191
|
+
settledFileTag,
|
|
192
|
+
splitElementInHtml,
|
|
193
|
+
stampProjectHfIds,
|
|
194
|
+
stampProjectHfIdsAsync,
|
|
195
|
+
thumbnailDeviceScaleFactor,
|
|
196
|
+
walkDir
|
|
197
|
+
};
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
serializeVfxChain,
|
|
97
97
|
toFps,
|
|
98
98
|
validateVariables
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-W5AUD5OL.js";
|
|
100
100
|
import "./chunk-MEJH7VEA.js";
|
|
101
101
|
import {
|
|
102
102
|
AUDIBLE_MEDIA_SELECTOR,
|
|
@@ -161,7 +161,7 @@ import {
|
|
|
161
161
|
sourceTimeAt,
|
|
162
162
|
stripEmbeddedRuntimeScripts,
|
|
163
163
|
timeAtSourceTime
|
|
164
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-Y3ICFPFK.js";
|
|
165
165
|
import "./chunk-VC76R6W2.js";
|
|
166
166
|
import {
|
|
167
167
|
ProjectRootMissingError,
|
|
@@ -237,7 +237,7 @@ import {
|
|
|
237
237
|
updateElementInHtml,
|
|
238
238
|
validateCompositionGsap,
|
|
239
239
|
validateCompositionHtml
|
|
240
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-JHILL4BN.js";
|
|
241
241
|
import "./chunk-FR7YBU3H.js";
|
|
242
242
|
import "./chunk-DPVXBVLL.js";
|
|
243
243
|
import "./chunk-GWTIFRF5.js";
|