I run the ffmpeg command from java Runtime.getRuntime (). exec. The ffmpeg command basically cuts images from a real stream. In fact, when I run this command without it, and then it works fine for five minutes after that, it stops cutting images.
but when I use "&" in the ffmpeg command it doesn't work at all.
there is no problem in the real-time stream, since when I ran this ffmpeg command from linux, it works fine.
My main question is: how to run the ffmpeg command in the background from java.
jack source share