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
.