Results 1 to 4 of 4
Thread: Play video from images
- 11-29-2012, 03:31 PM #1
Member
- Join Date
- Sep 2012
- Posts
- 3
- Rep Power
- 0
Play video from images
Hi all,
I have frames extracted from a video.
Now, I am writing an application that can play video from those frames. But, the problem is that the video in my application is not smooth, and blinks too much although I used multiple buffers.
Could you tell me any solution for this problem?
Thank you very much.
- 11-29-2012, 06:13 PM #2
Re: Play video from images
Without seeing any code we'd be merely guessing. Is it possible to reduce the troublesome part to a SSCCE (Short, Self Contained, Correct (Compilable), Example) that demonstrates the problem?
Before you post any code please go through these links:
Guide For New Members
BB Code List - Java Programming Forum
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 11-30-2012, 04:23 AM #3
Member
- Join Date
- Sep 2012
- Posts
- 3
- Rep Power
- 0
Re: Play video from images
I'm so sorry for my unclear question.
I use a canvas to render my frames
class CanvasScreen extends Canvas
{
.......public CanvasScreen (Container _parent)
.......{
.............._parent.add(this);
..............this.createBufferStrategy(2);
.......}
.......public void paint(Graphics gr)
.......{
..............super.paint(gr);
..............if (img != null)
..............{
.....................Graphics2D gr2D = (Graphics2D)gr;
.....................gr2D.drawImage(img, 0, 0, this);
..............}
.......}
.......public void changeFrame (BufferedImage _newImg)
.......{
..............img = _newImg;
..............this.repaint();
.......}
}
And I use a timer to change frame of the CanvasScreen 25 times per second
If you need further information, please feel free to tell me.
Thank you in advance.
- 11-30-2012, 01:23 PM #4
Similar Threads
-
Play A Video in JFrame
By Godslug in forum AWT / SwingReplies: 1Last Post: 03-26-2012, 12:25 PM -
how to play a video from a file using jmf in a java
By 200808147 in forum New To JavaReplies: 0Last Post: 07-10-2011, 12:20 PM -
Class to play variety of video formats
By Swankee in forum New To JavaReplies: 0Last Post: 10-12-2009, 08:38 PM -
How to play video files in Java
By Hasan in forum Advanced JavaReplies: 11Last Post: 04-26-2009, 11:57 PM -
code to play Video from server
By arvind in forum CLDC and MIDPReplies: 0Last Post: 04-15-2009, 09:19 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks