Reputation: 1
I'm trying to build showcase video streaming from a server to a client, but I need to process the stream before sending. I like to do all in java, and client be an Android device.
I just heard about a library called Xuggler
which is Java-based and looks promising. Does it provide any functionalities to access the video streams and do some image processing on them before transmission?
Please introduce any other Java-based media streaming / processing libraries if you know of.
Upvotes: 0
Views: 1052
Reputation: 287
For Java video processing, despite being long deprecated, Xuggler has been the best solution that I've found, someone else might know of an alternative.
Since it's not supported anymore you have to do a few things to get started. First find a Xuggler-5.4.jar, Also you need the Java 7 Jdk to run it, it will not work with Java 8, then you need the sl4j-api and sl4j-simple Jars.
It has a complicated but well documented api, but the main gist is you use the MediaToolAdapter interface, create an IMedia Reader and Writer, add something implementing the interface to the reader as a listener, and in the implemented methods for audio and video you can process the data in each frame and pass it to the writer.
This example is a good place to start: https://github.com/artclarke/xuggle-xuggler/blob/master/src/com/xuggle/mediatool/demos/ModifyAudioAndVideo.java
Upvotes: 1