Fix dca and truehd ffmpeg error - -strict -2

This commit is contained in:
HaveAGitGat 2022-01-23 02:12:52 +00:00
parent 3c6479249d
commit 63114cc082

View file

@ -41,6 +41,9 @@ module.exports = function transcodeStandardiseAudioCodecs(file, audioEncoder) {
}
if (hasNonSpecifiedAudioCodecStream === true) {
if (['dca', 'truehd'].includes(audioEncoder)) {
ffmpegCommandInsert += ' -strict -2';
}
return {
preset: `,-map 0:v -map 0:a -map 0:s? -map 0:d? -c copy ${ffmpegCommandInsert}`,
processFile: true,