From 3d401c1b3d12cec6bdb80b69e1ac30a151448e10 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 13 Jul 2022 08:42:07 +0200 Subject: Correctly set mp3 codec string in hls playlist --- server/helpers/ffmpeg/ffprobe-utils.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'server/helpers') diff --git a/server/helpers/ffmpeg/ffprobe-utils.ts b/server/helpers/ffmpeg/ffprobe-utils.ts index 07bcf01f4..a9b4fb456 100644 --- a/server/helpers/ffmpeg/ffprobe-utils.ts +++ b/server/helpers/ffmpeg/ffprobe-utils.ts @@ -79,6 +79,7 @@ async function getAudioStreamCodec (path: string, existingProbe?: FfprobeData) { if (audioCodecName === 'opus') return 'opus' if (audioCodecName === 'vorbis') return 'vorbis' if (audioCodecName === 'aac') return 'mp4a.40.2' + if (audioCodecName === 'mp3') return 'mp4a.40.34' logger.warn('Cannot get audio codec of %s.', path, { audioStream }) -- cgit v1.2.3