Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Do you mean writing to stdin pipe of FFmpeg sub-process in JAVA? Commented May 27, 2022 at 21:18
  • I am not sure if in Java we can do that, from what I was looking It could be done ProcessBuilder, although if Java has stdin pipe, that would be great. Commented May 27, 2022 at 22:54
  • Possibly related: How to create a video from an array of images in Android? and how to make RTSP server at android phone? Commented May 28, 2022 at 6:37
  • I don't know enough JAVA, and don't know the limitation on Android. Is it possible to create a sub-process like this: p = Runtime.getRuntime().exec(cmd)? (when cmd = "ffmpeg"... with arguments list), Then use p_stdin = DataOutputStream(p.getOutputStream()), and write data to stdin: p_stdin.write(arr)? Commented May 28, 2022 at 8:14
  • It's possible on Android as well, as long as your application uses Android API below 29, or you'll get "Permission denied", see github.com/bytedeco/javacv/issues/1127#issuecomment-643700534 Commented Jun 1, 2022 at 4:44