refactor: use new transcode configs everywhere (#1028)

This commit is contained in:
Christian Benincasa
2024-12-20 11:16:26 -05:00
committed by GitHub
parent ca0ec6a92b
commit e507b1eb9b
43 changed files with 947 additions and 561 deletions

View File

@@ -38,9 +38,14 @@ export const debugFfmpegApiRouter: RouterPluginAsyncCallback = async (
const channel = await req.serverCtx.channelDB.getChannel(
req.query.channel,
);
if (!channel) {
return res.status(404).send();
}
const transcodeConfig =
await req.serverCtx.transcodeConfigDB.getChannelConfig(channel.uuid);
const details = new LocalFileStreamDetails(req.query.path);
const streamDetails = await details.getStream();
@@ -50,6 +55,7 @@ export const debugFfmpegApiRouter: RouterPluginAsyncCallback = async (
const ffmpeg = new FfmpegStreamFactory(
req.serverCtx.settings.ffmpegSettings(),
transcodeConfig,
channel,
);