Skip to content

Commit a7a9ff7

Browse files
authored
Add files via upload
1 parent 1ddcad4 commit a7a9ff7

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

Spleeter.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,16 @@ function runSpleeter (sequence, targetFile, model)
271271
script.log('command to run : '+ spleeterCMDName + exeOPT);
272272
// we execute the Spleeter command in blocking mode to wait end of execution;
273273
var launchresult = root.modules.os.launchProcess(spleeterCMDName + exeOPT, true);
274+
275+
} else {
276+
277+
splOutputOptions = "ffprobeOnly";
278+
279+
var exeOPT = " " + splOutputOptions + " -o " + '"' + splOutputFolder + '" -p ' + SPLstems+' "' + targetFile + '" ' + verbose;
280+
script.log('command to run : '+ spleeterCMDName + exeOPT);
281+
// we execute the Spleeter command file for only ffprobe
282+
var launchresult = root.modules.os.launchProcess(spleeterCMDName + exeOPT, true);
283+
274284
}
275285

276286
// set sequence to artist name /audio to title

spleeter.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ cd %WINPYDIRBASE%
1010

1111
ffprobe -show_format -print_format json %6 > %TMP%/spleeterfileinfo.json
1212

13-
spleeter.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
13+
if NOT %1 == "ffprobeOnly" spleeter.exe %1 %2 %3 %4 %5 %6 %7 %8 %9

0 commit comments

Comments
 (0)