I am working on live streaming from blackmagic decklink card. So for that I need to execute a command.
String[] command={"./bmdcapture", "-m", "10", "-C", "0", "-V", "3", "-A", "2", "-F", "nut", "-f", "pipe:1", "|", "./avconv", "-i", "-", "-strict", "experimental", "-c:v", "libx264", "test.mp4"};
File f = new File("/home/NetBeansProjects/tools/card");
ProcessBuilder pb = new ProcessBuilder(command);
pb.directory(f);
pb.directory(f);
Process process = pb.start();
its works perfectly in terminal, But when i invoke via process-builder using java not working.