diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-13 08:42:07 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-13 08:42:07 +0200 |
commit | 3d401c1b3d12cec6bdb80b69e1ac30a151448e10 (patch) | |
tree | b927ee714f2b6aa68e0dac8fe8dc0813cf5cac9f /server/helpers/ffmpeg | |
parent | eaaf316fe12266b071069c27c01a827fdafcca41 (diff) | |
download | PeerTube-3d401c1b3d12cec6bdb80b69e1ac30a151448e10.tar.gz PeerTube-3d401c1b3d12cec6bdb80b69e1ac30a151448e10.tar.zst PeerTube-3d401c1b3d12cec6bdb80b69e1ac30a151448e10.zip |
Correctly set mp3 codec string in hls playlist
Diffstat (limited to 'server/helpers/ffmpeg')
-rw-r--r-- | server/helpers/ffmpeg/ffprobe-utils.ts | 1 |
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 | ||