From 6af5d77d6273d12258171a59606ab3169ed1552e Mon Sep 17 00:00:00 2001 From: ZGaetano Date: Thu, 4 Jun 2026 20:58:20 +0000 Subject: [PATCH] feat(growing): thread growing_codec through /capture/start session params --- services/capture/src/routes/capture.js | 2 ++ services/mam-api/src/routes/recorders.js | 1 + 2 files changed, 3 insertions(+) diff --git a/services/capture/src/routes/capture.js b/services/capture/src/routes/capture.js index 628023f..958711c 100644 --- a/services/capture/src/routes/capture.js +++ b/services/capture/src/routes/capture.js @@ -329,6 +329,7 @@ router.post('/start', async (req, res) => { growing_smb_username, growing_smb_password, growing_smb_vers, + growing_codec, } = req.body; if (!project_id || !clip_name) { @@ -413,6 +414,7 @@ router.post('/start', async (req, res) => { if (growing_smb_username) process.env.GROWING_SMB_USERNAME = growing_smb_username; if (growing_smb_password) process.env.GROWING_SMB_PASSWORD = growing_smb_password; if (growing_smb_vers) process.env.GROWING_SMB_VERS = growing_smb_vers; + if (growing_codec) process.env.GROWING_CODEC = growing_codec; const session = await captureManager.start({ projectId: project_id, diff --git a/services/mam-api/src/routes/recorders.js b/services/mam-api/src/routes/recorders.js index 445fc6d..491534b 100644 --- a/services/mam-api/src/routes/recorders.js +++ b/services/mam-api/src/routes/recorders.js @@ -918,6 +918,7 @@ router.post('/:id/start', requireRecorderEdit, async (req, res, next) => { growing_smb_username: growingInfra.growing_smb_username || '', growing_smb_password: growingInfra.growing_smb_password || '', growing_smb_vers: growingInfra.growing_smb_vers || '3.0', + growing_codec: recorder.growing_codec === 'hevc_nvenc' ? 'hevc_nvenc' : 'avci100', }; const captureRes = await fetch(captureStartUrl, { method: 'POST',