hyperframes 0.9.7 → 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-WLXYFHMC.js → add-FQX5F6PC.js} +12 -12
- package/dist/{agentPromptGenerator-2SMADJAL.js → agentPromptGenerator-XNGPKVEX.js} +9 -9
- package/dist/{animatedGifPrep-4WCFONEJ.js → animatedGifPrep-E3PYKFJ3.js} +9 -9
- package/dist/api.js +29 -28
- package/dist/{asset-UQBTWAMJ.js → asset-X5GG5TTP.js} +2 -2
- package/dist/{assetCataloger-GOUD7VDG.js → assetCataloger-SDFP4DWL.js} +10 -10
- package/dist/{audio-LDVXMRHU.js → audio-DDTYFS23.js} +28 -28
- package/dist/{auth-6LVATNTF.js → auth-OAWLDT3A.js} +2 -2
- package/dist/{autoUpdate-X6KZRI5E.js → autoUpdate-BWIPXW2W.js} +23 -16
- package/dist/{backgroundChecks-3HGGWYLY.js → backgroundChecks-YJ5NRMBA.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-4ISYYVPQ.js → batchRender-ZDL65J7N.js} +4 -4
- package/dist/{beats-WN2KYIK3.js → beats-Q2TIAA7S.js} +11 -11
- package/dist/{benchmark-HZPGQ2MP.js → benchmark-I3GRHFIN.js} +9 -9
- package/dist/{billing-3Q2EAZFJ.js → billing-W224NIAM.js} +12 -2
- package/dist/{browser-6XC7MTQL.js → browser-F24WMZ52.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-ZZ6Y4CEO.js → bundleWithLocalizedFonts-K5CQPNIZ.js} +2 -2
- package/dist/{capture-46LJ2VU2.js → capture-HLC6I4RE.js} +3 -3
- package/dist/{capture-FCLAEX5L.js → capture-UKWY3SZQ.js} +22 -22
- package/dist/{captureCompositionFrame-SMUDCZ2L.js → captureCompositionFrame-YMB3CKSP.js} +14 -14
- package/dist/{catalog-72AEDDEG.js → catalog-H7SOITD6.js} +12 -12
- package/dist/{catch-up-6WIX7SWV.js → catch-up-YRGPVEM6.js} +4 -4
- package/dist/{check-R2G5OYIA.js → check-BPQZZ2MO.js} +44 -44
- package/dist/{checkAudio-2RP7BNQ3.js → checkAudio-4NRQ3WGS.js} +17 -17
- package/dist/{checkBrowser-OWLF2BT4.js → checkBrowser-S66AHKW3.js} +37 -37
- package/dist/{chunk-Y2R4N6HQ.js → chunk-2NGBIAUF.js} +25 -20
- package/dist/{chunk-SXGXJAA7.js → chunk-2QMEP4LR.js} +1 -1
- package/dist/{chunk-PYWJGSWO.js → chunk-2ROPUTCS.js} +1 -1
- package/dist/{chunk-FLDSZTHP.js → chunk-2Y575PWJ.js} +2 -2
- package/dist/{chunk-PG356QHK.js → chunk-322AG75G.js} +2 -2
- package/dist/{chunk-CUCDUPTA.js → chunk-3DWH6Z5U.js} +1 -1
- package/dist/{chunk-6A45RKAK.js → chunk-3XJM7XZN.js} +136 -35
- package/dist/{chunk-LIA4GZ4F.js → chunk-42TYQPES.js} +2 -2
- package/dist/{chunk-V6MZZEA7.js → chunk-4W5X4S47.js} +48 -49
- package/dist/{chunk-3Q7UFKFN.js → chunk-5YIZRU2L.js} +3 -3
- package/dist/{chunk-X3DTUYKZ.js → chunk-62ATHBDS.js} +27 -17
- package/dist/{chunk-PPNA6EBI.js → chunk-63GTSNMY.js} +6 -6
- package/dist/{chunk-46HMQ4I3.js → chunk-6DKWOG7L.js} +1 -1
- package/dist/{chunk-C3FKYBZ4.js → chunk-6HO6QKYG.js} +9 -9
- package/dist/{chunk-X2PPRHKO.js → chunk-6KV3CMY2.js} +1 -1
- package/dist/{chunk-P7CVKVPD.js → chunk-6UZLHLFP.js} +2 -2
- package/dist/{chunk-PUMQDN2T.js → chunk-7RM3TB62.js} +29 -2
- package/dist/{chunk-UQH3MOES.js → chunk-7W5ZDOLW.js} +2 -2
- package/dist/{chunk-YHO5SKUR.js → chunk-A2NFFVWH.js} +5 -5
- package/dist/{chunk-RJ6LXDUC.js → chunk-A33GFLPY.js} +22 -2
- package/dist/{chunk-74VSOKKS.js → chunk-ABI256T5.js} +1 -1
- package/dist/{chunk-T252SG67.js → chunk-AH6MUQQC.js} +2 -2
- package/dist/{chunk-QXVW22VM.js → chunk-ASGRVFQ3.js} +1 -0
- package/dist/{chunk-HZG42ZYW.js → chunk-AUYRWWFL.js} +3 -3
- package/dist/{chunk-DZNJD7BH.js → chunk-AVNF52HR.js} +1 -1
- package/dist/{chunk-WAURLEUO.js → chunk-B5GWDPUO.js} +3 -3
- package/dist/{chunk-XFA6NPMP.js → chunk-BBP5KGYS.js} +3 -3
- package/dist/{chunk-TBCRTIXP.js → chunk-BHL4KN3H.js} +2 -2
- package/dist/{chunk-OO7U23BR.js → chunk-BX2JB24X.js} +1 -1
- package/dist/{chunk-CTPYBHF3.js → chunk-BXYB5NGT.js} +2 -2
- package/dist/{chunk-QXUDHDJU.js → chunk-BYC4C4YY.js} +9 -9
- package/dist/{chunk-RWHCRVZV.js → chunk-C3NC67BB.js} +8 -8
- package/dist/{chunk-CX6MGY2B.js → chunk-CBPBTQBH.js} +13 -13
- package/dist/{chunk-IXGZ6YFZ.js → chunk-CNX3WKQ5.js} +30 -8
- package/dist/{chunk-NEI65CWG.js → chunk-CPMTEWQM.js} +3 -3
- package/dist/{chunk-P73MHFBX.js → chunk-CUYVIDGF.js} +4 -3
- package/dist/{chunk-XKTLYF4N.js → chunk-DIKIN4BA.js} +29 -29
- package/dist/{chunk-KD22R2UE.js → chunk-E2YXF2EP.js} +3 -3
- package/dist/{chunk-NFNYH6VQ.js → chunk-EBUA6NWH.js} +2 -2
- package/dist/{chunk-RY7Z6KFS.js → chunk-EN6MPNZT.js} +4 -4
- package/dist/{chunk-CE7EQUBV.js → chunk-G3ERWPNV.js} +1 -1
- package/dist/{chunk-DOS6S7HW.js → chunk-GAKRZZHQ.js} +2 -2
- package/dist/{chunk-X4K7Q5PT.js → chunk-GIYZMGYT.js} +1 -1
- package/dist/{chunk-WZGVBZY6.js → chunk-H534266X.js} +2 -2
- package/dist/{chunk-7XRS2NDR.js → chunk-HBHLCMOQ.js} +7 -7
- package/dist/{chunk-FYR2GKAA.js → chunk-HUJMTTKR.js} +163 -32
- package/dist/{chunk-LFDPOL45.js → chunk-JZPUXDQE.js} +4 -4
- package/dist/{chunk-TSCO4XR4.js → chunk-LR5NVYZT.js} +1 -1
- package/dist/{chunk-XEP7PGXS.js → chunk-LTBBFLOM.js} +1 -1
- package/dist/{chunk-LCDXHXYH.js → chunk-LV5SL4YW.js} +2 -2
- package/dist/{chunk-Q3SKYJGG.js → chunk-M6JFR7KF.js} +18 -5
- package/dist/{chunk-2BARV2ZU.js → chunk-MDMQD6BV.js} +6 -6
- package/dist/{chunk-3LHJHMFK.js → chunk-MWHTLXG4.js} +4 -54
- package/dist/{chunk-3YJB4QVS.js → chunk-MY4PAH7C.js} +1 -1
- package/dist/{chunk-IAZ2A7D6.js → chunk-N6FGHJ7X.js} +53 -29
- package/dist/{chunk-GK3OROLS.js → chunk-N74N2I2K.js} +1 -1
- package/dist/{chunk-3AH6KE6F.js → chunk-NCP3JQ6S.js} +109 -96
- package/dist/{chunk-E3IBPTX7.js → chunk-NNF6G2UH.js} +1 -1
- package/dist/{chunk-M336YVCP.js → chunk-NWQFOHXF.js} +1 -1
- package/dist/{chunk-UDY3FS6G.js → chunk-NX2X326Z.js} +9 -9
- package/dist/{chunk-7LCZBNX7.js → chunk-OAFGA2FR.js} +4 -3
- package/dist/{chunk-FYDFHW22.js → chunk-OYAZODSP.js} +28 -28
- package/dist/{chunk-SE6O4APZ.js → chunk-PPMCILED.js} +37 -5
- package/dist/{chunk-E4XS2M2E.js → chunk-Q3IT7I2K.js} +1 -1
- package/dist/{chunk-SIJYH7XM.js → chunk-QOF7XZEI.js} +1 -1
- package/dist/{chunk-SEJ7UBR2.js → chunk-QRCORKYC.js} +2 -2
- package/dist/{chunk-YTWTG67C.js → chunk-QUBVGS27.js} +6 -6
- package/dist/{chunk-IOECRDWX.js → chunk-R7EKEIAK.js} +1 -1
- package/dist/{chunk-HRSZOW3U.js → chunk-S2UKSI3C.js} +1 -1
- package/dist/{chunk-C7XW5WPZ.js → chunk-SG4YBQPY.js} +2 -2
- package/dist/chunk-SRVAYGTN.js +62 -0
- package/dist/{chunk-2X43RFKM.js → chunk-SSZTRWKQ.js} +2 -2
- package/dist/{chunk-ULH6TLE3.js → chunk-TJ2USKCK.js} +1 -1
- package/dist/{chunk-6IW2HWYI.js → chunk-TZBJEKKU.js} +1 -1
- package/dist/{chunk-HBCY63DS.js → chunk-UWYHZCEQ.js} +2 -2
- package/dist/{chunk-XXEOJXXY.js → chunk-V74HSKGY.js} +1 -1
- package/dist/{chunk-EG7FZSEF.js → chunk-VM6T3Z6B.js} +1 -1
- package/dist/{chunk-IX3R4BKU.js → chunk-VNR7LSN4.js} +50 -11
- package/dist/{chunk-ZVERYNYS.js → chunk-VZ5O7A77.js} +1 -1
- package/dist/{chunk-N6O2RQLQ.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-KDTOB4TD.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-AWQE37H3.js → chunk-YTNHZT47.js} +2 -2
- package/dist/{chunk-LAZREIJF.js → chunk-ZD3MK4H5.js} +1 -1
- package/dist/{chunk-GBEGZOP3.js → chunk-ZLN3AJKT.js} +1 -1
- package/dist/{clean-52TVJH4U.js → clean-RCXKQNFM.js} +23 -23
- package/dist/cli.js +61 -60
- package/dist/{cloud-FEPPMA5F.js → cloud-TQPQZRC5.js} +4 -4
- package/dist/cloud-Z3FNCC4T.js +39 -0
- package/dist/{cloudrun-DFWQ7ZJW.js → cloudrun-N737TJRC.js} +6 -6
- package/dist/{compare-UBQUKWOB.js → compare-EO32AASM.js} +34 -34
- package/dist/{compiler-UCJ4KC75.js → compiler-NAIDMQFU.js} +6 -6
- package/dist/{component-6YUQ2XAM.js → component-S3TYNVCR.js} +3 -3
- package/dist/{compositions-KGZO4UYR.js → compositions-4TXRLZ3M.js} +15 -15
- package/dist/{curve-VISYHZKL.js → curve-HGLOP2GY.js} +13 -13
- package/dist/{cuts-HCWYCBI2.js → cuts-VNFIISLL.js} +14 -14
- package/dist/{delete-CNKHLEDS.js → delete-TIWI3G7X.js} +7 -5
- package/dist/{deploy-TS3R7DTD.js → deploy-EHPNOGSY.js} +6 -6
- package/dist/{describeProject-6TNE4FY4.js → describeProject-DN6YQU3X.js} +10 -10
- package/dist/{deterministicFonts-H4RC6TOJ.js → deterministicFonts-GQMT52JQ.js} +2 -2
- package/dist/{diff-YRBYR56R.js → diff-46JK5ZCL.js} +156 -75
- package/dist/dist-CCPYPKOC.js +197 -0
- package/dist/{dist-T57O7KXT.js → dist-GUX66F7V.js} +3 -3
- package/dist/{dist-H4C7ZCFU.js → dist-PCVNVAVC.js} +4 -4
- package/dist/{doctor-PLA77GFC.js → doctor-LD23DW4N.js} +13 -13
- package/dist/{energy-7BTNGNR7.js → energy-YZ3DB6AI.js} +14 -14
- package/dist/{events-IMWCEFSZ.js → events-3OWNDNJX.js} +3 -3
- package/dist/{events-QTM2OEFB.js → events-DRTMYSQ6.js} +2 -2
- package/dist/{events-25FIG2O6.js → events-MQIKCKA5.js} +16 -16
- package/dist/{extract-C66C5A22.js → extract-F3NBE3X5.js} +14 -14
- package/dist/{face-MDOI2JO5.js → face-ZU7ZDYGO.js} +14 -14
- package/dist/{feedback-26OSAZF3.js → feedback-37M37Y4F.js} +8 -8
- package/dist/{ffmpeg-R5ND25AV.js → ffmpeg-PERZ6YHQ.js} +9 -9
- package/dist/{figma-276JAPS4.js → figma-55AG42NN.js} +3 -3
- package/dist/fontLocalizeCli.js +15 -15
- package/dist/{frames-AMLBNI5B.js → frames-DJA3CFSY.js} +19 -16
- package/dist/{generate-YIZS4JFA.js → generate-BVJ5XNWP.js} +18 -17
- package/dist/{get-HFEFIRAJ.js → get-PGLCWEBG.js} +7 -5
- package/dist/{gpuPolicy-7JA66MJG.js → gpuPolicy-DUNSQM6M.js} +9 -9
- package/dist/{grade-compare-7NH6XYIY.js → grade-compare-R6Q6G6WP.js} +34 -34
- package/dist/{heifImagePrep-WCL36MHY.js → heifImagePrep-YNPHFR6W.js} +10 -10
- package/dist/{help-HHIAUMBQ.js → help-4SNDXHWQ.js} +2 -1
- package/dist/{history-SLWPRU6Q.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-MIPROXSM.js → info-U4VDKU2Y.js} +8 -8
- package/dist/{init-T56UGI6Z.js → init-2RUVBHQO.js} +29 -29
- package/dist/{ink-TY7CKC6Q.js → ink-TX3USU7X.js} +14 -14
- package/dist/{inspect-TIF7YHGN.js → inspect-MAGHXEWS.js} +34 -34
- package/dist/{installer-72QUKTPE.js → installer-PUQYKLXZ.js} +5 -5
- package/dist/{keyframes-I4JRA37J.js → keyframes-2TDECIQZ.js} +6 -6
- package/dist/{lambda-VGFSEG56.js → lambda-CRVYDETX.js} +15 -15
- package/dist/{layout-K776Z2IS.js → layout-I3VNHWJH.js} +34 -34
- package/dist/{lint-XLTSC66T.js → lint-MCVWXDJX.js} +10 -10
- package/dist/{lintProject-NZADSVSU.js → lintProject-EV3EEBY3.js} +4 -4
- package/dist/{list-6V3IKLXF.js → list-FJJNWPM6.js} +7 -5
- package/dist/{localPage-RM6EXBBT.js → localPage-6MQ6YFER.js} +9 -9
- package/dist/{login-HD47X3JE.js → login-YAZZWYFK.js} +4 -4
- package/dist/{look-KUDJYDTK.js → look-U5UHXPUQ.js} +14 -14
- package/dist/{manager-TUKVGY7O.js → manager-ARXEX6OP.js} +10 -10
- package/dist/{measure-6BRNY3II.js → measure-JAPDVQ5X.js} +11 -11
- package/dist/{media-treatment-MLME5LNQ.js → media-treatment-A4Z32NGP.js} +15 -15
- package/dist/{media-use-3YTDQKGR.js → media-use-6HX7JHRD.js} +17 -11
- package/dist/{models-IUX642FY.js → models-GMJODMZ5.js} +13 -13
- package/dist/{motionShot-INNVFSPU.js → motionShot-Z63I3GO7.js} +17 -17
- package/dist/{normalize-audio-ZMJIN2OV.js → normalize-audio-45CHOWKY.js} +10 -10
- package/dist/{open-FDQ3NDSX.js → open-RSTNLDYI.js} +12 -12
- package/dist/{parakeetRunner-WZ6JW3QQ.js → parakeetRunner-K4EGDDVH.js} +14 -14
- package/dist/{pipeline-V3TOATHS.js → pipeline-EKLTELWF.js} +12 -12
- package/dist/{play-5WIU4CZL.js → play-BYIEIRQQ.js} +25 -25
- package/dist/{preflight-JXEVL63B.js → preflight-TC6ZW3GB.js} +10 -10
- package/dist/{present-UHWGVCP4.js → present-5B5VQKT5.js} +20 -20
- package/dist/{preview-W75P6D7E.js → preview-5O2HT2WF.js} +23 -23
- package/dist/{probe-O2ADL5FX.js → probe-ZGK6DBAR.js} +14 -14
- package/dist/{producer-6GQQQT7M.js → producer-RFTB2APL.js} +1 -1
- package/dist/{projectConfig-FQ7CAOXL.js → projectConfig-PUAOWUNS.js} +7 -7
- package/dist/{publication-YRVC6D56.js → publication-K4XAMUI6.js} +3 -3
- package/dist/{publish-4IN3WW5G.js → publish-7W46NJFT.js} +13 -13
- package/dist/{remove-background-L4KWXVMH.js → remove-background-LURZDSDJ.js} +13 -13
- package/dist/{render-IP7KBRD7.js → render-7HIEI7QP.js} +46 -46
- package/dist/{render-73VGDCCH.js → render-EF7Y6YYC.js} +6 -6
- package/dist/{render-GZ4DBQ5E.js → render-ETZ3WAJO.js} +39 -37
- package/dist/{render-batch-RX3TJ4NY.js → render-batch-JYYP4RXA.js} +6 -6
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-SNTBG6O2.js → resolver-BKFLETMU.js} +5 -5
- package/dist/{reverse-5SHT4TC6.js → reverse-VPBNBP2Q.js} +1 -1
- package/dist/{run-GV6MEM2M.js → run-XER4YJY5.js} +3 -3
- package/dist/{sherpa-LJJHQNQ6.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-NVNRQU7K.js → skills-EBVQSIK4.js} +22 -12
- package/dist/{skillsUpdateCheck-QNFIPFLX.js → skillsUpdateCheck-7VXK4R4J.js} +3 -3
- package/dist/{snapshot-75S4SIRK.js → snapshot-PJUNSMDS.js} +49 -46
- package/dist/{src-MTLH4YHV.js → src-RL6YEPTD.js} +10 -10
- package/dist/{src-KS6W3WRC.js → src-SMIMKSHZ.js} +18 -18
- package/dist/{start-4UCLBL76.js → start-5ZDH643Z.js} +32 -25
- package/dist/{staticProjectServer-USD7TCZH.js → staticProjectServer-BX4RWEY5.js} +21 -21
- package/dist/{status-MPCREDMQ.js → status-4LLUW5YT.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-CQLtM2zB.js → hyperframes-player-CcNGHTev.js} +1 -1
- package/dist/studio/assets/{index-CKnGNPHF.js → index-D9uDed3x.js} +1 -1
- package/dist/studio/assets/{index-CdWK2GVp.js → index-DSRgrCDX.js} +118 -118
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-447CJUUM.js → studio-api-PEUXVD7P.js} +17 -17
- package/dist/{studioServer-TMPKQRQA.js → studioServer-2WIQBEQC.js} +61 -61
- package/dist/{sync-V456U5AA.js → sync-P3O3WZWT.js} +19 -16
- package/dist/{telemetry-NK6K3VRH.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-M5URP7QS.js → timeline-WP7AZAQC.js} +24 -24
- package/dist/{tokens-5OIFB4MD.js → tokens-ROFKR7AE.js} +2 -2
- package/dist/{transcribe-ON5WTZV3.js → transcribe-N66QUYCS.js} +12 -12
- package/dist/{transcribe-N3E7T7AW.js → transcribe-WS2STSCJ.js} +23 -22
- package/dist/{tts-JHGGL7GL.js → tts-HIQMJU6O.js} +1 -1
- package/dist/{updateCheck-JQOAKPNR.js → updateCheck-M2SMSDIO.js} +2 -2
- package/dist/{upgrade-737POFN4.js → upgrade-ZUWFB2QM.js} +2 -2
- package/dist/upload-L5TSWWIU.js +16 -0
- package/dist/{urlDownloader-ZIPT6PZC.js → urlDownloader-YNI3Y3IE.js} +8 -8
- package/dist/{validate-6IPCQFXI.js → validate-M2M37G47.js} +28 -28
- package/dist/{video-BEZHDPH2.js → video-2OEOTSPQ.js} +10 -10
- package/dist/warmCheck.js +44 -44
- package/package.json +1 -1
- package/dist/chunk-OUZSRPKC.js +0 -5035
- 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-E4XS2M2E.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,16 +52,18 @@ import {
|
|
|
52
52
|
probeVideo,
|
|
53
53
|
round,
|
|
54
54
|
runFfmpeg,
|
|
55
|
+
sumOf,
|
|
55
56
|
videoClip,
|
|
56
57
|
writeImage
|
|
57
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-A33GFLPY.js";
|
|
58
59
|
import "./chunk-TSQZ3DSC.js";
|
|
60
|
+
import "./chunk-3XJM7XZN.js";
|
|
59
61
|
import "./chunk-ETYQYG6Q.js";
|
|
60
62
|
import "./chunk-RZ6CXJ56.js";
|
|
61
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-AVNF52HR.js";
|
|
62
64
|
import {
|
|
63
65
|
readCompositionFps
|
|
64
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-LR5NVYZT.js";
|
|
65
67
|
import "./chunk-A4ZTSQLW.js";
|
|
66
68
|
import "./chunk-BVAPHHMQ.js";
|
|
67
69
|
import {
|
|
@@ -71,18 +73,18 @@ import "./chunk-S3S4TGEH.js";
|
|
|
71
73
|
import {
|
|
72
74
|
c
|
|
73
75
|
} from "./chunk-2GICKZ3I.js";
|
|
74
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-N6FGHJ7X.js";
|
|
75
77
|
import "./chunk-Z5J67X44.js";
|
|
76
78
|
import "./chunk-5S7W3TUO.js";
|
|
77
79
|
import "./chunk-D3MUHMFG.js";
|
|
78
|
-
import "./chunk-
|
|
80
|
+
import "./chunk-PPMCILED.js";
|
|
79
81
|
import "./chunk-YWRUQ7XZ.js";
|
|
80
82
|
import {
|
|
81
83
|
fpsToNumber,
|
|
82
84
|
parseFps
|
|
83
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-W5AUD5OL.js";
|
|
84
86
|
import "./chunk-MEJH7VEA.js";
|
|
85
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-Y3ICFPFK.js";
|
|
86
88
|
import "./chunk-VC76R6W2.js";
|
|
87
89
|
import "./chunk-OFQWTKPW.js";
|
|
88
90
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -93,12 +95,12 @@ import "./chunk-X6JUUQCM.js";
|
|
|
93
95
|
import "./chunk-KGPLIH7B.js";
|
|
94
96
|
import "./chunk-K4MJX7SR.js";
|
|
95
97
|
import "./chunk-WE42NVH7.js";
|
|
96
|
-
import "./chunk-
|
|
97
|
-
import "./chunk-HYRPH6LL.js";
|
|
98
|
-
import "./chunk-WVRAFHJU.js";
|
|
98
|
+
import "./chunk-XX77LLFJ.js";
|
|
99
99
|
import "./chunk-CZGHFATT.js";
|
|
100
|
+
import "./chunk-WVRAFHJU.js";
|
|
101
|
+
import "./chunk-HYRPH6LL.js";
|
|
100
102
|
import "./chunk-C2KEGBR3.js";
|
|
101
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-JHILL4BN.js";
|
|
102
104
|
import "./chunk-FR7YBU3H.js";
|
|
103
105
|
import "./chunk-DPVXBVLL.js";
|
|
104
106
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -109,7 +111,7 @@ import "./chunk-FBN2M2HK.js";
|
|
|
109
111
|
import "./chunk-766MOTIZ.js";
|
|
110
112
|
import {
|
|
111
113
|
withMeta
|
|
112
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-TZBJEKKU.js";
|
|
113
115
|
import "./chunk-BR2JQQC5.js";
|
|
114
116
|
import "./chunk-BLBMPEBX.js";
|
|
115
117
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -121,7 +123,7 @@ import {
|
|
|
121
123
|
} from "./chunk-66W5IWLO.js";
|
|
122
124
|
import "./chunk-J3RXEDR2.js";
|
|
123
125
|
import "./chunk-QBXDU24O.js";
|
|
124
|
-
import "./chunk-
|
|
126
|
+
import "./chunk-AH6MUQQC.js";
|
|
125
127
|
import {
|
|
126
128
|
normalizeErrorMessage
|
|
127
129
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -271,7 +273,7 @@ async function clipUses(project) {
|
|
|
271
273
|
if (!existsSync(index)) return out;
|
|
272
274
|
const [{ ensureDOMParser }, { describeProject }] = await Promise.all([
|
|
273
275
|
import("./dom-VFHEO7VM.js"),
|
|
274
|
-
import("./describeProject-
|
|
276
|
+
import("./describeProject-DN6YQU3X.js")
|
|
275
277
|
]);
|
|
276
278
|
ensureDOMParser();
|
|
277
279
|
const timeline = await describeProject(index);
|
|
@@ -294,7 +296,7 @@ function boxAt(info, times, box, w, h) {
|
|
|
294
296
|
const work = mkdtempSync(join(tmpdir(), "hf-person-"));
|
|
295
297
|
try {
|
|
296
298
|
const filters = [
|
|
297
|
-
`select=${unique.map((k) => `eq(n\\,${k})`)
|
|
299
|
+
`select=${sumOf(unique.map((k) => `eq(n\\,${k})`))}`,
|
|
298
300
|
`scale=${w}:${h}:force_original_aspect_ratio=increase:flags=bicubic`,
|
|
299
301
|
`crop=${w}:${h}`,
|
|
300
302
|
`crop=${box[2]}:${box[3]}:${box[0]}:${box[1]}`,
|
|
@@ -567,7 +569,36 @@ function selectFilter(pick, fpsText) {
|
|
|
567
569
|
const pts = `setpts=N/(${fpsText})/TB`;
|
|
568
570
|
if (pick.kind === "all") return [];
|
|
569
571
|
if (pick.kind === "range") return [`select=between(n\\,${pick.k0}\\,${pick.k1 - 1})`, pts];
|
|
570
|
-
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);
|
|
571
602
|
}
|
|
572
603
|
var cellSize = (w, h) => [
|
|
573
604
|
Math.floor(w / (2 * GRID)) * 2,
|
|
@@ -740,7 +771,7 @@ function cutReport(ref, yours, k0, fps) {
|
|
|
740
771
|
};
|
|
741
772
|
}
|
|
742
773
|
async function captureProject(projectDir, times, opts, ref) {
|
|
743
|
-
const { captureSnapshots } = await import("./snapshot-
|
|
774
|
+
const { captureSnapshots } = await import("./snapshot-PJUNSMDS.js");
|
|
744
775
|
const shots = mkdtempSync2(join2(tmpdir2(), "hf-diff-shots-"));
|
|
745
776
|
const seq = mkdtempSync2(join2(tmpdir2(), "hf-diff-seq-"));
|
|
746
777
|
try {
|
|
@@ -778,9 +809,13 @@ async function captureProject(projectDir, times, opts, ref) {
|
|
|
778
809
|
}
|
|
779
810
|
};
|
|
780
811
|
}
|
|
781
|
-
function regeneratedVerdict(s, reference, yours, ref, roi) {
|
|
782
|
-
const
|
|
783
|
-
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
|
+
];
|
|
784
819
|
const mine = roi && scaleRoi(roi, b.width / ref.width, b.height / ref.height);
|
|
785
820
|
const energy = compareEnergy(energyCurve(a, roi), energyCurve(b, mine));
|
|
786
821
|
const looks = compareLook(look(a, 2, roi), look(b, 2, mine));
|
|
@@ -814,23 +849,7 @@ function cellsOutside(roi, width, height) {
|
|
|
814
849
|
function segmentVerdicts(segments, series, worstCell, ks, ctx) {
|
|
815
850
|
return segments.map((s) => {
|
|
816
851
|
const head = { id: s.id, window: [s.start, s.end], pixels: s.pixels };
|
|
817
|
-
if (s.pixels === "regenerated" && !s.drawn)
|
|
818
|
-
if (ctx.mode !== "video")
|
|
819
|
-
return {
|
|
820
|
-
...head,
|
|
821
|
-
pass: null,
|
|
822
|
-
note: "regenerated pixels are judged on a render: diff a render"
|
|
823
|
-
};
|
|
824
|
-
const moved = regeneratedVerdict(s, ctx.reference, ctx.yours, ctx.ref);
|
|
825
|
-
const person = ctx.person.get(s);
|
|
826
|
-
if (!person || person.pass === null) return { ...head, ...moved };
|
|
827
|
-
return {
|
|
828
|
-
...head,
|
|
829
|
-
pass: person.pass,
|
|
830
|
-
scored: "the person: framing, text carried in the generated clip, lip sync",
|
|
831
|
-
person: { ...person, energy: moved.energy, look: moved.look }
|
|
832
|
-
};
|
|
833
|
-
}
|
|
852
|
+
if (s.pixels === "regenerated" && !s.drawn) return regeneratedSegment(s, head, ctx);
|
|
834
853
|
const [a, b] = [frameAt(s.start, ctx.ref.fps), frameAt(s.end, ctx.ref.fps)];
|
|
835
854
|
const mine = ks.flatMap((k, i) => k >= a && k < b && i < series.frame.length ? [i] : []);
|
|
836
855
|
if (!mine.length)
|
|
@@ -849,6 +868,25 @@ function segmentVerdicts(segments, series, worstCell, ks, ctx) {
|
|
|
849
868
|
};
|
|
850
869
|
});
|
|
851
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
|
+
}
|
|
852
890
|
function lowestCell(mine, series, ks, ref) {
|
|
853
891
|
const means = series.cells[mine[0]].map(
|
|
854
892
|
(_, c3) => mine.reduce((sum, i) => sum + series.cells[i][c3], 0) / mine.length
|
|
@@ -866,7 +904,14 @@ function mixedVerdict(s, head, mine, series, ctx) {
|
|
|
866
904
|
const whole = s.pixels === "regenerated";
|
|
867
905
|
const roi = whole ? [0, 0, ctx.ref.width, ctx.ref.height] : regionRoi(s.regenerated, ctx.ref.width, ctx.ref.height);
|
|
868
906
|
const rest = whole ? [] : cellsOutside(roi, ctx.ref.width, ctx.ref.height);
|
|
869
|
-
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;
|
|
870
915
|
const gates = ctx.person.get(s);
|
|
871
916
|
const person = gates || moved ? {
|
|
872
917
|
...gates ?? { gates: { framing: null, text: null, sync: null }, pass: null },
|
|
@@ -1131,7 +1176,7 @@ async function worstMoments(picks, ctx) {
|
|
|
1131
1176
|
images.push(writeImage(join2(ctx.outDir, `${tag}-yours.png`), b, sw, sh));
|
|
1132
1177
|
labels.push(
|
|
1133
1178
|
`original ${t}s`,
|
|
1134
|
-
`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)}`
|
|
1135
1180
|
);
|
|
1136
1181
|
worst.push({
|
|
1137
1182
|
t,
|
|
@@ -1187,9 +1232,10 @@ function soundOffset(reference, yours, ref, mine) {
|
|
|
1187
1232
|
};
|
|
1188
1233
|
return { offset_ms: offset, match: round(best[0], 2), pass: Math.abs(offset) <= 1e3 / ref.fps };
|
|
1189
1234
|
}
|
|
1190
|
-
function sideBySide(reference, yours, ref, out) {
|
|
1235
|
+
function sideBySide(reference, yours, ref, out, offset = 0) {
|
|
1236
|
+
const skip = (seconds) => seconds > 0 ? ["-ss", String(seconds)] : [];
|
|
1191
1237
|
runFfmpeg([
|
|
1192
|
-
...["-y", "-i", reference, "-i", yours, "-filter_complex"],
|
|
1238
|
+
...["-y", ...skip(-offset), "-i", reference, ...skip(offset), "-i", yours, "-filter_complex"],
|
|
1193
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]`,
|
|
1194
1240
|
...["-map", "[v]", "-map", "0:a?", "-c:v", "libx264", "-crf", "20", "-pix_fmt", "yuv420p"],
|
|
1195
1241
|
...["-c:a", "aac", "-shortest", out]
|
|
@@ -1241,31 +1287,40 @@ async function diffVideos(options) {
|
|
|
1241
1287
|
"a project folder is compared at chosen times, not whole",
|
|
1242
1288
|
"pass --at t1,t2 or --range start,end, or render it and diff the render"
|
|
1243
1289
|
);
|
|
1244
|
-
const
|
|
1245
|
-
const
|
|
1246
|
-
if (!
|
|
1290
|
+
const asked = choosePick(opts, ref);
|
|
1291
|
+
const askedKs = pickedFrames(asked, ref.frames);
|
|
1292
|
+
if (!askedKs.length || askedKs.some((k) => k >= ref.frames))
|
|
1247
1293
|
throw new Fix(
|
|
1248
1294
|
`the original has ${ref.frames} frames (${round(ref.duration, 2)} s)`,
|
|
1249
1295
|
"pick times inside it"
|
|
1250
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
|
+
);
|
|
1251
1313
|
const select = selectFilter(pick, ref.fpsText);
|
|
1252
1314
|
const refClip = { ...videoClip(opts.reference, 0, void 0, ref), filters: select };
|
|
1253
1315
|
let yours;
|
|
1254
1316
|
let seqDir;
|
|
1255
|
-
let yoursInfo;
|
|
1256
1317
|
if (mode === "project") {
|
|
1257
|
-
const captured = await captureProject(
|
|
1258
|
-
opts.yours,
|
|
1259
|
-
ks.map((k) => k / ref.fps),
|
|
1260
|
-
opts,
|
|
1261
|
-
ref
|
|
1262
|
-
);
|
|
1318
|
+
const captured = await captureProject(opts.yours, captureTimes(ks, ref.fps, offset), opts, ref);
|
|
1263
1319
|
[yours, seqDir] = [captured.clip, captured.dir];
|
|
1264
1320
|
} else {
|
|
1265
|
-
yoursInfo = probeVideo(opts.yours);
|
|
1266
1321
|
yours = {
|
|
1267
1322
|
...videoClip(opts.yours, 0, void 0, yoursInfo),
|
|
1268
|
-
filters:
|
|
1323
|
+
filters: yoursFilters(pick, ref.fpsText, offset)
|
|
1269
1324
|
};
|
|
1270
1325
|
}
|
|
1271
1326
|
const offRate = rateWarning(ref, yoursInfo?.fps ?? projectRate(opts.yours));
|
|
@@ -1325,18 +1380,32 @@ async function diffVideos(options) {
|
|
|
1325
1380
|
series,
|
|
1326
1381
|
ks,
|
|
1327
1382
|
ref,
|
|
1328
|
-
outDir: opts.outDir
|
|
1383
|
+
outDir: opts.outDir,
|
|
1384
|
+
offset
|
|
1329
1385
|
});
|
|
1330
1386
|
const cuts = pick.kind === "at" ? void 0 : cutReport(refClip, yours, ks[0], ref.fps);
|
|
1331
|
-
const
|
|
1387
|
+
const whole = yoursInfo && asked.kind === "all";
|
|
1388
|
+
const lengths = yoursInfo && {
|
|
1332
1389
|
reference: round(ref.pictureDuration, 3),
|
|
1333
|
-
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,
|
|
1334
1398
|
pass: Math.abs(ref.pictureDuration - yoursInfo.pictureDuration) <= 1.5 / ref.fps
|
|
1335
1399
|
} : void 0;
|
|
1336
1400
|
const ledgerText = opts.ledger && existsSync2(opts.ledger) ? readFileSync2(opts.ledger, "utf8") : void 0;
|
|
1337
1401
|
const people = /* @__PURE__ */ new Map();
|
|
1338
1402
|
let clips = [];
|
|
1339
|
-
|
|
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) {
|
|
1340
1409
|
const project = opts.project ?? (opts.ledger && basename(dirname(opts.ledger)) === ".media" ? dirname(dirname(opts.ledger)) : void 0);
|
|
1341
1410
|
const refCuts = cuts?.reference ?? [];
|
|
1342
1411
|
const uses = project ? await clipUses(project).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
@@ -1366,7 +1435,8 @@ async function diffVideos(options) {
|
|
|
1366
1435
|
mode,
|
|
1367
1436
|
t,
|
|
1368
1437
|
drawn: scoreDrawn(opts.segments, refClip, yours, ks, ref, series.frame.length),
|
|
1369
|
-
person: people
|
|
1438
|
+
person: people,
|
|
1439
|
+
offset
|
|
1370
1440
|
}) : void 0;
|
|
1371
1441
|
if (opts.segments) warnings.push(...regionWarnings(opts.segments, ref));
|
|
1372
1442
|
const elements = opts.drawn?.length ? scoreElements(
|
|
@@ -1404,8 +1474,8 @@ async function diffVideos(options) {
|
|
|
1404
1474
|
warnings.push(
|
|
1405
1475
|
`${Math.round(reuse.share * 100)}% of frames play the original's whole frame: pass --segments <file> to tell footage from copied drawings`
|
|
1406
1476
|
);
|
|
1407
|
-
const sound =
|
|
1408
|
-
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;
|
|
1409
1479
|
const judged = segments ? segments.every((s) => s.pass !== false) : passes(overall, t);
|
|
1410
1480
|
const top = segments ? headline(
|
|
1411
1481
|
segments,
|
|
@@ -1435,6 +1505,7 @@ async function diffVideos(options) {
|
|
|
1435
1505
|
...sbs ? { sbs } : {},
|
|
1436
1506
|
log: logPath,
|
|
1437
1507
|
frames: join2(opts.outDir, "frames.tsv"),
|
|
1508
|
+
...options.offset === void 0 ? {} : { offset: options.offset },
|
|
1438
1509
|
warnings
|
|
1439
1510
|
};
|
|
1440
1511
|
} finally {
|
|
@@ -1568,7 +1639,7 @@ function printHuman(r) {
|
|
|
1568
1639
|
);
|
|
1569
1640
|
if (r.duration)
|
|
1570
1641
|
console.log(
|
|
1571
|
-
` 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)"}`
|
|
1572
1643
|
);
|
|
1573
1644
|
if (r.sound)
|
|
1574
1645
|
console.log(
|
|
@@ -1618,11 +1689,15 @@ var diff_default = defineCommand({
|
|
|
1618
1689
|
reference: { type: "positional", description: "The original video", required: true },
|
|
1619
1690
|
yours: {
|
|
1620
1691
|
type: "positional",
|
|
1621
|
-
description: "A rendered video, or a project folder (captured at the original's frame times, no render)",
|
|
1622
|
-
required:
|
|
1692
|
+
description: "A rendered video, or a project folder (captured at the original's frame times, no render) (required)",
|
|
1693
|
+
required: false
|
|
1623
1694
|
},
|
|
1624
1695
|
at: { type: "string", description: "Compare only these seconds, e.g. 0.5,2.4" },
|
|
1625
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
|
+
},
|
|
1626
1701
|
segments: {
|
|
1627
1702
|
type: "string",
|
|
1628
1703
|
description: "A file of `## S01 \xB7 a\u2013b s` segments: a verdict per segment (Pixels: regenerated compares motion and look)"
|
|
@@ -1671,6 +1746,11 @@ var diff_default = defineCommand({
|
|
|
1671
1746
|
try {
|
|
1672
1747
|
if (args.at !== void 0 && args.range !== void 0)
|
|
1673
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
|
+
);
|
|
1674
1754
|
const yours = resolve2(String(args.yours));
|
|
1675
1755
|
const stem = basename2(yours, extname(yours)) || "project";
|
|
1676
1756
|
const segmentsFile = args.segments === void 0 ? void 0 : resolve2(String(args.segments));
|
|
@@ -1683,6 +1763,7 @@ var diff_default = defineCommand({
|
|
|
1683
1763
|
ledger: args.ledger === void 0 ? findLedger(yours, segmentsFile) : resolve2(String(args.ledger)),
|
|
1684
1764
|
project: args.project === void 0 ? void 0 : resolve2(String(args.project)),
|
|
1685
1765
|
drawn: repeated(rawArgs, "--drawn").map(parseDrawn),
|
|
1766
|
+
offset: args.offset === void 0 ? void 0 : parseOffset(args.offset),
|
|
1686
1767
|
thresholds: {
|
|
1687
1768
|
mean: number(args["min-mean"], "--min-mean"),
|
|
1688
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";
|