Files
tdarr-plugs/tdarr_install/Tdarr_Node/srcug/commonModules/transcodeCliPaths.js
Tdarr Plugin Developer 04d7ff59e9 Update plugins: VMAF mode, documentation fixes, version sync
- Added VMAF quality-targeted mode to av1_svt_converter (v2.25)
- Fixed documentation version mismatch (misc_fixes v2.8, stream_organizer v4.10, audio_standardizer v1.15)
- Updated rate control documentation with VMAF mode details
- Added vmaf_target and vmaf_samples input options
- Added ab-av1 binary detection with ABAV1_PATH env var support
2025-12-15 19:55:19 -08:00

1 line
7.6 KiB
JavaScript

'use strict';var a31o=a31b;(function(a,b){var n=a31b,c=a();while(!![]){try{var d=-parseInt(n(0x91))/0x1*(-parseInt(n(0xbb))/0x2)+parseInt(n(0x8b))/0x3*(parseInt(n(0x9d))/0x4)+parseInt(n(0xc0))/0x5*(-parseInt(n(0xac))/0x6)+-parseInt(n(0x80))/0x7+-parseInt(n(0x82))/0x8*(parseInt(n(0x8c))/0x9)+parseInt(n(0xa8))/0xa*(-parseInt(n(0x7c))/0xb)+parseInt(n(0x7b))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a31a,0xbfbd6));var __awaiter=this&&this[a31o(0xbf)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){var r=a31b;function h(k){try{j(d['next'](k));}catch(l){g(l);}}function i(k){var p=a31b;try{j(d[p(0xa9)](k));}catch(l){g(l);}}function j(k){var q=a31b;k[q(0xc1)]?f(k[q(0x94)]):e(k[q(0x94)])[q(0xa5)](h,i);}j((d=d[r(0xc4)](a,b||[]))[r(0xa6)]());});},__generator=this&&this[a31o(0x9f)]||function(a,b){var c={'label':0x0,'sent':function(){if(h[0x0]&0x1)throw h[0x1];return h[0x1];},'trys':[],'ops':[]},d,e,h,i;return i={'next':j(0x0),'throw':j(0x1),'return':j(0x2)},typeof Symbol==='function'&&(i[Symbol['iterator']]=function(){return this;}),i;function j(l){return function(m){return k([l,m]);};}function k(l){var s=a31b;if(d)throw new TypeError('Generator\x20is\x20already\x20executing.');while(i&&(i=0x0,l[0x0]&&(c=0x0)),c)try{if(d=0x1,e&&(h=l[0x0]&0x2?e[s(0x81)]:l[0x0]?e[s(0xa9)]||((h=e[s(0x81)])&&h[s(0xbe)](e),0x0):e[s(0xa6)])&&!(h=h[s(0xbe)](e,l[0x1]))[s(0xc1)])return h;if(e=0x0,h)l=[l[0x0]&0x2,h['value']];switch(l[0x0]){case 0x0:case 0x1:h=l;break;case 0x4:c['label']++;return{'value':l[0x1],'done':![]};case 0x5:c[s(0xb9)]++,e=l[0x1],l=[0x0];continue;case 0x7:l=c[s(0xb6)][s(0x95)](),c[s(0xbc)][s(0x95)]();continue;default:if(!(h=c[s(0xbc)],h=h['length']>0x0&&h[h[s(0x9e)]-0x1])&&(l[0x0]===0x6||l[0x0]===0x2)){c=0x0;continue;}if(l[0x0]===0x3&&(!h||l[0x1]>h[0x0]&&l[0x1]<h[0x3])){c[s(0xb9)]=l[0x1];break;}if(l[0x0]===0x6&&c[s(0xb9)]<h[0x1]){c['label']=h[0x1],h=l;break;}if(h&&c[s(0xb9)]<h[0x2]){c['label']=h[0x2],c[s(0xb6)]['push'](l);break;}if(h[0x2])c[s(0xb6)][s(0x95)]();c[s(0xbc)][s(0x95)]();continue;}l=b[s(0xbe)](a,c);}catch(m){l=[0x6,m],e=0x0;}finally{d=h=0x0;}if(l[0x0]&0x5)throw l[0x1];return{'value':l[0x0]?l[0x1]:void 0x0,'done':!![]};}},__importDefault=this&&this[a31o(0x9c)]||function(a){var t=a31o;return a&&a[t(0xaf)]?a:{'default':a};};Object[a31o(0xa3)](exports,'__esModule',{'value':!![]}),exports[a31o(0x93)]=exports[a31o(0xb3)]=exports['getFFmpegPath']=exports[a31o(0x87)]=void 0x0;var logger_1=__importDefault(require(a31o(0xb1))),normJoinPath_1=__importDefault(require(a31o(0x78))),inDocker_1=__importDefault(require(a31o(0xaa))),configGetter_1=require(a31o(0x7f)),ffmpegpkg=require(a31o(0xa2)),childProcess=require('child_process'),execDir=require('./workDirs')['execDir'],ffmpegpkgPath=ffmpegpkg['split'](a31o(0xa2));ffmpegpkgPath=(0x0,normJoinPath_1[a31o(0xb2)])(execDir,a31o(0xc6),ffmpegpkgPath[0x1]);function a31b(a,b){var c=a31a();return a31b=function(d,e){d=d-0x78;var f=c[d];return f;},a31b(a,b);}var rootPath=(0x0,normJoinPath_1[a31o(0xb2)])(execDir,a31o(0xc2)),getHandBrakePath=function(){var u=a31o,a='',b=(0x0,configGetter_1['configGetter'])(u(0xc5));if(b)a=b;else switch(process['platform']){case'win32':a=''[u(0xa7)]((0x0,normJoinPath_1['default'])(rootPath,u(0xa1)));break;case u(0x99):a=u(0x88);break;case u(0x83):a=u(0xad);break;default:}return a;};exports[a31o(0x87)]=getHandBrakePath;var isDockerProd=inDocker_1[a31o(0xb2)]&&process[a31o(0xae)][a31o(0xa4)]!=='true',isDockerFinalTest=inDocker_1[a31o(0xb2)]&&process['env']['runDockerTests']===a31o(0xba),getFFmpegPath=function(){var v=a31o,a,b=(0x0,configGetter_1[v(0x9a)])('ffmpegPath');if(b)a=b;else switch(process[v(0xb5)]){case v(0xb4):a=''[v(0xa7)](ffmpegpkgPath);break;case v(0x99):isDockerProd||isDockerFinalTest?a=v(0x98):a=''[v(0xa7)](ffmpegpkgPath);break;case v(0x83):a=ffmpegpkgPath;break;default:}return a;};exports[a31o(0x79)]=getFFmpegPath;var getmkvpropeditPath=function(){var w=a31o,a='',b=(0x0,configGetter_1[w(0x9a)])('mkvpropeditPath');if(b)a=b;else switch(process[w(0xb5)]){case w(0xb4):a=''[w(0xa7)]((0x0,normJoinPath_1[w(0xb2)])(rootPath,w(0x7e)));break;case'linux':a='mkvpropedit';break;case'darwin':a=w(0xc3);break;default:}return a;};exports['getmkvpropeditPath']=getmkvpropeditPath;var runBinaryTests=function(){return __awaiter(void 0x0,void 0x0,void 0x0,function(){var a,b,c,d;return __generator(this,function(e){var A=a31b;switch(e['label']){case 0x0:a=![];return[0x4,new Promise(function(f){var y=a31b,g=function(){var x=a31b;inDocker_1[x(0xb2)]&&process[x(0xae)][x(0x85)]===x(0xba)&&(a=!![]),f([x(0x9b),x(0x96)]);},h='';try{var i=childProcess[y(0xa0)]((0x0,exports[y(0x87)])(),[y(0xb8)]);i['on'](y(0x9b),function(){g();}),i['stdout']['on'](y(0xbd),function(j){h+=j;}),i[y(0x8f)]['on'](y(0xbd),function(j){h+=j;}),i['on'](y(0xab),function(j){var z=y;process['env'][z(0x8d)]=h,j!==0x0?g():f([z(0x8a),'Binary\x20test\x201:\x20handbrakePath\x20working']);});}catch(j){g();}})];case 0x1:b=e[A(0x90)]();return[0x4,new Promise(function(f){var C=A,g=function(){var B=a31b;a=!![],f([B(0x9b),B(0x97)]);},h='';try{var i=childProcess[C(0xa0)]((0x0,exports[C(0x79)])(),[C(0x7a)]);i['on'](C(0x9b),function(){g();}),i[C(0xc7)]['on'](C(0xbd),function(j){h+=j;}),i[C(0x8f)]['on'](C(0xbd),function(j){h+=j;}),i['on'](C(0xab),function(j){var D=C;process['env'][D(0x86)]=h,j!==0x0?g():f([D(0x8a),D(0xb7)]);});}catch(j){g();}})];case 0x2:c=e[A(0x90)]();return[0x4,new Promise(function(f){var F=A,g=function(){var E=a31b;inDocker_1[E(0xb2)]&&process[E(0xae)][E(0x85)]===E(0xba)&&(a=!![]),f([E(0x9b),E(0x92)]);},h='';try{var i=childProcess[F(0xa0)]((0x0,exports[F(0xb3)])(),[F(0xb8)]);i['on'](F(0x9b),function(){g();}),i[F(0x8f)]['on'](F(0xbd),function(j){h+=j;}),i['on'](F(0xab),function(j){var G=F;process['env'][G(0x8e)]=h,j!==0x0?g():f([G(0x8a),G(0x89)]);});}catch(j){g();}})];case 0x3:d=e[A(0x90)](),logger_1[A(0xb2)]['info']('---------------Binary\x20tests\x20start----------------'),logger_1[A(0xb2)][A(0x8a)](A(0xb0)['concat']((0x0,exports[A(0x87)])())),logger_1[A(0xb2)][A(0x8a)]('ffmpegPath:'['concat']((0x0,exports['getFFmpegPath'])())),logger_1[A(0xb2)][A(0x8a)](A(0x84)[A(0xa7)]((0x0,exports[A(0xb3)])())),logger_1[A(0xb2)][b[0x0]](b[0x1]),logger_1[A(0xb2)][c[0x0]](c[0x1]),logger_1[A(0xb2)][d[0x0]](d[0x1]),logger_1[A(0xb2)][A(0x8a)](A(0x7d));return[0x2,a];}});});};exports[a31o(0x93)]=runBinaryTests;function a31a(){var H=['next','concat','20IywuZx','throw','./inDocker','close','9444yYMHse','/usr/local/bin/HandBrakeCLI','env','__esModule','handbrakePath:','./logger','default','getmkvpropeditPath','win32','platform','ops','Binary\x20test\x202:\x20ffmpegPath\x20working','--version','label','true','196ikrtXw','trys','data','call','__awaiter','4665pCQErM','done','/assets/app/','mkvpropedit','apply','handbrakePath','node_modules/ffmpeg-static','stdout','./normJoinPath','getFFmpegPath','-version','44343780NTwUoc','3581677EysFVt','---------------Binary\x20tests\x20end-------------------','/mkvpropedit/windows/mkvpropedit.exe','./configGetter','10178420aeWvxG','return','1504OhQnfO','darwin','mkvpropedit:','runDockerTests','ffmpegVersion','getHandBrakePath','HandBrakeCLI','Binary\x20test\x203:\x20mkvpropeditPath\x20working','info','2170875JCpXRp','11160fZSRBm','handbrakeVersion','mkvpropeditVersion','stderr','sent','1769LtQoic','Binary\x20test\x203:\x20mkvpropeditPath\x20not\x20working','runBinaryTests','value','pop','Binary\x20test\x201:\x20handbrakePath\x20not\x20working','Binary\x20test\x202:\x20ffmpegPath\x20not\x20working','tdarr-ffmpeg','linux','configGetter','error','__importDefault','4StqLDN','length','__generator','spawn','/HandBrakeCLI.exe','ffmpeg-static','defineProperty','runTests','then'];a31a=function(){return H;};return a31a();}