02-10-2019, 06:36 PM
(This post was last modified: 02-10-2019, 06:37 PM by ldarrambide.)
Update: this code does give as much threads as wanted for conversion routine based on r variable.
Feel free to update and improve the code Gintaras
Feel free to update and improve the code Gintaras
function $files
;==========================================================================================
out
int r=0
int ht
;============================================================================================
str f
foreach f files
,r+1
,ht=mac("sub.Convert" "" f)
,if r=3
,,r=0
,,WaitForThreads 0 "MKV:Convert"