I'm trying to make an application in java netbeans, I want to add a video or animations which will be the background of my Jframe.
please advise
Have you considered JMF? It's the standard way to play media with Java SE.
Related
I have to create a window transition animation for android (like the one when closing an app. It fades away and another comes in from a corner) on java. I have heard that animating with swing is a bit more complicated than with javafx. So will I face any problems while making programs using only swing or is there anything I cannot do using swing but could do using javafx? I would prefer using swing as I am familiar with it. Thanks.
JavaFx is better to use as it is having better properties.
http://www.dummies.com/how-to/content/10-differences-between-javafx-and-swing.html
I've looked up multiple options for embedding a MP4 video into my GUI. I seen many people advise against using swing because it's old. I've done many GUI's with adding image icons and such but never tried embedding a MP4 video until now. Is there a simple way to embed my MP4 video into my GUI such as how Image Icons are added? Also is there a method that will keep this video on replay until the application closes? such as a video.repeat(true); or something of that nature? Thanks for all the help ahead of time.
I don't know if/how it is possible in pure Swing, but you can embed a JavaFX MediaPlayer in your Swing application, see details here: https://stackoverflow.com/a/16326393/1149528 or here: Can't play mp4 converted file - JavaFX 2.1
I wish to play a video in JFrame. I am already using ffmpeg in my project. As I wish to keep the project light, I am not willing to use other frameworks like JMF or other. I know that I can play video using ffplay. But the problem here is ffplay opens the video in new window when I try
ffplay output.avi
I wish to put that video within my JFrame, like a player. How can I do this?
Request:
Please ask for any other clarifications, details, and suggest improvements or comment what you find wrong before downvoting or voting to close the question:). I will change it. I am really new to Java, I tried searching this but could not find any possible solution.
What I tried? I couln't find anything related to this, so I don't have any code. I am familiar to how to create frames, and can use runtime to ffplay video. But I got no clue how to put that video within my window:(.
All suggestions are welcome if you can suggest me other methods to play the video. But I haven't use any frameworks other than ffmpeg. And do not wish to make the application heavier. So it would be more helpful if it can be achieved using ffplay.
Look at the JMF 2.1.1 - Supported Formats. If the video types you wish to support are covered by the cross-platform1 version of the JMF, or you can find an SPI for the format, I'd say use JMF.
The 'performance pack' version uses natives which are now very old. I would not recommend trying to use them.
I just want to know if it is possible in Java to create a frame which is located between the desktop background and the icons on it.
Basically I try to create an "animated desktop background" in Java using Windows 7.
I found some tutorials on how to create a fully transparent window, but the problem remaining is, that this window is still in front of the desktop icons, so its more like a "desktop foreground".
Is there a way to make this foreground to a background?
Are there other ways to achieve this in "pure" Java?
But I guess the only way realizing it with Java is native code via JNI/JNA.
Hopefully you can tell me that I'm wrong ;)
You cannot do it using Swing/AWT. Since the windows api is in c++, it is possible to call some of the functions using JNI.
I want to create a cross platform SlideShow maker desktop-application (mainly Windows & Mac), the SlideShow will be generated using a set of images with background music, subtitles/captions and there will be a transition between each slide/image.
I have done all the UI in swing and it all works superb on Windows & Mac. Now the only "little" problem is
How to generate a video from a set of images with "transitions" & "subtitles" in java using native java libs/frameworks and add some music in background ;-)
I want the video output format to be at least in avi & mov, with transitions like:
1) fade
2) Zoom (images will zoom-in from e.g. 64x64 to full video size)
3) Multiple (multiple images will appear in single slide)
I have used JMF example to generate .mov from .jpeg images it was buggy but may work if I can add transitions?? But it appears JMF is mainly for media playback it only supports a few media formats (for output).
I have also read a few docs of jffmpeg but it appears it too does not support transitions.
I have also tried FMJ but no use, now I am stuck and need assistance, on how this task can be done in java.
I would be immensely thankful if anyone can guide me in right direction.
--
many thanks
I think you can accomplish this task with xuggler. Check it out. It might fit you needs.
Xuggler