hyperframes 0.8.208 → 0.8.209
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-XMWRBMBR.js → add-VZKUIZEH.js} +14 -13
- package/dist/{animatedGifPrep-6XURJIPV.js → animatedGifPrep-PN4G4YPJ.js} +8 -6
- package/dist/api.js +19 -16
- package/dist/{appHistory-HIBH6XZW.js → appHistory-OHYU5ZBQ.js} +3 -2
- package/dist/{asset-I5GGEOB2.js → asset-I4PHGE57.js} +2 -2
- package/dist/{assetCataloger-YBPXUNUP.js → assetCataloger-LRAUXQ46.js} +8 -6
- package/dist/{audio-GFJCHH5W.js → audio-T7SAVYED.js} +27 -18
- package/dist/{auth-QOA55RYR.js → auth-GP6HTQT3.js} +1 -1
- package/dist/{autoUpdate-SPS4QPJU.js → autoUpdate-Z6GFPZAG.js} +2 -2
- package/dist/{backgroundChecks-HRJO7YK7.js → backgroundChecks-ZJ7JV52S.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-FBP3RKUF.js → batchRender-J3ETE23Y.js} +3 -3
- package/dist/{beats-VNGJ7F6W.js → beats-WF4FJCM5.js} +13 -10
- package/dist/{benchmark-NZ3N3MIV.js → benchmark-B7UPP4PQ.js} +8 -8
- package/dist/{browser-BD5BKRJ5.js → browser-SIUYD43U.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-WXVNPAWD.js → bundleWithLocalizedFonts-RRGFY3XV.js} +2 -2
- package/dist/{capture-LMJ4TQRL.js → capture-J3GLHUKI.js} +2 -2
- package/dist/{capture-CXWXKWS5.js → capture-VYS4PCCJ.js} +13 -12
- package/dist/{captureCompositionFrame-ZKVCRYYU.js → captureCompositionFrame-SVLMPQYC.js} +13 -12
- package/dist/{catalog-WRXQSCAU.js → catalog-DVBNR422.js} +14 -13
- package/dist/{catch-up-MDSPABFC.js → catch-up-OBPMV7KG.js} +7 -6
- package/dist/{check-SIBBK5HA.js → check-MEALXNZK.js} +42 -40
- package/dist/{checkAudio-QQBR4HR7.js → checkAudio-RZ7WQYVN.js} +21 -12
- package/dist/{checkBrowser-4EBJLLIH.js → checkBrowser-2LEQ2LSX.js} +35 -33
- package/dist/{chunk-P7WGVXR7.js → chunk-3A4SB326.js} +6 -6
- package/dist/{chunk-FFDYRJBE.js → chunk-3PTZ2TD4.js} +1 -1
- package/dist/{chunk-4HT2L6W2.js → chunk-3PUXUIWB.js} +1 -1
- package/dist/chunk-3RATCY3W.js +205 -0
- package/dist/{chunk-X6MCIK7L.js → chunk-4BXEPVSA.js} +17 -11
- package/dist/{chunk-XOFBXLMG.js → chunk-5T4DP25D.js} +5 -3
- package/dist/{chunk-ULL3U6PV.js → chunk-66PNSZ7K.js} +1 -1
- package/dist/chunk-7VZEOCUY.js +98 -0
- package/dist/{chunk-TNTGGDSD.js → chunk-A7GDBL6D.js} +1 -1
- package/dist/{chunk-6WRN4WC6.js → chunk-AQTODJWP.js} +1 -1
- package/dist/{chunk-K4PHB3YQ.js → chunk-BYPDKF36.js} +1 -1
- package/dist/{chunk-MBGM26P5.js → chunk-CA3PXWN4.js} +1 -1
- package/dist/{chunk-SI7QCT2J.js → chunk-CBM4ZUVN.js} +5 -5
- package/dist/{chunk-IL2TMC6F.js → chunk-CIDCNE2D.js} +21 -5
- package/dist/chunk-D3MUHMFG.js +16 -0
- package/dist/{chunk-6N7D2GUV.js → chunk-D6T5BNSK.js} +17 -16
- package/dist/{chunk-XG3IZV62.js → chunk-DR47DSOY.js} +5 -5
- package/dist/{chunk-B5MPMIKQ.js → chunk-DVIX7UPH.js} +2 -2
- package/dist/{chunk-PSOAGSNO.js → chunk-EA5FUMJN.js} +1 -1
- package/dist/{chunk-VR3JLTZD.js → chunk-EVYDKSML.js} +3 -3
- package/dist/{chunk-XUQYC5DD.js → chunk-F4O4G4ZW.js} +5 -5
- package/dist/{chunk-VS4SK7BN.js → chunk-FB5BXGGF.js} +7 -7
- package/dist/{chunk-IIJVSCSH.js → chunk-GQZHLF5P.js} +13 -13
- package/dist/{chunk-J67FSI3Q.js → chunk-H7B526GH.js} +19 -16
- package/dist/{chunk-CSWCZA6V.js → chunk-I3ICHLHV.js} +2 -2
- package/dist/{chunk-EYEEZXLI.js → chunk-IJPFVMIE.js} +9 -9
- package/dist/{chunk-MPO25DQW.js → chunk-IQNS7O4W.js} +117 -135
- package/dist/{chunk-3O2E4Q66.js → chunk-J7A73K2B.js} +35 -22
- package/dist/{chunk-GHSO62LK.js → chunk-JC6BAQOG.js} +4 -10
- package/dist/{chunk-PKVA6MPV.js → chunk-JJRMN2RV.js} +63 -200
- package/dist/{chunk-XMRA7CQG.js → chunk-KCLBO65Y.js} +1 -1
- package/dist/{chunk-CP225S5H.js → chunk-KGBFHYHX.js} +4 -4
- package/dist/{chunk-QP2MJYTJ.js → chunk-L5XVBFUM.js} +1 -1
- package/dist/{chunk-DHQSDCWD.js → chunk-L7MGVFR4.js} +2 -1
- package/dist/{chunk-WNMVC3IT.js → chunk-LJ7H2A2C.js} +1 -1
- package/dist/{chunk-NZ6G5YWZ.js → chunk-LV4NWCJS.js} +1 -1
- package/dist/{chunk-QWBVPWUI.js → chunk-MI4V4HPE.js} +1 -1
- package/dist/{chunk-7CPI2DWL.js → chunk-MKALOCDV.js} +1 -1
- package/dist/{chunk-ENRFKCI6.js → chunk-MVNTJGDX.js} +3 -3
- package/dist/{chunk-GEO6THL3.js → chunk-NJZRXELC.js} +28 -25
- package/dist/{chunk-EOVYQ3IG.js → chunk-NQ2INEHX.js} +17 -17
- package/dist/{chunk-BLCKQPBE.js → chunk-NXNDHV26.js} +1 -1
- package/dist/{chunk-WABB4LZS.js → chunk-OK3QLJSF.js} +1 -1
- package/dist/{chunk-4KG3ESVO.js → chunk-OML6HQQN.js} +1 -1
- package/dist/{chunk-OTXXDONS.js → chunk-P2FSCR5B.js} +2 -2
- package/dist/{chunk-FC4WT5FX.js → chunk-P327BIJR.js} +1 -14
- package/dist/{chunk-43MW4SY7.js → chunk-P3OKYRGA.js} +3 -3
- package/dist/{chunk-S4KHJERB.js → chunk-PYVYF64E.js} +1 -1
- package/dist/{chunk-CZUAX3BV.js → chunk-QIDN4ML5.js} +1 -1
- package/dist/{chunk-DXACKQ3F.js → chunk-QIKZ2HZJ.js} +3 -3
- package/dist/{chunk-EGOXYG3M.js → chunk-R52YM6ZK.js} +1 -1
- package/dist/{chunk-MW2NQQ6Z.js → chunk-RAONLDN5.js} +2 -2
- package/dist/{chunk-MYO77JWR.js → chunk-RJO4X3AA.js} +1 -1
- package/dist/{chunk-LSMFOZ4F.js → chunk-RVG2JNDU.js} +1 -1
- package/dist/{chunk-7PAK7LZ5.js → chunk-SE6S4SGZ.js} +11 -13
- package/dist/{chunk-G2A6RC5R.js → chunk-SNLXWCET.js} +64 -48
- package/dist/{chunk-4F5NRJ6M.js → chunk-SOXQXX2M.js} +2 -2
- package/dist/{chunk-U6KN6OIP.js → chunk-SPMKVI6H.js} +1 -1
- package/dist/{chunk-6CWKORZO.js → chunk-SWHCYFEF.js} +27 -5
- package/dist/{chunk-PWEOSJ3E.js → chunk-TF7YE7J5.js} +3 -3
- package/dist/{chunk-Z5TGBEPJ.js → chunk-TSM67ADU.js} +1 -1
- package/dist/{chunk-BKDQFOKK.js → chunk-U5IZUWBW.js} +3 -3
- package/dist/{chunk-6JNSYFOH.js → chunk-V4VXWOIF.js} +3 -3
- package/dist/{chunk-ORFRUZPB.js → chunk-W32DVMX3.js} +2 -2
- package/dist/{chunk-4LTBQEPD.js → chunk-WLVHSGVL.js} +2 -2
- package/dist/chunk-XCIHCPJK.js +106 -0
- package/dist/{chunk-HUKQW4YE.js → chunk-Y2EVJBR6.js} +1 -1
- package/dist/{chunk-HZN7ICAF.js → chunk-YCGLT5B4.js} +1 -1
- package/dist/{chunk-5PCALX6G.js → chunk-YIFEK3UD.js} +1 -1
- package/dist/{chunk-6DSYBW7Z.js → chunk-YRO3PXWU.js} +1 -85
- package/dist/{chunk-5HB4JM7H.js → chunk-Z67J3TTU.js} +5 -3
- package/dist/{chunk-SKKQMW5X.js → chunk-ZMIRSWN6.js} +1 -1
- package/dist/{chunk-S2OLTAEL.js → chunk-ZPILPVYU.js} +2 -2
- package/dist/chunk-ZXTSUXSL.js +4870 -0
- package/dist/{clean-6GX7WAEC.js → clean-VWCYLOVI.js} +20 -17
- package/dist/cli.js +55 -55
- package/dist/{cloud-6PFJKLNL.js → cloud-HU3RXCVE.js} +4 -4
- package/dist/{cloudrun-UGG3ZFH7.js → cloudrun-OST6QBYD.js} +4 -4
- package/dist/commands/layout-audit.browser.js +1 -0
- package/dist/{compare-P4EBOP4B.js → compare-U2MJWZAH.js} +32 -30
- package/dist/{compiler-PG4RKX6K.js → compiler-DSP4MVEC.js} +5 -3
- package/dist/{component-SQPMI3W7.js → component-EC5XU6KR.js} +3 -3
- package/dist/{compositions-KRIHY3IY.js → compositions-AKYCTF4G.js} +12 -10
- package/dist/{delete-T5TO4SV6.js → delete-Z5MOEZM2.js} +5 -4
- package/dist/{deploy-AO6LQR5G.js → deploy-Y4LFVYXT.js} +1 -1
- package/dist/{dist-6IMEDVMC.js → dist-73YTUT3W.js} +1 -1
- package/dist/{dist-23AAB5X2.js → dist-JJL4QUDL.js} +2 -2
- package/dist/{doctor-QBUJQ655.js → doctor-7234U557.js} +12 -10
- package/dist/{events-J7CESLKQ.js → events-RUIZNTG3.js} +2 -2
- package/dist/{events-SIZO7YHI.js → events-SII53QYO.js} +3 -3
- package/dist/{feedback-74WOJ5PN.js → feedback-6CCDDQ36.js} +7 -7
- package/dist/{ffmpeg-AKUP6U2S.js → ffmpeg-C4VWK4M2.js} +8 -6
- package/dist/{figma-GGMYRR4Q.js → figma-GAN63U5U.js} +3 -3
- package/dist/fontLocalizeCli.js +11 -9
- package/dist/{get-PLKAI6JM.js → get-RZGUHZB4.js} +5 -4
- package/dist/{gpuPolicy-EYDAAPJF.js → gpuPolicy-BGJRCLP4.js} +8 -6
- package/dist/{grade-compare-UADJP4AV.js → grade-compare-XOBN52WV.js} +33 -31
- package/dist/{heifImagePrep-KDF3OPOK.js → heifImagePrep-DCHSYGW7.js} +9 -7
- package/dist/{help-WSQQ555Q.js → help-O2IV6PUC.js} +1 -1
- package/dist/{history-VSQ2DQ3V.js → history-GPTEM4UX.js} +9 -8
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +64 -64
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-MOQ4LRC3.js → info-7Y3JPN7C.js} +7 -7
- package/dist/{init-EONQSZJG.js → init-L6W5WG5K.js} +34 -29
- package/dist/{inspect-OLCVLHOU.js → inspect-MQZANGQY.js} +33 -31
- package/dist/{installer-GHISA75B.js → installer-DCIMLYB6.js} +4 -4
- package/dist/{keyframes-DGQYCY24.js → keyframes-WNJIKL4G.js} +6 -6
- package/dist/{lambda-AMMWF2YH.js → lambda-FEA4SSFK.js} +12 -10
- package/dist/{layout-R6CAPGRO.js → layout-AUQAYDJU.js} +33 -31
- package/dist/{lint-QZJEYPHD.js → lint-A33IHYID.js} +7 -7
- package/dist/{lintProject-W3YVHAGP.js → lintProject-KCN7MRBN.js} +1 -1
- package/dist/{list-KCJID4SP.js → list-56JHCET6.js} +5 -4
- package/dist/{login-7HKBEPJS.js → login-HUOM4GNP.js} +4 -4
- package/dist/{manager-6YSKJMVD.js → manager-SDRJOMPR.js} +9 -7
- package/dist/{media-treatment-E3DL6LEZ.js → media-treatment-5TGZOD67.js} +14 -12
- package/dist/{models-URWI7YEG.js → models-ABDX6TXI.js} +12 -10
- package/dist/{motionShot-27IXMDJK.js → motionShot-AV2WRH2C.js} +16 -15
- package/dist/{normalize-audio-WGRLPR3P.js → normalize-audio-M7T25DST.js} +10 -7
- package/dist/{open-LQ35PLEN.js → open-IRNZY5XN.js} +15 -14
- package/dist/{parakeetRunner-XASVIDTI.js → parakeetRunner-2EJUIMOJ.js} +16 -13
- package/dist/{pipeline-GA7QVCHS.js → pipeline-QGKOJKXS.js} +9 -7
- package/dist/{play-RYZP77CI.js → play-2SQLHM5B.js} +24 -21
- package/dist/{preflight-HJFSJXXF.js → preflight-ZHXMG2SM.js} +9 -7
- package/dist/{present-YBMLOWZV.js → present-RERVL6R7.js} +19 -16
- package/dist/{preview-QIRKJCRV.js → preview-S6RQOMHE.js} +22 -20
- package/dist/{producer-524FDOLX.js → producer-DBRGH2FI.js} +1 -1
- package/dist/{projectConfig-IDQN5ZRW.js → projectConfig-TUMDULTL.js} +9 -8
- package/dist/{publication-3X3IGSDO.js → publication-7VGXIFVZ.js} +2 -2
- package/dist/{publish-2BF7K6HX.js → publish-KJB2AGHL.js} +14 -11
- package/dist/{remove-background-EZBCEFT6.js → remove-background-EFWXPLS4.js} +10 -8
- package/dist/{render-TEEBI2UT.js → render-5O5ARP6C.js} +49 -50
- package/dist/{render-JFMTAXHD.js → render-7S6UBLOE.js} +36 -36
- package/dist/{render-EFUA2A6A.js → render-HV6AA22W.js} +5 -5
- package/dist/{render-batch-XTYNXVSW.js → render-batch-7UEOULJJ.js} +5 -5
- package/dist/renderSetupWorker.js +1 -1
- package/dist/{resolver-FZS6TN6B.js → resolver-HFTEER5V.js} +4 -4
- package/dist/{sherpa-TQIAIKTH.js → sherpa-HSSM76FL.js} +15 -12
- package/dist/{skills-S6ZG5KKH.js → skills-RQO5K6WL.js} +5 -5
- package/dist/{skillsUpdateCheck-XC7JQL3F.js → skillsUpdateCheck-S5WL2YLZ.js} +3 -3
- package/dist/{snapshot-ERYZIM32.js → snapshot-4RGI235E.js} +86 -52
- package/dist/{src-6XOMREMS.js → src-ALOV4D57.js} +24 -9
- package/dist/{src-OL6RHPE4.js → src-D75YYW2M.js} +10 -8
- package/dist/{staticProjectServer-JYDDGPAH.js → staticProjectServer-DIHWPJ6B.js} +21 -18
- package/dist/studio/assets/{hyperframes-player-5dRdMVOq.js → hyperframes-player-CMH8OeX2.js} +1 -1
- package/dist/studio/assets/{index-Bu3mJUU2.js → index-DQam8zzE.js} +4 -4
- package/dist/studio/assets/{index-ZqyQ91pm.js → index-DjHzuJGR.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-GRU4SHKD.js → studio-api-A2VSWTVF.js} +13 -10
- package/dist/{studioServer-OYPBEI5B.js → studioServer-PECYWZHS.js} +53 -51
- package/dist/{synthesize-QZHRXGRY.js → synthesize-RVE7IUOJ.js} +3 -2
- package/dist/{telemetry-CPYINR63.js → telemetry-YDGXGOLH.js} +3 -3
- package/dist/{timeline-RGK5BMPD.js → timeline-5WUEEKZ3.js} +21 -18
- package/dist/{tokens-EX4BOWRW.js → tokens-XVFZPIUZ.js} +2 -2
- package/dist/{transcribe-RI52JMVW.js → transcribe-QWDUIJWK.js} +20 -17
- package/dist/{transcribe-MK367I6A.js → transcribe-TTJ6CDQT.js} +12 -9
- package/dist/{tts-AY4JO5NQ.js → tts-AGMCPQXE.js} +1 -1
- package/dist/{updateCheck-BIEJKQI4.js → updateCheck-P7STSJ6Q.js} +2 -2
- package/dist/{upgrade-ES3UUI7O.js → upgrade-NEIZ3KVL.js} +2 -2
- package/dist/{urlDownloader-XAGYSTAG.js → urlDownloader-ZZFNGZNG.js} +7 -5
- package/dist/{validate-A6GZHNEI.js → validate-T2SLBOXG.js} +26 -24
- package/dist/{video-OEMGR3MN.js → video-7OHSBSRT.js} +8 -6
- package/dist/warmCheck.js +42 -40
- package/package.json +1 -1
- package/dist/chunk-BQMAPNDA.js +0 -4830
- package/dist/chunk-DKPNNYBZ.js +0 -44
|
@@ -12,6 +12,14 @@ import {
|
|
|
12
12
|
pixelFormatHasAlpha,
|
|
13
13
|
videoStreamHasAlpha
|
|
14
14
|
} from "./chunk-5S7W3TUO.js";
|
|
15
|
+
import {
|
|
16
|
+
decodableAudioStream
|
|
17
|
+
} from "./chunk-D3MUHMFG.js";
|
|
18
|
+
import {
|
|
19
|
+
removeScratch,
|
|
20
|
+
renameWithRetry,
|
|
21
|
+
renameWithRetryAsync
|
|
22
|
+
} from "./chunk-XCIHCPJK.js";
|
|
15
23
|
import {
|
|
16
24
|
DISTRIBUTED_FPS,
|
|
17
25
|
MEDIA_VISUAL_STYLE_PROPERTIES,
|
|
@@ -32,7 +40,7 @@ import {
|
|
|
32
40
|
renderFrameIdForRenderId,
|
|
33
41
|
resolveAuthoredTimingWindow,
|
|
34
42
|
toFps
|
|
35
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-MI4V4HPE.js";
|
|
36
44
|
import {
|
|
37
45
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
38
46
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -75,7 +83,7 @@ import {
|
|
|
75
83
|
sourceTimeAt,
|
|
76
84
|
timeAtSourceTime,
|
|
77
85
|
volumeSegmentSampleCount
|
|
78
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-ZXTSUXSL.js";
|
|
79
87
|
import {
|
|
80
88
|
redactTelemetryString,
|
|
81
89
|
redactUrlQueryStrings
|
|
@@ -93,7 +101,7 @@ import {
|
|
|
93
101
|
} from "./chunk-ERUQ3S6D.js";
|
|
94
102
|
import {
|
|
95
103
|
resolveReferencedStart
|
|
96
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-P327BIJR.js";
|
|
97
105
|
import {
|
|
98
106
|
FFMPEG_PATH_ENV,
|
|
99
107
|
FFPROBE_PATH_ENV,
|
|
@@ -673,6 +681,35 @@ async function explainChromeLaunchFailure(error, executablePath, args, signal) {
|
|
|
673
681
|
${diagnosis}`, { cause: error });
|
|
674
682
|
}
|
|
675
683
|
|
|
684
|
+
// ../engine/src/services/sandboxLaunch.ts
|
|
685
|
+
var MACH_SERVICE_DENIED = /bootstrap_check_in\b[^\n]*Permission denied/;
|
|
686
|
+
var SINGLE_PROCESS = "--single-process";
|
|
687
|
+
var CPU_COMPOSITING = "--disable-gpu-compositing";
|
|
688
|
+
function machServiceDenied(errorMessage) {
|
|
689
|
+
return MACH_SERVICE_DENIED.test(errorMessage);
|
|
690
|
+
}
|
|
691
|
+
function pipeLaunchClosedOnMac(error, platform = process.platform) {
|
|
692
|
+
return platform === "darwin" && error instanceof Error && error.name === "TargetCloseError";
|
|
693
|
+
}
|
|
694
|
+
function inAgentSandbox(env = process.env, platform = process.platform) {
|
|
695
|
+
return platform === "darwin" && env.CODEX_SANDBOX === "seatbelt";
|
|
696
|
+
}
|
|
697
|
+
function oneProcessOverPipe(options) {
|
|
698
|
+
const args = options.args ?? [];
|
|
699
|
+
const missing = [SINGLE_PROCESS, CPU_COMPOSITING].filter((flag) => !args.includes(flag));
|
|
700
|
+
return { ...options, pipe: true, args: [...args, ...missing] };
|
|
701
|
+
}
|
|
702
|
+
function isOneProcessOverPipe(options) {
|
|
703
|
+
return options.pipe === true && (options.args ?? []).includes(SINGLE_PROCESS);
|
|
704
|
+
}
|
|
705
|
+
function sandboxDeniedRemediation(errorMessage) {
|
|
706
|
+
if (!machServiceDenied(errorMessage)) return void 0;
|
|
707
|
+
return [
|
|
708
|
+
"The browser can't start inside this sandbox: macOS refused Chrome's mach service (bootstrap_check_in: Permission denied).",
|
|
709
|
+
"Rerun this command with escalation, outside the sandbox."
|
|
710
|
+
].join("\n");
|
|
711
|
+
}
|
|
712
|
+
|
|
676
713
|
// ../parsers/dist/htmlAttributeSpans.js
|
|
677
714
|
function readAttributeValue(html, at) {
|
|
678
715
|
while (/[\t\n\f\r ]/.test(html.charAt(at))) at++;
|
|
@@ -1486,12 +1523,23 @@ async function acquireBrowser(chromeArgs, config) {
|
|
|
1486
1523
|
const enablePool = config?.enableBrowserPool ?? DEFAULT_CONFIG.enableBrowserPool;
|
|
1487
1524
|
return browserLeasePool.acquire(createBrowserLaunchFingerprint(chromeArgs, config), enablePool);
|
|
1488
1525
|
}
|
|
1526
|
+
async function launchInsideSandbox(ppt, options) {
|
|
1527
|
+
const sandboxed = inAgentSandbox();
|
|
1528
|
+
try {
|
|
1529
|
+
return await ppt.launch(sandboxed ? oneProcessOverPipe(options) : options);
|
|
1530
|
+
} catch (error) {
|
|
1531
|
+
const message = error instanceof Error ? error.message : "";
|
|
1532
|
+
const refused = machServiceDenied(message) || pipeLaunchClosedOnMac(error);
|
|
1533
|
+
if (process.platform !== "darwin" || sandboxed || !refused) throw error;
|
|
1534
|
+
return ppt.launch(oneProcessOverPipe(options));
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1489
1537
|
async function launchBrowser(fingerprint) {
|
|
1490
1538
|
const ppt = await getPuppeteer();
|
|
1491
1539
|
const env = launchEnv(fingerprint);
|
|
1492
1540
|
let captureMode = fingerprint.requestedCaptureMode;
|
|
1493
1541
|
let browser;
|
|
1494
|
-
const launch = (args) => ppt
|
|
1542
|
+
const launch = (args) => launchInsideSandbox(ppt, {
|
|
1495
1543
|
...ownedLaunchOptions(),
|
|
1496
1544
|
headless: true,
|
|
1497
1545
|
args: withHyperframesBrowserMarker(args),
|
|
@@ -1501,6 +1549,8 @@ async function launchBrowser(fingerprint) {
|
|
|
1501
1549
|
timeout: fingerprint.browserTimeoutMs,
|
|
1502
1550
|
protocolTimeout: fingerprint.protocolTimeoutMs
|
|
1503
1551
|
}).catch(async (error) => {
|
|
1552
|
+
const remediation = process.platform === "darwin" && sandboxDeniedRemediation(error instanceof Error ? error.message : "");
|
|
1553
|
+
if (remediation) throw new Error(remediation, { cause: error });
|
|
1504
1554
|
const defaults = await ppt.defaultArgs({
|
|
1505
1555
|
headless: true,
|
|
1506
1556
|
args: withHyperframesBrowserMarker(args)
|
|
@@ -9336,7 +9386,7 @@ async function probeMediaProfile(filePath, options) {
|
|
|
9336
9386
|
}
|
|
9337
9387
|
return {
|
|
9338
9388
|
hasVideoStream: videoStreams.length > 0,
|
|
9339
|
-
hasAudioStream: output.streams
|
|
9389
|
+
hasAudioStream: decodableAudioStream(output.streams) !== null,
|
|
9340
9390
|
visualKind: isStillImage ? "still" : hasMovingVideoStream ? "moving" : "none"
|
|
9341
9391
|
};
|
|
9342
9392
|
} catch (error) {
|
|
@@ -9542,7 +9592,7 @@ async function extractMediaMetadata(filePath) {
|
|
|
9542
9592
|
height: videoStream.height || stillImage()?.height || 0,
|
|
9543
9593
|
fps,
|
|
9544
9594
|
videoCodec: videoStream.codec_name || "unknown",
|
|
9545
|
-
hasAudio: output?.streams
|
|
9595
|
+
hasAudio: decodableAudioStream(output?.streams ?? []) !== null,
|
|
9546
9596
|
isVFR,
|
|
9547
9597
|
hasAlpha,
|
|
9548
9598
|
...alphaPlaneDecoded === void 0 ? {} : { alphaPlaneDecoded },
|
|
@@ -9670,8 +9720,10 @@ async function extractAudioMetadata(filePath, options) {
|
|
|
9670
9720
|
}
|
|
9671
9721
|
async function probeAudioMetadata(filePath, signal) {
|
|
9672
9722
|
const output = await probeMediaOutput(filePath, signal);
|
|
9673
|
-
const
|
|
9674
|
-
|
|
9723
|
+
const audioStreams = output.streams.filter((s) => s.codec_type === "audio");
|
|
9724
|
+
const audioStreamIndex = decodableAudioStream(output.streams);
|
|
9725
|
+
const audioStream = audioStreamIndex === null ? void 0 : audioStreams[audioStreamIndex];
|
|
9726
|
+
if (audioStreamIndex === null || !audioStream) throw new Error("[FFmpeg] No audio stream found");
|
|
9675
9727
|
let durationSeconds = output.format.duration ? parseFloat(output.format.duration) : 0;
|
|
9676
9728
|
const streamDuration = audioStream.duration ? parseFloat(audioStream.duration) : void 0;
|
|
9677
9729
|
const sampleRate = audioStream.sample_rate ? parseInt(audioStream.sample_rate) : 44100;
|
|
@@ -9679,6 +9731,7 @@ async function probeAudioMetadata(filePath, signal) {
|
|
|
9679
9731
|
if (sampleRate > 0) {
|
|
9680
9732
|
const decoded = await probeDecodedAudioDuration(
|
|
9681
9733
|
filePath,
|
|
9734
|
+
audioStreamIndex,
|
|
9682
9735
|
sampleRate,
|
|
9683
9736
|
audioStartSeconds(audioStream, output.format),
|
|
9684
9737
|
durationSeconds,
|
|
@@ -9697,7 +9750,8 @@ async function probeAudioMetadata(filePath, signal) {
|
|
|
9697
9750
|
bitrate: output.format.bit_rate ? parseInt(output.format.bit_rate) : void 0,
|
|
9698
9751
|
latestStreamLeadSeconds: latestStreamLeadSeconds(output),
|
|
9699
9752
|
audioStreamLeadSeconds: streamLeadSeconds(output, audioStream),
|
|
9700
|
-
audioStreamCount:
|
|
9753
|
+
audioStreamCount: audioStreams.length,
|
|
9754
|
+
audioStream: audioStreamIndex
|
|
9701
9755
|
};
|
|
9702
9756
|
}
|
|
9703
9757
|
function audioVideoStreamStarts(output) {
|
|
@@ -9725,11 +9779,11 @@ function reconcileAudioDuration(containerSeconds, decodedSeconds, format) {
|
|
|
9725
9779
|
if (trustShorter && difference < -AUDIO_DURATION_PROBE_MARGIN_SECONDS) return decodedSeconds;
|
|
9726
9780
|
return containerSeconds;
|
|
9727
9781
|
}
|
|
9728
|
-
async function probeDecodedAudioDuration(filePath, sampleRate, startSeconds, containerDurationSeconds, signal) {
|
|
9782
|
+
async function probeDecodedAudioDuration(filePath, audioStream, sampleRate, startSeconds, containerDurationSeconds, signal) {
|
|
9729
9783
|
const probe = async (readInterval) => {
|
|
9730
9784
|
const args = [
|
|
9731
9785
|
"-select_streams",
|
|
9732
|
-
|
|
9786
|
+
`a:${audioStream}`,
|
|
9733
9787
|
"-show_entries",
|
|
9734
9788
|
"frame=best_effort_timestamp_time,nb_samples",
|
|
9735
9789
|
"-of",
|
|
@@ -11116,7 +11170,7 @@ function isMemberGroupHidden(groupsById, el) {
|
|
|
11116
11170
|
}
|
|
11117
11171
|
|
|
11118
11172
|
// ../engine/src/services/videoFrameExtractor.ts
|
|
11119
|
-
import { copyFileSync as
|
|
11173
|
+
import { copyFileSync as copyFileSync2, existsSync as existsSync9, linkSync as linkSync2, mkdirSync as mkdirSync6, rmSync as rmSync5 } from "fs";
|
|
11120
11174
|
import { basename as basename2, join as join12 } from "path";
|
|
11121
11175
|
import { cpus } from "os";
|
|
11122
11176
|
|
|
@@ -12260,103 +12314,11 @@ import {
|
|
|
12260
12314
|
lstatSync as lstatSync2,
|
|
12261
12315
|
mkdirSync as mkdirSync5,
|
|
12262
12316
|
readdirSync as readdirSync5,
|
|
12263
|
-
rmSync as
|
|
12317
|
+
rmSync as rmSync4,
|
|
12264
12318
|
statSync as statSync6,
|
|
12265
12319
|
utimesSync,
|
|
12266
12320
|
writeFileSync as writeFileSync3
|
|
12267
12321
|
} from "fs";
|
|
12268
|
-
|
|
12269
|
-
// ../engine/src/utils/renameWithRetry.ts
|
|
12270
|
-
import { copyFileSync as copyFileSync2, renameSync } from "fs";
|
|
12271
|
-
import { copyFile, rename } from "fs/promises";
|
|
12272
|
-
|
|
12273
|
-
// ../engine/src/utils/removeScratch.ts
|
|
12274
|
-
import { AsyncLocalStorage } from "async_hooks";
|
|
12275
|
-
import { rmSync as rmSync4 } from "fs";
|
|
12276
|
-
var collecting = new AsyncLocalStorage();
|
|
12277
|
-
function removeScratch(path) {
|
|
12278
|
-
try {
|
|
12279
|
-
rmSync4(path, { recursive: true, force: true });
|
|
12280
|
-
} catch {
|
|
12281
|
-
collecting.getStore()?.push(path);
|
|
12282
|
-
}
|
|
12283
|
-
}
|
|
12284
|
-
async function collectScratchLeftovers(run, report) {
|
|
12285
|
-
const left = [];
|
|
12286
|
-
try {
|
|
12287
|
-
return await collecting.run(left, run);
|
|
12288
|
-
} finally {
|
|
12289
|
-
report(left);
|
|
12290
|
-
}
|
|
12291
|
-
}
|
|
12292
|
-
|
|
12293
|
-
// ../engine/src/utils/renameWithRetry.ts
|
|
12294
|
-
var RETRYABLE = /* @__PURE__ */ new Set(["EPERM", "EACCES", "EBUSY"]);
|
|
12295
|
-
var BACKOFF_MS = [10, 20, 40, 80, 160, 320, 640];
|
|
12296
|
-
function isRetryable(error, platform) {
|
|
12297
|
-
if (platform !== "win32") return false;
|
|
12298
|
-
return RETRYABLE.has(error?.code ?? "");
|
|
12299
|
-
}
|
|
12300
|
-
function nextStep(error, attempt, options, platform) {
|
|
12301
|
-
if (!isRetryable(error, platform)) return "throw";
|
|
12302
|
-
if (attempt < BACKOFF_MS.length) return "wait";
|
|
12303
|
-
return options.copyFallback ? "copy" : "throw";
|
|
12304
|
-
}
|
|
12305
|
-
function sleepSync(ms) {
|
|
12306
|
-
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
|
|
12307
|
-
}
|
|
12308
|
-
function renameWithRetry(from, to, options = {}) {
|
|
12309
|
-
const doRename = options.rename ?? renameSync;
|
|
12310
|
-
const doCopy = options.copy ?? copyFileSync2;
|
|
12311
|
-
const platform = options.platform ?? process.platform;
|
|
12312
|
-
for (let attempt = 0; ; attempt++) {
|
|
12313
|
-
try {
|
|
12314
|
-
doRename(from, to);
|
|
12315
|
-
return;
|
|
12316
|
-
} catch (error) {
|
|
12317
|
-
const step = nextStep(error, attempt, options, platform);
|
|
12318
|
-
if (step === "throw") throw error;
|
|
12319
|
-
if (step === "wait") {
|
|
12320
|
-
sleepSync(BACKOFF_MS[attempt]);
|
|
12321
|
-
continue;
|
|
12322
|
-
}
|
|
12323
|
-
try {
|
|
12324
|
-
doCopy(from, to);
|
|
12325
|
-
} catch {
|
|
12326
|
-
throw error;
|
|
12327
|
-
}
|
|
12328
|
-
removeScratch(from);
|
|
12329
|
-
return;
|
|
12330
|
-
}
|
|
12331
|
-
}
|
|
12332
|
-
}
|
|
12333
|
-
async function renameWithRetryAsync(from, to, options = {}) {
|
|
12334
|
-
const doRename = options.rename ?? rename;
|
|
12335
|
-
const doCopy = options.copy ?? copyFile;
|
|
12336
|
-
const platform = options.platform ?? process.platform;
|
|
12337
|
-
for (let attempt = 0; ; attempt++) {
|
|
12338
|
-
try {
|
|
12339
|
-
await doRename(from, to);
|
|
12340
|
-
return;
|
|
12341
|
-
} catch (error) {
|
|
12342
|
-
const step = nextStep(error, attempt, options, platform);
|
|
12343
|
-
if (step === "throw") throw error;
|
|
12344
|
-
if (step === "wait") {
|
|
12345
|
-
await new Promise((resolve2) => setTimeout(resolve2, BACKOFF_MS[attempt]));
|
|
12346
|
-
continue;
|
|
12347
|
-
}
|
|
12348
|
-
try {
|
|
12349
|
-
await doCopy(from, to);
|
|
12350
|
-
} catch {
|
|
12351
|
-
throw error;
|
|
12352
|
-
}
|
|
12353
|
-
removeScratch(from);
|
|
12354
|
-
return;
|
|
12355
|
-
}
|
|
12356
|
-
}
|
|
12357
|
-
}
|
|
12358
|
-
|
|
12359
|
-
// ../engine/src/services/extractionCache.ts
|
|
12360
12322
|
import { join as join11 } from "path";
|
|
12361
12323
|
var COMPLETE_SENTINEL = ".hf-complete";
|
|
12362
12324
|
var GC_MARKER = ".hf-last-gc";
|
|
@@ -12439,7 +12401,7 @@ function publishCacheEntry(entry, partialDir) {
|
|
|
12439
12401
|
const winner = adoptPublishedWinner(entry, partialDir);
|
|
12440
12402
|
if (winner) return winner;
|
|
12441
12403
|
try {
|
|
12442
|
-
|
|
12404
|
+
rmSync4(entry.dir, { recursive: true, force: true });
|
|
12443
12405
|
} catch {
|
|
12444
12406
|
return { dir: partialDir, published: false };
|
|
12445
12407
|
}
|
|
@@ -12501,7 +12463,7 @@ function directorySizeBytes(path) {
|
|
|
12501
12463
|
}
|
|
12502
12464
|
function removeDir(path) {
|
|
12503
12465
|
try {
|
|
12504
|
-
|
|
12466
|
+
rmSync4(path, { recursive: true, force: true });
|
|
12505
12467
|
} catch {
|
|
12506
12468
|
}
|
|
12507
12469
|
}
|
|
@@ -13531,7 +13493,7 @@ function linkOrCopyFrame(src, dest) {
|
|
|
13531
13493
|
try {
|
|
13532
13494
|
linkSync2(src, dest);
|
|
13533
13495
|
} catch {
|
|
13534
|
-
|
|
13496
|
+
copyFileSync2(src, dest);
|
|
13535
13497
|
}
|
|
13536
13498
|
}
|
|
13537
13499
|
function supersetGroupingKey(work, fps) {
|
|
@@ -13621,7 +13583,7 @@ function planSupersetGroups(misses, fps) {
|
|
|
13621
13583
|
}
|
|
13622
13584
|
function sliceSupersetMember(member, superset, outputDir, fps, configuredFps) {
|
|
13623
13585
|
const { work } = member.miss;
|
|
13624
|
-
|
|
13586
|
+
rmSync5(outputDir, { recursive: true, force: true });
|
|
13625
13587
|
mkdirSync6(outputDir, { recursive: true });
|
|
13626
13588
|
const requestedFrames = extractionFrameCountForDuration(
|
|
13627
13589
|
work.videoDuration,
|
|
@@ -13950,14 +13912,14 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
13950
13912
|
maxTransientRetries,
|
|
13951
13913
|
onRetry: () => {
|
|
13952
13914
|
recordTransientRetries(1);
|
|
13953
|
-
|
|
13915
|
+
rmSync5(outputDir, { recursive: true, force: true });
|
|
13954
13916
|
}
|
|
13955
13917
|
}
|
|
13956
13918
|
);
|
|
13957
13919
|
return attempted2.result;
|
|
13958
13920
|
}
|
|
13959
13921
|
const partialDir = partialCacheEntryDir(cacheTarget.entry);
|
|
13960
|
-
|
|
13922
|
+
rmSync5(partialDir, { recursive: true, force: true });
|
|
13961
13923
|
mkdirSync6(partialDir, { recursive: true });
|
|
13962
13924
|
const attempted = await runVideoExtractionWithRetry(
|
|
13963
13925
|
() => extractVideoFramesRange(
|
|
@@ -13975,7 +13937,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
13975
13937
|
maxTransientRetries,
|
|
13976
13938
|
onRetry: () => {
|
|
13977
13939
|
recordTransientRetries(1);
|
|
13978
|
-
|
|
13940
|
+
rmSync5(partialDir, { recursive: true, force: true });
|
|
13979
13941
|
mkdirSync6(partialDir, { recursive: true });
|
|
13980
13942
|
}
|
|
13981
13943
|
}
|
|
@@ -14059,7 +14021,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
14059
14021
|
} catch {
|
|
14060
14022
|
return null;
|
|
14061
14023
|
} finally {
|
|
14062
|
-
|
|
14024
|
+
rmSync5(probeDir, { recursive: true, force: true });
|
|
14063
14025
|
}
|
|
14064
14026
|
}
|
|
14065
14027
|
async function executeDirectMiss(miss, maxTransientRetries = options.maxTransientRetries ?? 0) {
|
|
@@ -14095,7 +14057,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
14095
14057
|
if (!first) return [];
|
|
14096
14058
|
const tempDir = cacheRootDir ? join12(cacheRootDir, `${group.groupId}.partial-${process.pid}`) : join12(options.outputDir, group.groupId);
|
|
14097
14059
|
try {
|
|
14098
|
-
|
|
14060
|
+
rmSync5(tempDir, { recursive: true, force: true });
|
|
14099
14061
|
const superset = await extractVideoFramesRange(
|
|
14100
14062
|
first.videoPath,
|
|
14101
14063
|
group.groupId,
|
|
@@ -14128,7 +14090,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
14128
14090
|
);
|
|
14129
14091
|
return fallback;
|
|
14130
14092
|
} finally {
|
|
14131
|
-
|
|
14093
|
+
rmSync5(tempDir, { recursive: true, force: true });
|
|
14132
14094
|
}
|
|
14133
14095
|
}
|
|
14134
14096
|
const preparedExtractions = await Promise.all(
|
|
@@ -14432,7 +14394,7 @@ var FrameLookupTable = class {
|
|
|
14432
14394
|
for (const video of this.videos.values()) {
|
|
14433
14395
|
if (video.extracted.ownedByLookup) continue;
|
|
14434
14396
|
if (existsSync9(video.extracted.outputDir)) {
|
|
14435
|
-
|
|
14397
|
+
rmSync5(video.extracted.outputDir, { recursive: true, force: true });
|
|
14436
14398
|
}
|
|
14437
14399
|
}
|
|
14438
14400
|
this.videos.clear();
|
|
@@ -14937,7 +14899,7 @@ async function queryElementStacking(page, nativeHdrIds) {
|
|
|
14937
14899
|
}
|
|
14938
14900
|
|
|
14939
14901
|
// ../engine/src/services/audioMixer.ts
|
|
14940
|
-
import { closeSync as closeSync4, existsSync as existsSync11, mkdirSync as mkdirSync7, mkdtempSync as mkdtempSync9, openSync as openSync4, rmSync as
|
|
14902
|
+
import { closeSync as closeSync4, existsSync as existsSync11, mkdirSync as mkdirSync7, mkdtempSync as mkdtempSync9, openSync as openSync4, rmSync as rmSync7, writeFileSync as writeFileSync7 } from "fs";
|
|
14941
14903
|
import { join as join16, dirname as dirname7, isAbsolute, relative } from "path";
|
|
14942
14904
|
|
|
14943
14905
|
// ../engine/src/utils/notMediaPayload.ts
|
|
@@ -15286,7 +15248,7 @@ function audioFailureDiagnostics(values) {
|
|
|
15286
15248
|
}
|
|
15287
15249
|
|
|
15288
15250
|
// ../engine/src/services/audioVolumeEnvelope.ts
|
|
15289
|
-
import { mkdtempSync as mkdtempSync7, readFileSync as readFileSync6, rmSync as
|
|
15251
|
+
import { mkdtempSync as mkdtempSync7, readFileSync as readFileSync6, rmSync as rmSync6, writeFileSync as writeFileSync5 } from "fs";
|
|
15290
15252
|
import { dirname as dirname6, join as join14 } from "path";
|
|
15291
15253
|
|
|
15292
15254
|
// ../core/dist/runtime/mediaVolumeEnvelope.js
|
|
@@ -15423,7 +15385,7 @@ function applyVolumeEnvelopeToWav(wavPath, keyframes, trackStart, baseVolume) {
|
|
|
15423
15385
|
} finally {
|
|
15424
15386
|
if (stagingDir) {
|
|
15425
15387
|
try {
|
|
15426
|
-
|
|
15388
|
+
rmSync6(stagingDir, { recursive: true, force: true });
|
|
15427
15389
|
} catch {
|
|
15428
15390
|
}
|
|
15429
15391
|
}
|
|
@@ -16004,6 +15966,11 @@ async function applyAudioFxChain(inputWav, chain, outputWav, options) {
|
|
|
16004
15966
|
}
|
|
16005
15967
|
});
|
|
16006
15968
|
}
|
|
15969
|
+
var fxBrowserArgs;
|
|
15970
|
+
var fxChromeArgs = () => fxBrowserArgs ??= buildChromeArgs(
|
|
15971
|
+
{ width: 1280, height: 720, captureMode: "screenshot" },
|
|
15972
|
+
{ browserGpuMode: "software" }
|
|
15973
|
+
);
|
|
16007
15974
|
async function withFxBrowser(options, body) {
|
|
16008
15975
|
const hostDir = mkdtempSync8(join15(tmpdir5(), "hf-fx-host-"));
|
|
16009
15976
|
let lease = null;
|
|
@@ -16011,7 +15978,7 @@ async function withFxBrowser(options, body) {
|
|
|
16011
15978
|
if (options.signal?.aborted) {
|
|
16012
15979
|
throw new AudioFxRenderError(`Audio FX cancelled for track ${options.trackId}`);
|
|
16013
15980
|
}
|
|
16014
|
-
lease = await acquireBrowser(
|
|
15981
|
+
lease = await acquireBrowser(fxChromeArgs());
|
|
16015
15982
|
const { browser } = lease;
|
|
16016
15983
|
return await body(() => openFxPage(browser, hostDir));
|
|
16017
15984
|
} catch (err) {
|
|
@@ -16152,11 +16119,11 @@ function buildAtempoFilter(playbackRate) {
|
|
|
16152
16119
|
}
|
|
16153
16120
|
var RAMP_SLICE_SECONDS = 0.25;
|
|
16154
16121
|
var MAX_RAMP_SLICES = 240;
|
|
16155
|
-
function buildRampFilterComplex(lane, duration, headFilter, tailFilter) {
|
|
16122
|
+
function buildRampFilterComplex(lane, duration, headFilter, tailFilter, input) {
|
|
16156
16123
|
const slices = Math.min(MAX_RAMP_SLICES, Math.max(1, Math.ceil(duration / RAMP_SLICE_SECONDS)));
|
|
16157
16124
|
const step = duration / slices;
|
|
16158
16125
|
const split = Array.from({ length: slices }, (_, i) => `[s${i}]`).join("");
|
|
16159
|
-
const parts = [`[
|
|
16126
|
+
const parts = [`[${input}]${headFilter ? `${headFilter},` : ""}asplit=${slices}${split}`];
|
|
16160
16127
|
for (let i = 0; i < slices; i += 1) {
|
|
16161
16128
|
const from = sourceTimeAt(lane, i * step);
|
|
16162
16129
|
const to = sourceTimeAt(lane, (i + 1) * step);
|
|
@@ -16176,16 +16143,22 @@ function buildRampFilterComplex(lane, duration, headFilter, tailFilter) {
|
|
|
16176
16143
|
if (tailFilter) parts.push(`[cat]${tailFilter}[out]`);
|
|
16177
16144
|
return parts.join(";");
|
|
16178
16145
|
}
|
|
16179
|
-
function preparedAudioOutputArgs(metadata, playbackRate, duration, headFilter) {
|
|
16146
|
+
function preparedAudioOutputArgs(metadata, playbackRate, duration, headFilter, stream) {
|
|
16180
16147
|
const channelFilter = metadata?.channels === 1 ? STEREO_CHANNEL_FILTER : null;
|
|
16181
16148
|
const outputArgs = channelFilter ? [] : ["-ac", "2"];
|
|
16182
16149
|
if (typeof playbackRate === "object") {
|
|
16183
|
-
const graph = buildRampFilterComplex(
|
|
16150
|
+
const graph = buildRampFilterComplex(
|
|
16151
|
+
playbackRate,
|
|
16152
|
+
duration,
|
|
16153
|
+
headFilter,
|
|
16154
|
+
channelFilter,
|
|
16155
|
+
stream ?? "0:a"
|
|
16156
|
+
);
|
|
16184
16157
|
return ["-filter_complex", graph, "-map", "[out]", ...outputArgs];
|
|
16185
16158
|
}
|
|
16186
16159
|
const filters = [headFilter, channelFilter, buildAtempoFilter(playbackRate)].filter(Boolean);
|
|
16187
16160
|
if (filters.length > 0) outputArgs.push("-af", filters.join(","));
|
|
16188
|
-
return outputArgs;
|
|
16161
|
+
return [...stream ? ["-map", stream] : [], ...outputArgs];
|
|
16189
16162
|
}
|
|
16190
16163
|
function escapeExpressionCommas(expression) {
|
|
16191
16164
|
return expression.replace(/\\/g, "\\\\").replace(/,/g, "\\,");
|
|
@@ -16508,7 +16481,13 @@ async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, durat
|
|
|
16508
16481
|
{ padToDuration: true }
|
|
16509
16482
|
);
|
|
16510
16483
|
if (!cycle.success) return { ...cycle, outputPath };
|
|
16511
|
-
const outputArgs2 = preparedAudioOutputArgs(
|
|
16484
|
+
const outputArgs2 = preparedAudioOutputArgs(
|
|
16485
|
+
metadata,
|
|
16486
|
+
normalizedPlaybackRate,
|
|
16487
|
+
duration,
|
|
16488
|
+
null,
|
|
16489
|
+
null
|
|
16490
|
+
);
|
|
16512
16491
|
const result2 = await runFfmpeg(
|
|
16513
16492
|
[
|
|
16514
16493
|
"-stream_loop",
|
|
@@ -16554,7 +16533,8 @@ async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, durat
|
|
|
16554
16533
|
[
|
|
16555
16534
|
warmUp > 0 ? `atrim=start=${warmUp},asetpts=PTS-STARTPTS` : timestampTrim,
|
|
16556
16535
|
...options?.padToDuration ? ["apad"] : []
|
|
16557
|
-
].filter(Boolean).join(",") || null
|
|
16536
|
+
].filter(Boolean).join(",") || null,
|
|
16537
|
+
metadata ? `0:a:${metadata.audioStream}` : null
|
|
16558
16538
|
);
|
|
16559
16539
|
const readFrom = fromSidecar ? audioSidecarUrl : srcPath;
|
|
16560
16540
|
const args = [
|
|
@@ -17235,7 +17215,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
17235
17215
|
).catch((err) => {
|
|
17236
17216
|
internalController.abort();
|
|
17237
17217
|
try {
|
|
17238
|
-
|
|
17218
|
+
rmSync7(workDir, { recursive: true, force: true });
|
|
17239
17219
|
} catch {
|
|
17240
17220
|
}
|
|
17241
17221
|
throw err;
|
|
@@ -17260,7 +17240,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
17260
17240
|
});
|
|
17261
17241
|
const removeWorkDir = () => {
|
|
17262
17242
|
try {
|
|
17263
|
-
|
|
17243
|
+
rmSync7(workDir, { recursive: true, force: true });
|
|
17264
17244
|
} catch {
|
|
17265
17245
|
}
|
|
17266
17246
|
};
|
|
@@ -17419,7 +17399,7 @@ async function processCompositionAudio(elements, baseDir, workDir, outputPath, t
|
|
|
17419
17399
|
// ../engine/src/services/parallelCoordinator.ts
|
|
17420
17400
|
import { cpus as cpus3, freemem } from "os";
|
|
17421
17401
|
import { existsSync as existsSync12, mkdirSync as mkdirSync8, readdirSync as readdirSync6 } from "fs";
|
|
17422
|
-
import { copyFile
|
|
17402
|
+
import { copyFile, readFile as readFile2 } from "fs/promises";
|
|
17423
17403
|
import { join as join18 } from "path";
|
|
17424
17404
|
import { getHeapStatistics } from "v8";
|
|
17425
17405
|
|
|
@@ -18156,7 +18136,7 @@ async function mergeWorkerFrames(workDir, tasks, outputDir) {
|
|
|
18156
18136
|
try {
|
|
18157
18137
|
await renameWithRetryAsync(sourcePath, targetPath);
|
|
18158
18138
|
} catch {
|
|
18159
|
-
await
|
|
18139
|
+
await copyFile(sourcePath, targetPath);
|
|
18160
18140
|
}
|
|
18161
18141
|
});
|
|
18162
18142
|
await Promise.all(copyTasks);
|
|
@@ -18609,6 +18589,12 @@ export {
|
|
|
18609
18589
|
SDR_RGB_TO_BT709_FILTER,
|
|
18610
18590
|
SDR_RGB_TO_TAGGED_BT709_FILTER,
|
|
18611
18591
|
explainChromeLaunchFailure,
|
|
18592
|
+
machServiceDenied,
|
|
18593
|
+
pipeLaunchClosedOnMac,
|
|
18594
|
+
inAgentSandbox,
|
|
18595
|
+
oneProcessOverPipe,
|
|
18596
|
+
isOneProcessOverPipe,
|
|
18597
|
+
sandboxDeniedRemediation,
|
|
18612
18598
|
BrowserLeasePool,
|
|
18613
18599
|
setHostHandlesSigint,
|
|
18614
18600
|
resolveHeadlessShellPath,
|
|
@@ -18753,10 +18739,6 @@ export {
|
|
|
18753
18739
|
fetchPublicHttpsText,
|
|
18754
18740
|
downloadToTemp,
|
|
18755
18741
|
isHttpUrl,
|
|
18756
|
-
removeScratch,
|
|
18757
|
-
collectScratchLeftovers,
|
|
18758
|
-
renameWithRetry,
|
|
18759
|
-
renameWithRetryAsync,
|
|
18760
18742
|
directorySizeBytes,
|
|
18761
18743
|
gcExtractionCache,
|
|
18762
18744
|
VIDEO_FRAME_FORMATS,
|