mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-04-02 04:06:51 +00:00
fix: agg to webm for no padding
This commit is contained in:
@@ -534,6 +534,11 @@ async def process_tracks(input: PipelineInput, ctx: Context) -> ProcessTracksRes
|
||||
earliest = min(ts for _, ts in valid_timestamps)
|
||||
for i, ts in valid_timestamps:
|
||||
offset = (ts - earliest).total_seconds()
|
||||
# LiveKit tracks are OGG format; even the earliest track (offset=0)
|
||||
# must go through padding step to convert OGG→WebM for the
|
||||
# transcription service. Use a tiny padding to force conversion.
|
||||
if offset == 0.0:
|
||||
offset = 0.001
|
||||
track_padding[i] = offset
|
||||
ctx.log(
|
||||
f"process_tracks: track {i} padding={offset}s (from filename timestamp)"
|
||||
|
||||
Reference in New Issue
Block a user