aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-13 08:42:07 +0200
committerChocobozzz <me@florianbigard.com>2022-07-13 08:42:07 +0200
commit3d401c1b3d12cec6bdb80b69e1ac30a151448e10 (patch)
treeb927ee714f2b6aa68e0dac8fe8dc0813cf5cac9f /server
parenteaaf316fe12266b071069c27c01a827fdafcca41 (diff)
downloadPeerTube-3d401c1b3d12cec6bdb80b69e1ac30a151448e10.tar.gz
PeerTube-3d401c1b3d12cec6bdb80b69e1ac30a151448e10.tar.zst
PeerTube-3d401c1b3d12cec6bdb80b69e1ac30a151448e10.zip
Correctly set mp3 codec string in hls playlist
Diffstat (limited to 'server')
-rw-r--r--server/helpers/ffmpeg/ffprobe-utils.ts1
1 files changed, 1 insertions, 0 deletions
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) {
79 if (audioCodecName === 'opus') return 'opus' 79 if (audioCodecName === 'opus') return 'opus'
80 if (audioCodecName === 'vorbis') return 'vorbis' 80 if (audioCodecName === 'vorbis') return 'vorbis'
81 if (audioCodecName === 'aac') return 'mp4a.40.2' 81 if (audioCodecName === 'aac') return 'mp4a.40.2'
82 if (audioCodecName === 'mp3') return 'mp4a.40.34'
82 83
83 logger.warn('Cannot get audio codec of %s.', path, { audioStream }) 84 logger.warn('Cannot get audio codec of %s.', path, { audioStream })
84 85