From 71c119fe562f5c74d8c5aef08c06c39d07a750a8 Mon Sep 17 00:00:00 2001 From: Jack Dallas <3620144+JackDallas@users.noreply.github.com> Date: Mon, 24 Feb 2020 15:42:48 +0000 Subject: [PATCH] Allow experimental conversion of FLAC to MP3 --- .../Tdarr_Plugin_da11_Dallas_FFmpeg_Presets_H264_MP4.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Community/Tdarr_Plugin_da11_Dallas_FFmpeg_Presets_H264_MP4.js b/Community/Tdarr_Plugin_da11_Dallas_FFmpeg_Presets_H264_MP4.js index 5665356..ce21fad 100644 --- a/Community/Tdarr_Plugin_da11_Dallas_FFmpeg_Presets_H264_MP4.js +++ b/Community/Tdarr_Plugin_da11_Dallas_FFmpeg_Presets_H264_MP4.js @@ -114,7 +114,7 @@ function plugin(file, librarySettings, inputs) { if (file.ffProbeData.streams[0].codec_name != 'h264') { response.addInfo(BAD, "File is not in h264!"); - response.preset = ', -map_metadata -1 -map 0:v ' + subMap + ' -map 0:a -c:v libx264 -preset medium -c:a aac ' + subType; + response.preset = ', -map_metadata -1 -map 0:v ' + subMap + ' -map 0:a -c:v libx264 -preset medium -c:a aac -strict -2 ' + subType; response.reQueueAfter = true; response.processFile = true; response.FFmpegMode = true; @@ -125,7 +125,7 @@ function plugin(file, librarySettings, inputs) { if ((file.meta.Title != undefined) && !jsonString.includes("aac") && hasSubs) { response.addInfo(BAD, "File has title metadata and no aac and subs"); - response.preset = ', -map_metadata -1 -map 0:v ' + subMap + ' -map 0:a -c:v copy -c:a aac ' + subType; + response.preset = ', -map_metadata -1 -map 0:v ' + subMap + ' -map 0:a -c:v copy -c:a aac -strict -2 ' + subType; response.reQueueAfter = true; response.processFile = true; response.FFmpegMode = true; @@ -134,7 +134,7 @@ function plugin(file, librarySettings, inputs) { if (!jsonString.includes("aac") && hasSubs) { response.addInfo(BAD, "File has no aac track and has subs"); - response.preset = ', -map 0:v ' + subMap + ' -map 0:a -c:v copy -c:a aac ' + subType; + response.preset = ', -map 0:v ' + subMap + ' -map 0:a -c:v copy -c:a aac -strict -2 ' + subType; response.reQueueAfter = true; response.processFile = true; response.FFmpegMode = true; @@ -163,7 +163,7 @@ function plugin(file, librarySettings, inputs) { if (!jsonString.includes("aac")) { response.addInfo(BAD, "File has no aac track"); - response.preset = ', -map 0:v ' + subMap + ' -map 0:a -c:v copy -c:a aac ' + subType; + response.preset = ', -map 0:v ' + subMap + ' -map 0:a -c:v copy -c:a aac -strict -2 ' + subType; response.reQueueAfter = true; response.processFile = true; response.FFmpegMode = true;