I am currently really confused about why my program doesn’t work.
Here I have set up a tiny test program for you:
public static void main(String[] args) {
try {
// Start new Process / Start VLC:
Process p = Runtime.getRuntime().exec(new String[] { "vlc", "-vvv" /* Super-verbose*/});
BufferedReader read = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line;
while ((line = read.readLine()) != null) {
System.out.println("VLC has print: " + line);
}
} catch (IOException e) {
e.printStackTrace();
}
}
Try starting “vlc -vvv” via command line too. You will see lots of debug-text, which is what I need.