ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix broken audio with transcoding
Chocobozzz64e3e27053a5
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.tsindex b59e7e40e6..0caa86efcc 100644--- a/server/helpers/ffmpeg-utils.ts+++ b/server/helpers/ffmpeg-utils.ts@@ -328,10 +328,10 @@ async function presetH264 (command: ffmpeg.FfmpegCommand, resolution: VideoResolconst audioCodecName = parsedAudio.audioStream[ 'codec_name' ]let bitrate: numberif (audio.bitrate[ audioCodecName ]) {- bitrate = audio.bitrate[ audioCodecName ](parsedAudio.audioStream[ 'bit_rate' ])+ localCommand = localCommand.audioCodec('aac')- if (bitrate === -1) localCommand = localCommand.audioCodec('copy')- else if (bitrate !== undefined) localCommand = localCommand.audioBitrate(bitrate)+ bitrate = audio.bitrate[ audioCodecName ](parsedAudio.audioStream[ 'bit_rate' ])+ if (bitrate !== undefined && bitrate !== -1) localCommand = localCommand.audioBitrate(bitrate)}}