Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- When I execute ffmpeg command through java code then It is not executing properly
- Example-:
- BufferedReader stdInput = new BufferedReader(new
- InputStreamReader(p4.getInputStream()));
- BufferedReader stdError = new BufferedReader(new
- InputStreamReader(p4.getErrorStream()));
- // read the output from the command
- System.out.println("Here is the standard output of the command:n");
- while ((s = stdInput.readLine()) != null) {
- System.out.println(s);
- }
- // read any errors from the attempted command
- System.out.println("Here is the standard error of the command (if any):n");
- while ((s = stdError.readLine()) != null) {
- System.out.println(s);
- }
- }
- catch (IOException e) {
- System.out.println("exception happened - here's what I know: ");
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement