Wrap Xuggle into Swing Programming Software Development by mydreamgirl Xuggle can handle many different video formats. What I am thinking about is to wrap the Xuggle into Swing component, and make a start/pause button and a progress bar on the top of it. Any suggestions? Sample codes would be great. MyDreamGirl Re: Wrap Xuggle into Swing Programming Software Development by mydreamgirl … java.lang.Thread.start(Thread.java:887) at com.test.xuggle.fileconvert.DecodeAndPlayVideo$VideoAudio.setAudio(DecodeAndPlayVideo.java:473) at com.test….xuggle.fileconvert.DecodeAndPlayVideo.playJavaSound(DecodeAndPlayVideo.java:453) at com.test.xuggle.fileconvert.DecodeAndPlayVideo.<init>(DecodeAndPlayVideo… Re: Wrap Xuggle into Swing Programming Software Development by mydreamgirl I did. However, it does not work when I tried to wrap Xuggle into a Swing component. If you have done that before, please share your knowledge with me. Thanks,MyDreamGirl Re: Wrap Xuggle into Swing Programming Software Development by Ezzaral This example app from the tutorials seems applicable: [url]http://xuggle.wordpress.com/2009/01/23/how-to-use-xuggler-to-… Re: Wrap Xuggle into Swing Programming Software Development by Chien-Rouge There is 3 methods to decode audio and/or video : - DecodeAndPlayVideo - DecodeAndPlayAudio - DecodeAndPlayAudioAndVideo They are all in : com.xuggle.xuggler.demos Xuggler Audio Recorder not working, and video longer than it should be Programming Software Development by sirlink99 …concurrent.TimeUnit; import com.xuggle.mediatool.IMediaWriter; import com.xuggle.mediatool.ToolFactory; import com.xuggle.xuggler.ICodec; public class….sound.sampled.*; import com.xuggle.mediatool.IMediaWriter; import com.xuggle.mediatool.ToolFactory; import com.xuggle.xuggler.ICodec; public class … Re: Xuggler Audio Recorder not working, and video longer than it should be Programming Software Development by sirlink99 … java.util.concurrent.TimeUnit; import com.xuggle.mediatool.IMediaWriter; import com.xuggle.mediatool.ToolFactory; import com.xuggle.xuggler.ICodec; public class TestScreenRecord { private… Re: Bring Java Swing to Web Programming Software Development by mydreamgirl …:/Users/xh2453/IBM/rationalsdp/workspace_70/XuggleTest/bin/xuggle-xuggler.jar basic: Plugin2ClassLoader.addURL parent called… file:/C:/Users/xh2453/IBM/rationalsdp/workspace_70/XuggleTest/bin/xuggle-xuggler.jar, version: null] basic: Applet loaded… in thread "thread applet-com.test.xuggle.fileconvert.DecodeAndPlayVideo.class-1" java.lang.… Re: Bring Java Swing to Web Programming Software Development by mydreamgirl …\TestWebAppl\WebContent\WEB-INF\classes" code="com.test.xuggle.fileconvert.DecodeAndPlayVideo.class" archive="C:\Users\xh2453\Desktop….jar, C:\Program Files\Xuggle\share\java\jars\xuggle-xuggler.jar, C:\Program Files\Xuggle\share\java\jars\xuggle-xuggler-test.jar" width… Re: Bring Java Swing to Web Programming Software Development by mydreamgirl …\TestWebAppl\WebContent\WEB-INF\classes" code="com.test.xuggle.fileconvert.DecodeAndPlayVideo.class" archive="C:\Users\xh2453\Desktop….jar, C:\Program Files\Xuggle\share\java\jars\xuggle-xuggler.jar, C:\Program Files\Xuggle\share\java\jars\xuggle-xuggler-test.jar" width… Re: Bring Java Swing to Web Programming Software Development by mydreamgirl …:</h2> <applet code="com.test.xuggle.fileconvert.DecodeAndPlayVideo.class" archive="XuggleTest.jar, commons-…-classic.jar, logback-core.jar, slf4j-api.jar, xuggle-xuggler.jar, xuggle-xuggler-test.jar" width="400" height… Re: Integrating Video into a Java Application Programming Software Development by nvrandow … runs into errors very often. I had great expereances with xuggle, witch is based on ffmpeg and support a lot of…'s also easy to process videos frame by frame with xuggle. No installtion is nessessary and it supports Win/Linux/Mac… bit. You can download it for free from http://www.xuggle.com/downloads I think [this post](https://groups.google.com… Re: Bring Java Swing to Web Programming Software Development by NormR1 … TestingAppletHTML.html load: class com.test.xuggle.fileconvert.DecodeAndPlayVideo.class not found. java.lang….ClassNotFoundException: com.test.xuggle.fileconvert.DecodeAndPlayVideo.class at sun.applet.…: D:\JavaDevelopment\Testing\ForumQuestions7\com\test\xuggle\fileconvert\DecodeAndPlayVideo\class.class (The system cannot… Re: How to play a video? Programming Software Development by zeroliken try the suggestions qiven in the link [URL="http://stackoverflow.com/questions/2041871/video-playback-in-java-jmf-fobs4jmf-xuggler-fmj"]http://stackoverflow.com/questions/2041871/video-playback-in-java-jmf-fobs4jmf-xuggler-fmj[/URL] maybe it's [URL="http://www.xuggle.com/xuggler/index"]Xuggler[/URL] that'll do what you need Re: Wrap Xuggle into Swing Programming Software Development by Ezzaral [B]> Any suggestions?[/B] Sure, start reading their tutorials on the site. Re: Wrap Xuggle into Swing Programming Software Development by mydreamgirl It works. Thanks. DO you know how to do volume control? Any tutorials? Re: Wrap Xuggle into Swing Programming Software Development by mydreamgirl When I do the tutorials you mentioned (DecodeAndPlayVideo.java and VideoImage.java), there is not sound. Do you know how to add sound into it? Re: Wrap Xuggle into Swing Programming Software Development by mydreamgirl DecodeAndPlayAudioAndVideo wraps all thing together and leaves no room for custmozing Swing component. I am looking into combining video and audio, any other code that has already done the job? Thanks, Re: Wrap Xuggle into Swing Programming Software Development by mydreamgirl Got it to work. Thanks a lot for your help. Re: Xuggler Audio Recorder not working, and video longer than it should be Programming Software Development by JamesCherrill Maybe: You have video code like loop do CPU intensive stuff wait 20 mSec that's only going to loop 50 times per second if the CPU stuff is instantaneous (which stuff like yours will definitely not be) At the very least you need something more like loop endTime = time now + 20 mSec do CPU intensive stuff… Re: Xuggler Audio Recorder not working, and video longer than it should be Programming Software Development by newcoder310 Why don't you try threads? Ignore this comment. Re: Xuggler Audio Recorder not working, and video longer than it should be Programming Software Development by newcoder310 In your video code, what is the need `Thread.sleep((long)(1000/SAMPLE_RATE));` and did u try reducing the sleep time? Re: Xuggler Audio Recorder not working, and video longer than it should be Programming Software Development by JamesCherrill Re video: just what I suspected. You may find that threading the screen shot and the writing may buy you a little improvement - it's not hard, so give it a try. But I doubt that you will get much from it. Realistically you will have to accept a frame rate that your computer is capable of maintaining- which looks like maybe 24fps? (good enough for… Re: Xuggler Audio Recorder not working, and video longer than it should be Programming Software Development by sirlink99 @newcoder310 as you can see in the second video code that I uploaded, the the sleep is based off the rate of execution rather than the user set fps. Even if I reduce the sleep time, the execution time cannot change, therefore the minimum fps I can get is the 1 second divided by the speed of the execution. @JamesCherrill I will try the threading a …