Fix dca and truehd ffmpeg error - -strict -2

make-only-subtitle-default
HaveAGitGat 4 years ago
parent 3c6479249d
commit 63114cc082

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

Loading…
Cancel
Save