Added the used Opus bitrate to the media pipeline logs

This commit is contained in:
Thorsten Sommer committed 2026-09-19 19:08:47 +02:00
1 parent 8049067fb3
commit 341534ab78
2 files changed
+12 -1

No files matched your search

@@ -653,6 +653,14 @@ public sealed class MediaTranscriptionService(
// re-encoding it could only take quality away, never add any.
var opusBitrateBps = settingsManager.ConfigurationData.App.OpusBitrate.GetBitsPerSecond();
// Which quality an upload was produced with is the first question to ask when a transcript
// comes back missing something, so it has to be in the log of the job it belongs to:
logger.LogInformation(
"Normalizing media for operation {OperationId}; re-encoding uses the Opus bitrate {OpusBitrate} ({OpusBitrateBps} bps).",
operation.Id,
settingsManager.ConfigurationData.App.OpusBitrate,
opusBitrateBps);
// The quick POST is intentionally not cancelled: losing its response could orphan a job
// whose ID the client never received. Cancellation is applied immediately after ownership.
var jobId = await rustService.StartMediaJobAsync(mediaPath, normalizedPath, opusBitrateBps, CancellationToken.None);