Files
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
5.3 KiB
JavaScript

'use strict';var a83y=a83b;(function(a,b){var t=a83b,c=a();while(!![]){try{var d=parseInt(t(0xec))/0x1*(parseInt(t(0xed))/0x2)+parseInt(t(0xeb))/0x3+-parseInt(t(0xff))/0x4*(parseInt(t(0xe9))/0x5)+parseInt(t(0xe4))/0x6*(parseInt(t(0x101))/0x7)+-parseInt(t(0xf6))/0x8*(parseInt(t(0xfd))/0x9)+-parseInt(t(0x106))/0xa+parseInt(t(0xf7))/0xb*(parseInt(t(0xf4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83a,0x691c1));function a83a(){var E=['6433zhjNVU','2mXCWaT','slice','/Tdarr/Samples/','length','error','string-argv','next','3936VvQeIu','parseArgsStringToArgv','431384wVQMRg','43307EbJkGI','ops','function','split','call','defineProperty','135ocUIVp','data','137932krTdWq','./paths','119PDgfck','stderr','return','close','spawn','4781100mWmyek','Generator\x20is\x20already\x20executing.','-t\x2000:00:30\x20-map\x200:v?\x20-map\x200:a?\x20-map\x200:s?\x20-map\x200:d?\x20-c\x20copy','__esModule','concat','iterator','then','value','child_process','platform','sent','throw','default','push','info','apply','\x27\x22\x27\x22\x27','win32','trys','__generator','__importDefault','done','label','-y\x20-ss\x2000:00:1','stdout','269916Szregq','Creating\x20sample','pop','./commonModules/tryDeleteASync','./commonModules/transcodeCliPaths','55DQRkxJ','prototype','102798zwahnL'];a83a=function(){return E;};return a83a();}var __awaiter=this&&this['__awaiter']||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 x=a83b;function h(k){var u=a83b;try{j(d[u(0xf3)](k));}catch(l){g(l);}}function i(k){var v=a83b;try{j(d[v(0xd6)](k));}catch(l){g(l);}}function j(k){var w=a83b;k[w(0xe0)]?f(k['value']):e(k[w(0x10d)])[w(0x10c)](h,i);}j((d=d[x(0xda)](a,b||[]))[x(0xf3)]());});},__generator=this&&this[a83y(0xde)]||function(a,b){var z=a83y,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===z(0xf9)&&(i[Symbol[z(0x10b)]]=function(){return this;}),i;function j(l){return function(m){return k([l,m]);};}function k(l){var A=z;if(d)throw new TypeError(A(0x107));while(i&&(i=0x0,l[0x0]&&(c=0x0)),c)try{if(d=0x1,e&&(h=l[0x0]&0x2?e[A(0x103)]:l[0x0]?e[A(0xd6)]||((h=e[A(0x103)])&&h[A(0xfb)](e),0x0):e[A(0xf3)])&&!(h=h[A(0xfb)](e,l[0x1]))[A(0xe0)])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['label']++,e=l[0x1],l=[0x0];continue;case 0x7:l=c[A(0xf8)][A(0xe6)](),c['trys'][A(0xe6)]();continue;default:if(!(h=c['trys'],h=h['length']>0x0&&h[h[A(0xf0)]-0x1])&&(l[0x0]===0x6||l[0x0]===0x2)){c=0x0;continue;}if(l[0x0]===0x3&&(!h||l[0x1]>h[0x0]&&l[0x1]<h[0x3])){c[A(0xe1)]=l[0x1];break;}if(l[0x0]===0x6&&c[A(0xe1)]<h[0x1]){c[A(0xe1)]=h[0x1],h=l;break;}if(h&&c[A(0xe1)]<h[0x2]){c[A(0xe1)]=h[0x2],c[A(0xf8)][A(0xd8)](l);break;}if(h[0x2])c[A(0xf8)][A(0xe6)]();c[A(0xdd)][A(0xe6)]();continue;}l=b[A(0xfb)](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':!![]};}},__spreadArray=this&&this['__spreadArray']||function(a,b,c){var B=a83y;if(c||arguments[B(0xf0)]===0x2)for(var d=0x0,e=b[B(0xf0)],f;d<e;d++){if(f||!(d in b)){if(!f)f=Array[B(0xea)][B(0xee)][B(0xfb)](b,0x0,d);f[d]=b[d];}}return a[B(0x10a)](f||Array[B(0xea)][B(0xee)][B(0xfb)](b));},__importDefault=this&&this[a83y(0xdf)]||function(a){return a&&a['__esModule']?a:{'default':a};};function a83b(a,b){var c=a83a();return a83b=function(d,e){d=d-0xd4;var f=c[d];return f;},a83b(a,b);}Object[a83y(0xfc)](exports,a83y(0x109),{'value':!![]});var transcodeCliPaths_1=require(a83y(0xe8)),paths_1=__importDefault(require(a83y(0x100))),tryDeleteASync_1=__importDefault(require(a83y(0xe7))),logger_1=__importDefault(require('./commonModules/logger')),childProcess=require(a83y(0x10e)),parseArgsStringToArgv=require(a83y(0xf2))[a83y(0xf5)],createSample=function(a){return __awaiter(void 0x0,void 0x0,void 0x0,function(){var b,c,d,e,f,g,h,i,j,k,l,m;return __generator(this,function(n){var C=a83b;switch(n[C(0xe1)]){case 0x0:logger_1[C(0xd7)][C(0xd9)](C(0xe5)),logger_1[C(0xd7)][C(0xd9)](a),b=a,c=a['split']('.'),c[c[C(0xf0)]-0x2]=''[C(0x10a)](c[c[C(0xf0)]-0x2],'\x20-\x20TdarrSample'),d=c['join']('.'),e=d[C(0xfa)]('/'),f=''[C(0x10a)](paths_1[C(0xd7)],C(0xef))[C(0x10a)](e[e['length']-0x1]),g=b['replace'](/'/g,'\x27\x22\x27\x22\x27'),h=f['replace'](/'/g,C(0xdb)),i=C(0xe2),j=C(0x108);return[0x4,(0x0,tryDeleteASync_1[C(0xd7)])(f)];case 0x1:n[C(0xd5)](),k=[],l=(0x0,transcodeCliPaths_1['getFFmpegPath'])();process[C(0xd4)]===C(0xdc)?k=__spreadArray(__spreadArray(__spreadArray(__spreadArray([],parseArgsStringToArgv(i,'',''),!![]),['-i',b],![]),parseArgsStringToArgv(j,'',''),!![]),[f],![]):k=__spreadArray(__spreadArray(__spreadArray(__spreadArray([],parseArgsStringToArgv(i,'',''),!![]),['-i',g],![]),parseArgsStringToArgv(j,'',''),!![]),[h],![]);return[0x4,new Promise(function(o){var D=C,p='',q=function(){o(0x1);};try{var r=childProcess[D(0x105)](l,k);r['on'](D(0xf1),function(){q();}),r[D(0xe3)]['on']('data',function(s){p+=s;}),r[D(0x102)]['on'](D(0xfe),function(s){p+=s;}),r['on'](D(0x104),function(s){o(s);});}catch(s){q();}})];case 0x2:m=n['sent']();if(m===0x0)return[0x2,{'statusCode':0xc8,'output':h}];return[0x2,{'statusCode':0x190,'output':h}];}});});};exports[a83y(0xd7)]=createSample;