Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
zak-45 authored May 21, 2023
1 parent 1ddcad4 commit a7a9ff7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Spleeter.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,16 @@ function runSpleeter (sequence, targetFile, model)
script.log('command to run : '+ spleeterCMDName + exeOPT);
// we execute the Spleeter command in blocking mode to wait end of execution;
var launchresult = root.modules.os.launchProcess(spleeterCMDName + exeOPT, true);

} else {

splOutputOptions = "ffprobeOnly";

var exeOPT = " " + splOutputOptions + " -o " + '"' + splOutputFolder + '" -p ' + SPLstems+' "' + targetFile + '" ' + verbose;
script.log('command to run : '+ spleeterCMDName + exeOPT);
// we execute the Spleeter command file for only ffprobe
var launchresult = root.modules.os.launchProcess(spleeterCMDName + exeOPT, true);

}

// set sequence to artist name /audio to title
Expand Down
2 changes: 1 addition & 1 deletion spleeter.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ cd %WINPYDIRBASE%

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

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

0 comments on commit a7a9ff7

Please sign in to comment.