From 3bc68dfd6183078fb56b53e24e74f889c85c4ae0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 6 Nov 2020 09:09:36 +0100 Subject: Fix audio sync after saving replay hls.js seems to not correctly handle audio gaps with fragmented mp4 (but can with a ts playlist) --- server/lib/job-queue/handlers/video-live-ending.ts | 4 ---- 1 file changed, 4 deletions(-) (limited to 'server/lib/job-queue') diff --git a/server/lib/job-queue/handlers/video-live-ending.ts b/server/lib/job-queue/handlers/video-live-ending.ts index 2b900998a..3892260c4 100644 --- a/server/lib/job-queue/handlers/video-live-ending.ts +++ b/server/lib/job-queue/handlers/video-live-ending.ts @@ -70,10 +70,6 @@ async function saveLive (video: MVideo, live: MVideoLive) { const segmentFiles = files.filter(f => f.startsWith(shouldStartWith) && f.endsWith('.ts')) await hlsPlaylistToFragmentedMP4(hlsDirectory, segmentFiles, mp4TmpPath) - for (const file of segmentFiles) { - await remove(join(hlsDirectory, file)) - } - if (!duration) { duration = await getDurationFromVideoFile(mp4TmpPath) } -- cgit v1.2.3