So this would seem like more of a VLC question at first, but the problem seems to lie with the exec() command in Processing. I am trying to convert a video with the following code:
- String[] params = new String[3];
- params[0] = "\"" + dataPath("") + "vlc/vlc.exe\"";
- params[2] = "--sout=#transcode{acodec=s16l,channels=2,ab=128,samplerate=44100}:standard{access=file,mux=wav,dst=\"" + dataPath("") + "output.wav\"}vlc://quit";
- params[1] = <path to the file>;
- exec(params);
Everything seems fine and it all converts, but the program does not quit on its own. This is troublesome when you have 10+ files to transcode. Does anyone have any experience using exec() in this manner?
1