I am writing an application which requires mux. Picture-in-picture style stuff. For now, I ingest some streams to the wowza server, and then manually execute a comand-line ffmpeg program to do the muxing, outputting another stream. This works, with acceptable latency and quality.
The question is, what is the best way to control ffmpeg from a module? Is anyone doing this at present?
One solution is just to make system commands from the Java module, but ffmpeg’s solution to any problems, like dropped streams, seems to be to simply crash. Is there some obvious way to get Java and ffmpeg to talk to each other and do appropriate things when streams go offline or change?
There’s some discussion of the Java Xuggler library, but this seems to have been dropped a couple years ago…