hyperframes 0.8.199 → 0.8.201
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-7LA5CGDM.js → add-33XNCMY4.js} +15 -18
- package/dist/{animatedGifPrep-NB2MZTMQ.js → animatedGifPrep-MI7Z4OYQ.js} +9 -12
- package/dist/api.js +17 -20
- package/dist/{asset-4BIOI6GN.js → asset-RMRQN24O.js} +2 -2
- package/dist/{assetCataloger-TX5KL5VV.js → assetCataloger-KWTQNFUU.js} +9 -12
- package/dist/{audio-ZGMIIDNU.js → audio-SQDZZS6X.js} +34 -32
- package/dist/{auth-OQ5PWEUG.js → auth-PNC6K5ZD.js} +2 -2
- package/dist/{autoUpdate-QREPD6I4.js → autoUpdate-MBZFLUF2.js} +2 -2
- package/dist/{backgroundChecks-5CJPJX2O.js → backgroundChecks-ZMSPA6TK.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-BW2ZK4MA.js → batchRender-2MMOZRMW.js} +5 -7
- package/dist/{beats-I5XARMDB.js → beats-GDLNPR4A.js} +33 -24
- package/dist/{benchmark-S2WWY4U7.js → benchmark-AUKB3XDF.js} +12 -14
- package/dist/{browser-PAXVQYQZ.js → browser-C3AU5TST.js} +6 -6
- package/dist/{bundleWithLocalizedFonts-3ED26VCR.js → bundleWithLocalizedFonts-G3UT65XI.js} +2 -2
- package/dist/{capture-23574YLP.js → capture-EKNPCFPF.js} +16 -18
- package/dist/{capture-OVITDMKK.js → capture-XGBPNGC5.js} +2 -2
- package/dist/{captureCompositionFrame-KAUUHCOL.js → captureCompositionFrame-4HHLPTDH.js} +14 -17
- package/dist/{catalog-CM3VXSQE.js → catalog-HLDNEJX3.js} +15 -18
- package/dist/{catch-up-HMFREOC2.js → catch-up-LRFV4LJO.js} +6 -6
- package/dist/{check-CYJZ6CGT.js → check-XWHWGNYE.js} +40 -43
- package/dist/{checkBrowser-GZJ3W2OP.js → checkBrowser-KSOBXPJ3.js} +35 -38
- package/dist/{chunk-MMQ52NIZ.js → chunk-2BGOB2QK.js} +500 -17
- package/dist/{chunk-D5CZCYYT.js → chunk-2FA53V5S.js} +2 -2
- package/dist/{chunk-FV5GKRAO.js → chunk-3J5KO4EJ.js} +8 -10
- package/dist/{chunk-UMBCYIFE.js → chunk-47NZWTJL.js} +2 -2
- package/dist/{chunk-JFIEV2J4.js → chunk-53E45AKI.js} +60 -34
- package/dist/{chunk-BFYDVTD3.js → chunk-6UFEOVR5.js} +2 -2
- package/dist/{chunk-M6IMQBK6.js → chunk-6XGO7ZKS.js} +1 -1
- package/dist/{chunk-UVQLSMAR.js → chunk-74UH2KGI.js} +30 -6
- package/dist/{chunk-TVR744AS.js → chunk-7EJ7OZGC.js} +16 -3
- package/dist/{chunk-7QB46WTF.js → chunk-7WEGIXI3.js} +2 -2
- package/dist/{chunk-TTWFTEUG.js → chunk-A7YO6YSD.js} +6 -6
- package/dist/{chunk-HK45GJMI.js → chunk-AK2MOAJY.js} +192 -65
- package/dist/{chunk-TF7LCULS.js → chunk-B67P2WP3.js} +2 -2
- package/dist/chunk-B7CYKBXQ.js +36 -0
- package/dist/{chunk-DMRDGGNM.js → chunk-CD5ZU6PN.js} +9 -7
- package/dist/{chunk-IC6BO4GU.js → chunk-CV32PRH3.js} +65 -21
- package/dist/{chunk-UBSAHYWA.js → chunk-DS3XITZ5.js} +2 -2
- package/dist/{chunk-ILFDFMYJ.js → chunk-DWULQYOQ.js} +3 -3
- package/dist/{chunk-VHBBV5DH.js → chunk-ERUINDRT.js} +62 -25
- package/dist/{chunk-FMTJ4I6I.js → chunk-FDWN4XAD.js} +1 -1
- package/dist/{chunk-K5O6JTJQ.js → chunk-GC6N2LH5.js} +10 -12
- package/dist/{chunk-5CTORVUM.js → chunk-GHROWWUN.js} +32 -1
- package/dist/{chunk-T4IJMVCB.js → chunk-GKXH4C2B.js} +1 -1
- package/dist/{chunk-QYOUK3UO.js → chunk-GNX3BCQP.js} +2 -2
- package/dist/{chunk-IELYOY6S.js → chunk-I4DHHX7E.js} +3 -3
- package/dist/{chunk-FZ2VPLXL.js → chunk-IDRUJFT4.js} +2 -2
- package/dist/{chunk-KFZPWUPN.js → chunk-IFOZZYHK.js} +7 -7
- package/dist/{chunk-3CFTCM7X.js → chunk-IHQBTZHE.js} +3 -3
- package/dist/{chunk-OZVRCLEN.js → chunk-IIH24PKY.js} +2 -2
- package/dist/{chunk-K65XUUJX.js → chunk-ITJAHKYO.js} +1 -1
- package/dist/{chunk-6JR2XUEE.js → chunk-IXXVS2Z4.js} +1 -1
- package/dist/{chunk-IMVTN367.js → chunk-JOI7TNCX.js} +2 -2
- package/dist/{chunk-KG3BVLA4.js → chunk-JXLHLR26.js} +1 -1
- package/dist/{chunk-DY53XJ3P.js → chunk-K2AUGELJ.js} +1 -1
- package/dist/{chunk-VWPU6URV.js → chunk-L33EDCSR.js} +5 -5
- package/dist/{chunk-BYLC52GJ.js → chunk-LVEXHBSH.js} +1 -1
- package/dist/{chunk-XOTUPVIF.js → chunk-MSGWR7WP.js} +9 -1
- package/dist/{chunk-DWUOGV3M.js → chunk-ORMTNJBS.js} +3 -3
- package/dist/{chunk-Z6Q4ASCD.js → chunk-Q537KXWA.js} +153 -44
- package/dist/{chunk-YAMRODVV.js → chunk-Q6SHXSZX.js} +3 -2
- package/dist/{chunk-GQVTTWZF.js → chunk-QB4K2EWI.js} +1 -1
- package/dist/{chunk-T6AGUTZJ.js → chunk-QSFWGZG6.js} +7 -38
- package/dist/{chunk-XP55QWOB.js → chunk-QTWSMJ22.js} +15 -15
- package/dist/{chunk-M2GO2AAS.js → chunk-QXBZ6VBL.js} +1 -1
- package/dist/{chunk-65HUC64P.js → chunk-QYTGUWNF.js} +1 -1
- package/dist/{chunk-CMHVLASW.js → chunk-RVKJDAYE.js} +1 -1
- package/dist/{chunk-HRZ6ZBKO.js → chunk-SEAHCCQ4.js} +70 -51
- package/dist/{chunk-7SKOZHIY.js → chunk-SGKG7DNX.js} +3 -3
- package/dist/{chunk-6RRO4GE3.js → chunk-SIZYTGG4.js} +1 -1
- package/dist/{chunk-4QG64APO.js → chunk-SZNCAINN.js} +1 -1
- package/dist/{chunk-S5WSJVHP.js → chunk-T33GLS6C.js} +3 -3
- package/dist/{chunk-SQQZUUK6.js → chunk-TAXGZAXM.js} +10 -10
- package/dist/{chunk-GQACWAOC.js → chunk-TOT3CLUK.js} +1 -1
- package/dist/{chunk-2KZSKIYY.js → chunk-TYRDDIIH.js} +1 -1
- package/dist/{chunk-HOAXHVRR.js → chunk-U2EK5MFR.js} +10 -10
- package/dist/{chunk-QXPZGDTI.js → chunk-UIIGEPYY.js} +3 -3
- package/dist/{chunk-W2LGJSEN.js → chunk-UIOZIIB7.js} +33 -3
- package/dist/{chunk-L6FG62QM.js → chunk-UKB62QOT.js} +446 -151
- package/dist/{chunk-JN63IPHT.js → chunk-UOSTDTBF.js} +1 -1
- package/dist/{chunk-LPDNR3R4.js → chunk-VCVUEK65.js} +3 -3
- package/dist/{chunk-PO5PAROC.js → chunk-VF2VMKNI.js} +3 -3
- package/dist/{chunk-XVZZQVT4.js → chunk-VKTUZP7U.js} +1 -1
- package/dist/{chunk-NY2OH5XD.js → chunk-WO3XZ6HC.js} +1 -1
- package/dist/{chunk-7YZME6DE.js → chunk-X72DJZCM.js} +1 -1
- package/dist/{chunk-PGDWNIOK.js → chunk-XDMZY3H7.js} +57 -5
- package/dist/{chunk-QH4425AL.js → chunk-XG365L6T.js} +1 -1
- package/dist/{chunk-NUZMP7SV.js → chunk-XHVQIOOF.js} +19 -19
- package/dist/{chunk-FHDKRWQN.js → chunk-XONIZ5CH.js} +13 -13
- package/dist/{chunk-RYCANWOM.js → chunk-YBJECXQJ.js} +5 -5
- package/dist/{chunk-AHZLNYZY.js → chunk-YTBE4JCX.js} +1 -1
- package/dist/{chunk-VLVQQJOX.js → chunk-ZDVJXWEG.js} +22 -3
- package/dist/chunk-ZKHXN2BV.js +3983 -0
- package/dist/{clean-QX6LKOWJ.js → clean-EUKURSX2.js} +22 -25
- package/dist/cli.js +54 -54
- package/dist/{cloud-ASA7Y3HA.js → cloud-LJDRNQ2N.js} +4 -4
- package/dist/{cloudrun-LK4GJWUZ.js → cloudrun-AXVFD6KV.js} +7 -9
- package/dist/{compare-426Z2ND6.js → compare-T3LMATAF.js} +32 -35
- package/dist/{compiler-WER7FC5O.js → compiler-KH6DMHIJ.js} +6 -10
- package/dist/{component-HTDWZMEG.js → component-2FOHCMP2.js} +3 -3
- package/dist/{compositions-EKRLQ5TU.js → compositions-REQ6ARAO.js} +14 -17
- package/dist/{delete-KHXM6R7A.js → delete-KEPP2QAZ.js} +2 -2
- package/dist/{deploy-WJ5JQJBD.js → deploy-N756FEME.js} +1 -1
- package/dist/{deterministicFonts-RMA7GDJC.js → deterministicFonts-4FULD3AS.js} +2 -2
- package/dist/{dist-EYJATCTF.js → dist-5ULOGA6A.js} +30 -16
- package/dist/{dist-ONHJ6ZDA.js → dist-TFHABY7N.js} +2 -4
- package/dist/{doctor-NB3G2GDG.js → doctor-2SJPC4WZ.js} +15 -18
- package/dist/{dotEnv-64S3VKGH.js → dotEnv-RPHCAUBZ.js} +1 -1
- package/dist/{events-LH6W5ZCV.js → events-24ZE2PKB.js} +5 -5
- package/dist/{events-6EL5NIJV.js → events-U53QH4XZ.js} +4 -4
- package/dist/{feedback-2GNY725M.js → feedback-QFMLDLUN.js} +11 -13
- package/dist/{ffmpeg-XX3O53B3.js → ffmpeg-7XNWNO7M.js} +9 -12
- package/dist/{figma-X7KKOOXB.js → figma-B4JO44CV.js} +3 -3
- package/dist/fontLocalizeCli.js +12 -15
- package/dist/{get-M57U7QCX.js → get-7CFVCINR.js} +2 -2
- package/dist/{gpuPolicy-GIBBYBI5.js → gpuPolicy-MU7CFSAF.js} +9 -12
- package/dist/{grade-compare-XNY37UYQ.js → grade-compare-Q23U2HGS.js} +33 -36
- package/dist/{help-ZXSPZBUG.js → help-M67MEDV3.js} +1 -1
- package/dist/{history-G5B4IPBH.js → history-I2PZXOFL.js} +9 -9
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +66 -62
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-ZWZDG54W.js → info-Z2MX54IE.js} +11 -13
- package/dist/{init-F4XMU6SV.js → init-SWH5KZO2.js} +30 -33
- package/dist/{inspect-6VXFMQRR.js → inspect-WBBDB3YS.js} +33 -36
- package/dist/{installer-4M3Y5T5F.js → installer-DQIHGUBJ.js} +6 -9
- package/dist/{keyframes-3U466AWX.js → keyframes-PSNEUS6P.js} +8 -8
- package/dist/{lambda-OPSTAEF6.js → lambda-KSZFMQ3L.js} +9 -11
- package/dist/{layout-B3MXD3F3.js → layout-AAOI7W2M.js} +33 -36
- package/dist/{lint-TVOEGW63.js → lint-GGNVITIK.js} +10 -12
- package/dist/{lintProject-FKPKSU6M.js → lintProject-Q36Y3AHA.js} +2 -4
- package/dist/{list-M5GQSFVT.js → list-OFPDL2AM.js} +2 -2
- package/dist/{login-HBHGZIDN.js → login-MZAHGGP4.js} +4 -4
- package/dist/{manager-COSJVRAE.js → manager-F34TSFV6.js} +3 -3
- package/dist/{manager-VLIJARMF.js → manager-ZOFTZTRY.js} +10 -13
- package/dist/{media-treatment-RQZ437VS.js → media-treatment-PF67GSUD.js} +67 -43
- package/dist/{models-2CCKVBTR.js → models-WR7CL54R.js} +13 -16
- package/dist/{motionShot-3IFRSICA.js → motionShot-ISLDWLIU.js} +18 -21
- package/dist/{normalize-audio-23H2MBDP.js → normalize-audio-D7AH5GFZ.js} +45 -27
- package/dist/{open-J33KT3G7.js → open-HPVBB2CX.js} +15 -18
- package/dist/{parakeetRunner-QTXNEMVY.js → parakeetRunner-P6PE4WXG.js} +14 -17
- package/dist/{pipeline-2ECWWEBD.js → pipeline-XKBZG2CM.js} +10 -13
- package/dist/{play-G5777L7A.js → play-QXHO47ZH.js} +24 -27
- package/dist/{preflight-NVFB4HXQ.js → preflight-KZCU66ES.js} +12 -15
- package/dist/{present-4EI2BE4Z.js → present-ERGC5PR4.js} +20 -23
- package/dist/{preview-HYCIDZ52.js → preview-AGTOQIE7.js} +21 -24
- package/dist/{producer-6JAATJVD.js → producer-4ONVM5A2.js} +1 -1
- package/dist/{projectConfig-XPGN76VV.js → projectConfig-7T4VY6RJ.js} +8 -11
- package/dist/{publication-YRZ7EBUV.js → publication-J5TS5VR3.js} +4 -6
- package/dist/{publish-UIDHN7KD.js → publish-BSOVXRF4.js} +11 -14
- package/dist/{remove-background-LPQP4WBN.js → remove-background-645NVCGL.js} +11 -14
- package/dist/{render-LFJQNVCK.js → render-55TYPJ5U.js} +7 -9
- package/dist/{render-NZSNQFYW.js → render-IAVH33YG.js} +38 -34
- package/dist/{render-DT3OCUCV.js → render-R3L44QAP.js} +36 -38
- package/dist/{render-batch-QI2A45WH.js → render-batch-JWWLQ7ZC.js} +7 -9
- package/dist/renderSetupWorker.js +5 -7
- package/dist/{resolver-4YDXG4PP.js → resolver-DBAFWC4F.js} +6 -8
- package/dist/{sherpa-XLKWFYFO.js → sherpa-UPWG6TKY.js} +13 -16
- package/dist/skills/hyperframes/references/runtimes.md +26 -0
- package/dist/skills/media-use/references/mixing.md +1 -1
- package/dist/skills/media-use/scripts/lib/grade-analyzer.mjs +38 -26
- package/dist/{skills-OVVLZHF5.js → skills-ILH52UL4.js} +7 -7
- package/dist/{skillsUpdateCheck-Y2UQA7I5.js → skillsUpdateCheck-ZHFDGMEL.js} +3 -3
- package/dist/{snapshot-7NVB5WSO.js → snapshot-WMVHIQVQ.js} +94 -61
- package/dist/{src-ACAFJXAJ.js → src-46QTOHZE.js} +11 -14
- package/dist/{src-QQPHMIJ7.js → src-HPLELQRK.js} +12 -11
- package/dist/{staticProjectServer-JUN6BRTW.js → staticProjectServer-FHP2YQFV.js} +19 -22
- package/dist/{status-H5WLKQDS.js → status-LR7VXITS.js} +2 -2
- package/dist/studio/assets/{hyperframes-player-BDtBfwof.js → hyperframes-player-BNeO6YSP.js} +1 -1
- package/dist/studio/assets/{index-BFfBBQMu.js → index-CZWE0FI8.js} +162 -162
- package/dist/studio/assets/{index--W_0fuR8.js → index-DiNYtcMK.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-D76Q4Q2N.js → studio-api-5YHQ4Y2D.js} +12 -15
- package/dist/{studioServer-HG3RFAOY.js → studioServer-P6IC76SV.js} +54 -57
- package/dist/{system-7F3UEHQT.js → system-YD4AW5ZX.js} +4 -3
- package/dist/{telemetry-Q2EHWVO4.js → telemetry-WZ7OGFWQ.js} +5 -5
- package/dist/{timeline-WDQCCETQ.js → timeline-U6S7BGMI.js} +24 -26
- package/dist/{tokens-2GJWP2HY.js → tokens-FPUYNZSV.js} +2 -2
- package/dist/{transcribe-Z63Y53GQ.js → transcribe-DJX4E2PE.js} +19 -22
- package/dist/{transcribe-SRLAY6RG.js → transcribe-DZHTKXI5.js} +12 -15
- package/dist/{updateCheck-MJ6NDE3T.js → updateCheck-2LHWRDE7.js} +2 -2
- package/dist/{upgrade-D5XEX3XE.js → upgrade-WAQHCAUS.js} +2 -2
- package/dist/{urlDownloader-R7BZ47TY.js → urlDownloader-HZQPXQET.js} +8 -11
- package/dist/{validate-F5BIDZLN.js → validate-D6XJ7OSS.js} +27 -30
- package/dist/{video-QUG5OG5Q.js → video-A4CQ4WDL.js} +9 -12
- package/dist/warmCheck.js +40 -43
- package/package.json +1 -1
- package/dist/chunk-2ONVJ7NT.js +0 -3901
- package/dist/chunk-BSQ7XANM.js +0 -210
- package/dist/chunk-PKZ7RK5N.js +0 -281
- package/dist/chunk-X7HBSTCZ.js +0 -53
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
emitWords,
|
|
22
22
|
getPreparedWavDurationSeconds,
|
|
23
23
|
prepareWav
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ORMTNJBS.js";
|
|
25
25
|
import {
|
|
26
26
|
stoppedByCancelSignal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QYTGUWNF.js";
|
|
28
28
|
import {
|
|
29
29
|
verifies
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-6XGO7ZKS.js";
|
|
31
31
|
import {
|
|
32
32
|
PARAKEET_MODEL_LABEL,
|
|
33
33
|
SHERPA_ERROR_PREFIX,
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getMimeType
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-53E45AKI.js";
|
|
10
10
|
import {
|
|
11
11
|
injectTagsAtHeadStart
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZKHXN2BV.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/compositionServer.ts
|
|
15
15
|
import { createHash } from "crypto";
|
|
@@ -7,29 +7,29 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RVKJDAYE.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PROJECT_CONFIG,
|
|
13
13
|
createProjectConfig,
|
|
14
14
|
loadProjectConfig,
|
|
15
15
|
projectConfigPath,
|
|
16
16
|
recordProjectRegistryItems
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UOSTDTBF.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveItemWithDependencies,
|
|
20
20
|
resolveItemsByTag
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LVEXHBSH.js";
|
|
22
22
|
import {
|
|
23
23
|
InvalidVariableValuesError,
|
|
24
24
|
prepareItem,
|
|
25
25
|
publishItem
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VCVUEK65.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_REGISTRY_URL
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XG365L6T.js";
|
|
30
30
|
import {
|
|
31
31
|
trackRegistryItemAdded
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-Q6SHXSZX.js";
|
|
33
33
|
import {
|
|
34
34
|
defineCommand
|
|
35
35
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-ZTZA4UWZ.js";
|
|
42
42
|
import {
|
|
43
43
|
ITEM_TYPE_DIRS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-74UH2KGI.js";
|
|
45
45
|
import {
|
|
46
46
|
isProjectRootMissing,
|
|
47
47
|
realpath
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
distroLabel,
|
|
12
12
|
getFFmpegInstallHint,
|
|
13
13
|
parseLddMissingLibs
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GNX3BCQP.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureBrowser,
|
|
17
17
|
findBrowser
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QB4K2EWI.js";
|
|
19
19
|
import {
|
|
20
20
|
runCancellableProcess
|
|
21
21
|
} from "./chunk-BL4U6U52.js";
|
|
22
22
|
import {
|
|
23
23
|
getFreeDiskMb
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QSFWGZG6.js";
|
|
25
25
|
import {
|
|
26
26
|
FFMPEG_PATH_ENV,
|
|
27
27
|
FFPROBE_PATH_ENV,
|
|
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = true ? "0.8.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.8.
|
|
9
|
+
var VERSION = true ? "0.8.201" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.8.201" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
readMediaOffsetSeconds
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2BGOB2QK.js";
|
|
10
10
|
|
|
11
11
|
// ../core/dist/mediaLink.js
|
|
12
12
|
var MEDIA_LINK_ATTR = "data-link";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-FXMKHHPO.js";
|
|
24
24
|
import {
|
|
25
25
|
getSystemMeta
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QSFWGZG6.js";
|
|
27
27
|
import {
|
|
28
28
|
hostAnswers
|
|
29
29
|
} from "./chunk-K4WIOZFP.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
} from "./chunk-PSX5SF2N.js";
|
|
38
38
|
import {
|
|
39
39
|
VERSION
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-IIH24PKY.js";
|
|
41
41
|
|
|
42
42
|
// src/telemetry/transport.ts
|
|
43
43
|
import { spawn } from "child_process";
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
VALID_CANVAS_RESOLUTIONS,
|
|
9
9
|
resolveResolutionFlagPair
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MSGWR7WP.js";
|
|
11
11
|
|
|
12
12
|
// src/utils/parseOutputResolution.ts
|
|
13
13
|
function parseOutputResolutionFlag(raw, options) {
|
|
@@ -6,26 +6,26 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
parakeetRunner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X72DJZCM.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-I4DHHX7E.js";
|
|
16
16
|
import {
|
|
17
17
|
initialModelForLanguage,
|
|
18
18
|
transcribe
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ORMTNJBS.js";
|
|
20
20
|
import {
|
|
21
21
|
createRenderCancellationScope,
|
|
22
22
|
stoppedByCancelSignal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QYTGUWNF.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_MODEL,
|
|
26
26
|
findWhisper,
|
|
27
27
|
isWhisperUnavailable
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-6XGO7ZKS.js";
|
|
29
29
|
import {
|
|
30
30
|
formatSrt,
|
|
31
31
|
formatVtt,
|
|
@@ -3331,7 +3331,13 @@ var DEFAULT_TYPEOF = {
|
|
|
3331
3331
|
image: "string"
|
|
3332
3332
|
};
|
|
3333
3333
|
function isRecord(v) {
|
|
3334
|
-
return typeof v === "object" && v !== null;
|
|
3334
|
+
return typeof v === "object" && v !== null && !Array.isArray(v);
|
|
3335
|
+
}
|
|
3336
|
+
function isFontValue(value) {
|
|
3337
|
+
return isRecord(value) && typeof value.name === "string" && typeof value.source === "string";
|
|
3338
|
+
}
|
|
3339
|
+
function isImageValue(value) {
|
|
3340
|
+
return isRecord(value) && typeof value.url === "string" && (value.alt === void 0 || typeof value.alt === "string") && (value.fit === void 0 || value.fit === "cover" || value.fit === "contain" || value.fit === "fill" || value.fit === "none" || value.fit === "scale-down");
|
|
3335
3341
|
}
|
|
3336
3342
|
function isVariableType(t) {
|
|
3337
3343
|
return typeof t === "string" && t in DEFAULT_TYPEOF;
|
|
@@ -3340,6 +3346,8 @@ function isCompositionVariable(v) {
|
|
|
3340
3346
|
if (!isRecord(v)) return false;
|
|
3341
3347
|
if (typeof v.id !== "string" || typeof v.label !== "string") return false;
|
|
3342
3348
|
if (!isVariableType(v.type)) return false;
|
|
3349
|
+
if (v.type === "font") return typeof v.default === "string" || isFontValue(v.default);
|
|
3350
|
+
if (v.type === "image") return typeof v.default === "string" || isImageValue(v.default);
|
|
3343
3351
|
if (typeof v.default !== DEFAULT_TYPEOF[v.type]) return false;
|
|
3344
3352
|
if (v.type === "enum" && !Array.isArray(v.options)) return false;
|
|
3345
3353
|
return true;
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
stoppedByCancelSignal
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QYTGUWNF.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_MODEL,
|
|
12
12
|
ensureModel,
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
hasFFmpeg,
|
|
15
15
|
pinnedWhisperModel,
|
|
16
16
|
sha256File
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6XGO7ZKS.js";
|
|
18
18
|
import {
|
|
19
19
|
findFFmpeg,
|
|
20
20
|
findFFprobe,
|
|
21
21
|
getFFmpegInstallHint
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GNX3BCQP.js";
|
|
23
23
|
import {
|
|
24
24
|
findWavChunk
|
|
25
25
|
} from "./chunk-UOFAE5RF.js";
|
|
@@ -12,12 +12,13 @@ import {
|
|
|
12
12
|
firstFrameColourArgs,
|
|
13
13
|
formatPreviewProxyBox,
|
|
14
14
|
hdrToSdrToneMapFilter,
|
|
15
|
+
isHeavyForPreview,
|
|
15
16
|
parseFirstFrameColour
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-74UH2KGI.js";
|
|
17
18
|
import {
|
|
18
19
|
decodeAuthoredAttribute,
|
|
19
20
|
scanHtmlOpeningTags
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MSGWR7WP.js";
|
|
21
22
|
import {
|
|
22
23
|
mkdirWithinProject,
|
|
23
24
|
realProjectRoot,
|
|
@@ -34,9 +35,9 @@ import {
|
|
|
34
35
|
} from "./chunk-6BNTGNGD.js";
|
|
35
36
|
import {
|
|
36
37
|
rewriteAssetPath
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-2BGOB2QK.js";
|
|
38
39
|
|
|
39
|
-
// ../studio-server/dist/chunk-
|
|
40
|
+
// ../studio-server/dist/chunk-C2RFW2FX.js
|
|
40
41
|
import { statSync } from "fs";
|
|
41
42
|
import { sep } from "path";
|
|
42
43
|
import { execFile } from "child_process";
|
|
@@ -124,6 +125,22 @@ async function probeFirstFrameColour(filePath, runner = execFileRunner) {
|
|
|
124
125
|
});
|
|
125
126
|
return result.status === 0 ? parseFirstFrameColour(String(result.stderr)) : {};
|
|
126
127
|
}
|
|
128
|
+
function bitDepthOf(stream) {
|
|
129
|
+
const raw = Number(stream.bits_per_raw_sample);
|
|
130
|
+
if (Number.isFinite(raw) && raw > 0) return raw;
|
|
131
|
+
const suffixed = /(\d{1,3})(?:le|be)$/.exec(stream.pix_fmt ?? "");
|
|
132
|
+
return suffixed ? Number(suffixed[1]) : 8;
|
|
133
|
+
}
|
|
134
|
+
function sourceFactsOf(stream, formatBitrate) {
|
|
135
|
+
if (!stream?.width || !stream.height) return void 0;
|
|
136
|
+
const bitrate = Number(stream.bit_rate ?? formatBitrate);
|
|
137
|
+
return {
|
|
138
|
+
width: stream.width,
|
|
139
|
+
height: stream.height,
|
|
140
|
+
bitDepth: bitDepthOf(stream),
|
|
141
|
+
bitrate: Number.isFinite(bitrate) ? bitrate : 0
|
|
142
|
+
};
|
|
143
|
+
}
|
|
127
144
|
async function probeMediaMetadata(filePath, runner = execFileRunner) {
|
|
128
145
|
const kind = inferKindFromPath(filePath);
|
|
129
146
|
if (kind === "audio" || kind === "unknown") {
|
|
@@ -139,7 +156,7 @@ async function probeMediaMetadata(filePath, runner = execFileRunner) {
|
|
|
139
156
|
"-v",
|
|
140
157
|
"error",
|
|
141
158
|
"-show_entries",
|
|
142
|
-
"stream=codec_type,codec_name,profile,pix_fmt,color_space,color_transfer,color_primaries,bits_per_raw_sample:stream_disposition=attached_pic:stream_tags=alpha_mode:format=duration",
|
|
159
|
+
"stream=codec_type,codec_name,profile,pix_fmt,color_space,color_transfer,color_primaries,bits_per_raw_sample,width,height,bit_rate:stream_disposition=attached_pic:stream_tags=alpha_mode:format=duration,bit_rate",
|
|
143
160
|
"-of",
|
|
144
161
|
"json",
|
|
145
162
|
"--",
|
|
@@ -165,6 +182,7 @@ async function probeMediaMetadata(filePath, runner = execFileRunner) {
|
|
|
165
182
|
metadata.hasAlpha = stream !== void 0 && videoStreamHasAlpha(stream);
|
|
166
183
|
const duration = Number(parsed.format?.duration);
|
|
167
184
|
if (Number.isFinite(duration) && duration > 0) metadata.durationSeconds = duration;
|
|
185
|
+
metadata.source = sourceFactsOf(stream, parsed.format?.bit_rate);
|
|
168
186
|
}
|
|
169
187
|
return metadata;
|
|
170
188
|
} catch {
|
|
@@ -232,18 +250,22 @@ function resolveProxyVariantRequest(request, facts) {
|
|
|
232
250
|
const expected = proxyVariantFor(facts);
|
|
233
251
|
return request === "auto" || request === expected ? expected : null;
|
|
234
252
|
}
|
|
235
|
-
function decideMediaProxyEligibility(facts) {
|
|
253
|
+
function decideMediaProxyEligibility(facts, lightBox) {
|
|
236
254
|
if (!facts) return { eligible: false, reason: "unknown_codec" };
|
|
237
|
-
if (
|
|
238
|
-
|
|
255
|
+
if (facts.browserHostile) return { eligible: true };
|
|
256
|
+
if (lightBox && facts.source && isHeavyForPreview(facts.source, lightBox)) {
|
|
257
|
+
return { eligible: true };
|
|
258
|
+
}
|
|
259
|
+
return { eligible: false, reason: "browser_safe_codec" };
|
|
239
260
|
}
|
|
240
|
-
function codecFactsFor(codecName, hasAlpha) {
|
|
261
|
+
function codecFactsFor(codecName, hasAlpha, source) {
|
|
241
262
|
const hostile = hostileCodecEntry(codecName);
|
|
242
263
|
return {
|
|
243
264
|
codecName,
|
|
244
265
|
browserHostile: hostile !== void 0,
|
|
245
266
|
representativeMime: hostile?.representativeMime ?? null,
|
|
246
|
-
hasAlpha
|
|
267
|
+
hasAlpha,
|
|
268
|
+
...source && { source }
|
|
247
269
|
};
|
|
248
270
|
}
|
|
249
271
|
async function probeCodecFacts(filePath, runner) {
|
|
@@ -252,7 +274,7 @@ async function probeCodecFacts(filePath, runner) {
|
|
|
252
274
|
if (metadata.kind !== "video") return null;
|
|
253
275
|
const codecName = metadata.color.codecName;
|
|
254
276
|
if (!codecName) return null;
|
|
255
|
-
return codecFactsFor(codecName, metadata.hasAlpha === true);
|
|
277
|
+
return codecFactsFor(codecName, metadata.hasAlpha === true, metadata.source);
|
|
256
278
|
}
|
|
257
279
|
function createMediaCodecProbeCache() {
|
|
258
280
|
return /* @__PURE__ */ new Map();
|
|
@@ -314,9 +336,8 @@ function collectLocalVideoAssets(projectDir, htmlSources) {
|
|
|
314
336
|
return candidates;
|
|
315
337
|
}
|
|
316
338
|
var PROBE_CONCURRENCY = 8;
|
|
317
|
-
async function
|
|
339
|
+
async function probeProjectAssets(projectDir, htmlSources, options) {
|
|
318
340
|
const candidates = collectLocalVideoAssets(projectDir, htmlSources);
|
|
319
|
-
if (candidates.size === 0) return {};
|
|
320
341
|
const cache = options.cache ?? defaultProbeCache;
|
|
321
342
|
const entries = [...candidates.entries()];
|
|
322
343
|
const facts = new Array(entries.length).fill(null);
|
|
@@ -332,15 +353,21 @@ async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
|
|
|
332
353
|
}
|
|
333
354
|
})
|
|
334
355
|
);
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
356
|
+
return entries.map(([, pathname], index) => [pathname, facts[index] ?? null]);
|
|
357
|
+
}
|
|
358
|
+
async function scanProjectMedia(projectDir, htmlSources, options = {}) {
|
|
359
|
+
const scan = { codecMap: {}, sourceFacts: {} };
|
|
360
|
+
for (const [pathname, facts] of await probeProjectAssets(projectDir, htmlSources, options)) {
|
|
361
|
+
if (facts?.browserHostile) scan.codecMap[pathname] = facts;
|
|
362
|
+
if (facts?.source) scan.sourceFacts[pathname] = facts.source;
|
|
363
|
+
}
|
|
364
|
+
return scan;
|
|
365
|
+
}
|
|
366
|
+
async function scanProjectMediaCodecMap(projectDir, htmlSources, options = {}) {
|
|
367
|
+
return (await scanProjectMedia(projectDir, htmlSources, options)).codecMap;
|
|
341
368
|
}
|
|
342
369
|
|
|
343
|
-
// ../studio-server/dist/chunk-
|
|
370
|
+
// ../studio-server/dist/chunk-5UEDEOD2.js
|
|
344
371
|
import { spawn } from "child_process";
|
|
345
372
|
import { createHash, randomUUID } from "crypto";
|
|
346
373
|
import {
|
|
@@ -353,7 +380,7 @@ import {
|
|
|
353
380
|
utimesSync,
|
|
354
381
|
writeFileSync
|
|
355
382
|
} from "fs";
|
|
356
|
-
import { availableParallelism, tmpdir } from "os";
|
|
383
|
+
import { availableParallelism, tmpdir, totalmem } from "os";
|
|
357
384
|
import { basename, dirname, extname as extname2, isAbsolute, join as join2, relative, resolve, sep as sep2 } from "path";
|
|
358
385
|
import { existsSync, readdirSync, statSync as statSync3, unlinkSync } from "fs";
|
|
359
386
|
import { extname as extname3, join } from "path";
|
|
@@ -465,7 +492,7 @@ function cleanupProxyCache(cacheDir, options = {}) {
|
|
|
465
492
|
skipped: false
|
|
466
493
|
};
|
|
467
494
|
}
|
|
468
|
-
var PROXY_PARAMS_VERSION = "
|
|
495
|
+
var PROXY_PARAMS_VERSION = "v7";
|
|
469
496
|
var CACHE_DIR_NAME = ".transcode-cache";
|
|
470
497
|
function boundedEnvInteger(name, fallback, min, max) {
|
|
471
498
|
const raw = process.env[name]?.trim();
|
|
@@ -738,28 +765,91 @@ function chunkRanges(durationSeconds) {
|
|
|
738
765
|
lengthSeconds: index === count - 1 ? durationSeconds - index * PROXY_CHUNK_SECONDS : PROXY_CHUNK_SECONDS
|
|
739
766
|
}));
|
|
740
767
|
}
|
|
741
|
-
|
|
768
|
+
var UNGATED = { size: 1, acquire: async () => {
|
|
769
|
+
}, release: () => {
|
|
770
|
+
} };
|
|
771
|
+
function createPieceGate(size) {
|
|
772
|
+
let free = size;
|
|
773
|
+
const waiters = [];
|
|
774
|
+
return {
|
|
775
|
+
size,
|
|
776
|
+
acquire: (signal) => {
|
|
777
|
+
signal.throwIfAborted();
|
|
778
|
+
if (free > 0) {
|
|
779
|
+
free--;
|
|
780
|
+
return Promise.resolve();
|
|
781
|
+
}
|
|
782
|
+
return new Promise((resolve2, reject) => {
|
|
783
|
+
const grant = () => {
|
|
784
|
+
signal.removeEventListener("abort", onAbort);
|
|
785
|
+
resolve2();
|
|
786
|
+
};
|
|
787
|
+
const onAbort = () => {
|
|
788
|
+
waiters.splice(waiters.indexOf(grant), 1);
|
|
789
|
+
reject(signal.reason);
|
|
790
|
+
};
|
|
791
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
792
|
+
waiters.push(grant);
|
|
793
|
+
});
|
|
794
|
+
},
|
|
795
|
+
release: () => {
|
|
796
|
+
const next = waiters.shift();
|
|
797
|
+
if (next) next();
|
|
798
|
+
else free++;
|
|
799
|
+
}
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
async function encodeInChunks(ranges, chunkPrefix, tempPath, encode, concat, signal, gate, onDone = () => {
|
|
742
803
|
}) {
|
|
743
804
|
const extension = extname2(tempPath);
|
|
744
805
|
const pieces = ranges.map((_, index) => `${chunkPrefix}${index}${extension}`);
|
|
806
|
+
const pending = ranges.flatMap((_, index) => existsSync2(pieces[index]) ? [] : [index]);
|
|
745
807
|
let doneSeconds = 0;
|
|
746
808
|
for (const [index, range] of ranges.entries()) {
|
|
747
|
-
if (
|
|
809
|
+
if (!pending.includes(index)) doneSeconds += range.lengthSeconds;
|
|
748
810
|
}
|
|
749
811
|
if (doneSeconds) onDone(doneSeconds);
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
812
|
+
const inFlight2 = /* @__PURE__ */ new Map();
|
|
813
|
+
const stop = new AbortController();
|
|
814
|
+
const pieceSignal = AbortSignal.any([signal, stop.signal]);
|
|
815
|
+
let failure;
|
|
816
|
+
let cursor = 0;
|
|
817
|
+
const work = async () => {
|
|
818
|
+
for (; ; ) {
|
|
819
|
+
await gate.acquire(pieceSignal);
|
|
820
|
+
try {
|
|
821
|
+
if (cursor >= pending.length) return;
|
|
822
|
+
const index = pending[cursor++];
|
|
823
|
+
const range = ranges[index];
|
|
824
|
+
const piece = pieces[index];
|
|
825
|
+
const pieceTemp = join2(dirname(piece), `.tmp-${randomUUID()}-${basename(piece)}`);
|
|
826
|
+
try {
|
|
827
|
+
await encode(pieceTemp, range, pieceSignal, (encodedSeconds) => {
|
|
828
|
+
inFlight2.set(index, encodedSeconds);
|
|
829
|
+
onDone(doneSeconds + [...inFlight2.values()].reduce((sum, seconds) => sum + seconds, 0));
|
|
830
|
+
});
|
|
831
|
+
renameSync(pieceTemp, piece);
|
|
832
|
+
inFlight2.delete(index);
|
|
833
|
+
doneSeconds += range.lengthSeconds;
|
|
834
|
+
onDone(doneSeconds);
|
|
835
|
+
} finally {
|
|
836
|
+
if (existsSync2(pieceTemp)) unlinkSync2(pieceTemp);
|
|
837
|
+
}
|
|
838
|
+
} finally {
|
|
839
|
+
gate.release();
|
|
840
|
+
}
|
|
761
841
|
}
|
|
762
|
-
}
|
|
842
|
+
};
|
|
843
|
+
await Promise.all(
|
|
844
|
+
Array.from(
|
|
845
|
+
{ length: Math.min(gate.size, pending.length) },
|
|
846
|
+
() => work().catch((error) => {
|
|
847
|
+
failure ??= error;
|
|
848
|
+
stop.abort();
|
|
849
|
+
})
|
|
850
|
+
)
|
|
851
|
+
);
|
|
852
|
+
if (failure !== void 0) throw failure;
|
|
763
853
|
const listDir = mkdtempSync(join2(tmpdir(), "hf-proxy-join-"));
|
|
764
854
|
try {
|
|
765
855
|
const listPath = join2(listDir, "pieces.txt");
|
|
@@ -774,6 +864,7 @@ async function encodeInChunks(ranges, chunkPrefix, tempPath, encode, concat, onD
|
|
|
774
864
|
}
|
|
775
865
|
for (const piece of pieces) if (existsSync2(piece)) unlinkSync2(piece);
|
|
776
866
|
}
|
|
867
|
+
var KEYFRAME_EVERY_SECOND_ARGS = ["-force_key_frames", "expr:gte(t,n_forced*1)"];
|
|
777
868
|
var H264_ARGS = [
|
|
778
869
|
"-c:v",
|
|
779
870
|
"libx264",
|
|
@@ -796,7 +887,11 @@ var H264_ARGS = [
|
|
|
796
887
|
"-movflags",
|
|
797
888
|
"+faststart"
|
|
798
889
|
];
|
|
799
|
-
var
|
|
890
|
+
var CORES = availableParallelism();
|
|
891
|
+
var PIECE_MEMORY_BYTES = 3 * 1024 ** 3;
|
|
892
|
+
var ALPHA_PIECE_GATE = createPieceGate(
|
|
893
|
+
Math.max(1, Math.min(4, CORES - 1, Math.floor(totalmem() / PIECE_MEMORY_BYTES)))
|
|
894
|
+
);
|
|
800
895
|
var VP8_ARGS = [
|
|
801
896
|
"-c:v",
|
|
802
897
|
"libvpx",
|
|
@@ -816,8 +911,6 @@ var VP8_ARGS = [
|
|
|
816
911
|
"bt709",
|
|
817
912
|
"-cpu-used",
|
|
818
913
|
"4",
|
|
819
|
-
"-threads",
|
|
820
|
-
VP8_THREADS,
|
|
821
914
|
"-auto-alt-ref",
|
|
822
915
|
"0",
|
|
823
916
|
"-metadata:s:v:0",
|
|
@@ -851,7 +944,12 @@ async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, sign
|
|
|
851
944
|
const alphaDecoder = keepsAlpha ? alphaDecoderFor(metadata.color.codecName) : null;
|
|
852
945
|
const decoderArgs = alphaDecoder ? ["-c:v", alphaDecoder] : [];
|
|
853
946
|
const totalSeconds = metadata.durationSeconds;
|
|
854
|
-
const
|
|
947
|
+
const gate = keepsAlpha ? ALPHA_PIECE_GATE : UNGATED;
|
|
948
|
+
const vp8Threads = (pieces) => [
|
|
949
|
+
"-threads",
|
|
950
|
+
String(Math.min(4, Math.floor(CORES / pieces)))
|
|
951
|
+
];
|
|
952
|
+
const encode = (target, range, pieceSignal, onEncoded) => spawnFfmpeg(
|
|
855
953
|
ffmpegPath,
|
|
856
954
|
[
|
|
857
955
|
"-y",
|
|
@@ -865,21 +963,31 @@ async function runFfmpeg(sourcePath, outputPath, chunkPrefix, variant, box, sign
|
|
|
865
963
|
...range ? ["-t", String(range.lengthSeconds)] : [],
|
|
866
964
|
"-vf",
|
|
867
965
|
videoFilter,
|
|
868
|
-
...
|
|
966
|
+
...KEYFRAME_EVERY_SECOND_ARGS,
|
|
967
|
+
...keepsAlpha ? [...VP8_ARGS, ...vp8Threads(range ? gate.size : 1)] : H264_ARGS,
|
|
869
968
|
target
|
|
870
969
|
],
|
|
871
970
|
TRANSCODE_STALL_MS,
|
|
872
|
-
|
|
873
|
-
|
|
971
|
+
pieceSignal,
|
|
972
|
+
onEncoded
|
|
874
973
|
);
|
|
875
974
|
const ranges = chunkRanges(totalSeconds);
|
|
876
|
-
if (!ranges)
|
|
975
|
+
if (!ranges) {
|
|
976
|
+
return encode(
|
|
977
|
+
outputPath,
|
|
978
|
+
void 0,
|
|
979
|
+
signal,
|
|
980
|
+
(encodedSeconds) => onProgress({ doneSeconds: encodedSeconds, totalSeconds })
|
|
981
|
+
);
|
|
982
|
+
}
|
|
877
983
|
await encodeInChunks(
|
|
878
984
|
ranges,
|
|
879
985
|
chunkPrefix,
|
|
880
986
|
outputPath,
|
|
881
987
|
encode,
|
|
882
988
|
(listPath, target) => spawnFfmpeg(ffmpegPath, concatArgs(listPath, target, variant), CONCAT_TIMEOUT_MS, signal),
|
|
989
|
+
signal,
|
|
990
|
+
gate,
|
|
883
991
|
(doneSeconds) => onProgress({ doneSeconds, totalSeconds })
|
|
884
992
|
);
|
|
885
993
|
}
|
|
@@ -1123,6 +1231,7 @@ export {
|
|
|
1123
1231
|
decideMediaProxyEligibility,
|
|
1124
1232
|
createMediaCodecProbeCache,
|
|
1125
1233
|
probeAssetCodec,
|
|
1234
|
+
scanProjectMedia,
|
|
1126
1235
|
scanProjectMediaCodecMap,
|
|
1127
1236
|
cleanupProxyCache,
|
|
1128
1237
|
PROXY_PARAMS_VERSION,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
flush,
|
|
9
9
|
shouldTrack,
|
|
10
10
|
trackEvent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JOI7TNCX.js";
|
|
12
12
|
import {
|
|
13
13
|
CliRuntimeError
|
|
14
14
|
} from "./chunk-JVBRJMOP.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-634HSJ3J.js";
|
|
18
18
|
import {
|
|
19
19
|
getPowerState
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QSFWGZG6.js";
|
|
21
21
|
import {
|
|
22
22
|
readConfig
|
|
23
23
|
} from "./chunk-PSX5SF2N.js";
|
|
@@ -297,6 +297,7 @@ function trackRenderComplete(props) {
|
|
|
297
297
|
de_blank_deterministic_accepts: props.deBlankDeterministicAccepts,
|
|
298
298
|
de_blank_recaptures: props.deBlankRecaptures,
|
|
299
299
|
de_boundary_frames: props.deBoundaryFrames,
|
|
300
|
+
de_risk_frames: props.deRiskFrames,
|
|
300
301
|
de_ncpr_fallbacks: props.deNcprFallbacks,
|
|
301
302
|
de_frame_timeouts: props.deFrameTimeouts,
|
|
302
303
|
...powerStateFields(),
|