mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Fix dca and truehd ffmpeg error - -strict -2
This commit is contained in:
parent
3c6479249d
commit
63114cc082
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue