From b1c3a29a96b964bd7fb2463dabd90361a87b6f9e Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Sat, 22 Feb 2025 14:56:52 +0000 Subject: [PATCH] test: update macos tests --- ...Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/tests/Community/Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js b/tests/Community/Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js index 9c93b6c..cdb6bbf 100644 --- a/tests/Community/Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js +++ b/tests/Community/Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js @@ -49,6 +49,7 @@ const tests = [ FFmpegMode: true, reQueueAfter: true, infoLog: '☑ It looks like the current video bitrate is 1206kbps.\n' + + '10 bit encode enabled. Setting VideoToolBox Profile v2 & 10 bit pixel format\n' + 'Container for output selected as mkv.\n' + 'Encode variable bitrate settings:\n' + 'Target = 603k\n' @@ -113,7 +114,7 @@ const tests = [ FFmpegMode: true, reQueueAfter: true, infoLog: '☑ It looks like the current video bitrate is 1206kbps.\n' - + '10 bit encode enabled. Setting main10 Profile & 10 bit pixel format\n' + + '10 bit encode enabled. Setting VideoToolBox Profile v2 & 10 bit pixel format\n' + 'Container for output selected as mp4.\n' + 'Encode variable bitrate settings:\n' + 'Target = 603k\n' @@ -184,7 +185,7 @@ const tests = [ reQueueAfter: true, infoLog: '☑ It looks like the current video bitrate is 6454kbps.\n' + 'Input file is h264 High10. Hardware Decode not supported so will SW decode.\n' - + '10 bit encode enabled. Setting main10 Profile & 10 bit pixel format\n' + + '10 bit encode enabled. Setting VideoToolBox Profile v2 & 10 bit pixel format\n' + 'Container for output selected as mkv.\n' + 'Encode variable bitrate settings:\n' + 'Target = 3227k\n' @@ -262,7 +263,7 @@ const tests = [ infoLog: '☑ It looks like the current video bitrate is 12000kbps.\n' + 'Reconvert_hevc is true & the file is already HEVC, VP9 or AV1. Using HEVC specific cutoff of 6000kbps.\n' + '☒ The file is still above this new cutoff! Reconverting.\n' - + '10 bit encode enabled. Setting main10 Profile & 10 bit pixel format\n' + + '10 bit encode enabled. Setting VideoToolBox Profile v2 & 10 bit pixel format\n' + 'Container for output selected as mkv.\n' + 'Encode variable bitrate settings:\n' + 'Target = 6000k\n' @@ -499,7 +500,7 @@ const tests = [ FFmpegMode: true, reQueueAfter: true, infoLog: '☑ It looks like the current video bitrate is 1206kbps.\n' - + '10 bit encode enabled. Setting main10 Profile & 10 bit pixel format\n' + + '10 bit encode enabled. Setting VideoToolBox Profile v2 & 10 bit pixel format\n' + 'Container for output selected as mkv.\n' + 'Encode variable bitrate settings:\n' + 'Target = 603k\n' @@ -730,6 +731,27 @@ const tests = [ + 'File Transcoding...\n', container: '.mkv', }, + darwin: { + processFile: true, + preset: '-fflags +genpts -hwaccel videotoolbox -map 0 -c:v hevc_videotoolbox -b:v 4800k -minrate 3600k -maxrate 6000k -bufsize 12000k -preset slow -c:a copy -c:s copy -max_muxing_queue_size 9999 -color_primaries bt2020 -color_trc smpte2084 -colorspace bt2020nc -f matroska -profile:v 2 -pix_fmt yuv420p10le ', + handBrakeMode: false, + FFmpegMode: true, + reQueueAfter: true, + infoLog: '☑ It looks like the current video bitrate is 12000kbps.\n' + + '==WARNING== This looks to be a HDR file. HDR is supported but correct encoding is not guaranteed.\n' + + 'Reconvert_hevc is true & the file is already HEVC, VP9 or AV1. Using HEVC specific cutoff of 8100kbps.\n' + + '☒ The file is still above this new cutoff! Reconverting.\n' + + '10 bit encode enabled. Setting VideoToolBox Profile v2 & 10 bit pixel format\n' + + 'Container for output selected as mkv.\n' + + 'Encode variable bitrate settings:\n' + + 'Target = 4800k\n' + + 'Minimum = 3600k\n' + + 'Maximum = 6000k\n' + + '==ALERT== OS detected as MAC - This will use VIDEOTOOLBOX to encode which is NOT QSV\n' + + 'cmds set in extra_qsv_options will be IGNORED!\n' + + 'File Transcoding...\n', + container: '.mkv', + }, }, }, ];