Xuggler on NetBeans


There are several reasons to write a tutorial, not all of them altruistic. The motivation for this one is to improve my understanding of video processing. Part of that will come from the research and effort to explain its usage clearly and part will come from the feedback from people who read it.

I am new to Xuggler [1] a set of programs and libraries (Java and C++) for encoding and decoding audio and video. The code presented in this tutorial has been tested and is presented as one way (the easy way) to do things. Please help me improve it. Send me an email, edit the article or add to the discussion page.

If all goes well this tutorial will have a few chapters getting more complicated as we go. The this one covers installing Xuggler and integrating the Java and runtime libraries into a NetBeans Java Desktop Application to display the video from any movie that uses a supported format. The next one will introduce multi-threading to increase performance and commands to move forward and backward in the video stream.

CAVEAT: The Swing Application Framework (SAF) that is used by NetBeans 7.0 in Java Desktop Applications is no longer supported by Oracle. There are plug-in replacements being developed such as the Better Swing Application Framework [2]. I leave my arguments on the need for a lightweight GUI like SAF for a blog post. Regardless of how you create the GUI the concepts will be applicable.


  1. Install Xuggler libraries and programs, set up the Environment variables for NetBeans and our program. See Xuggler_Install
  2. Start the Java GUI program.
  3. Write the ImageReader class to interface to Xuggler and pass images back
  4. Add playback speed control.
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo