greeninho / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Using for FFmpeg #250

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I install javacv and ffmpeg to my computer(eclipse java)
2. I can use ffplay.exe from builded ffmpeg to receive H264 video
   stream by tcp
   ex: ffplay tcp://192.168.1.1:555 

3. But It just receive and play, I can't get the image data from
   middle

4. so I want to FFmpegGragger fuction to reach some result

But I don't realize How to use FFmpegGRabber though TCP connection

I can use a easy example to read static file

File f = new File("img/input.avi"); 

FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(f);
grabber.start(); 
IplImage frame = grabber.grab(); 
CanvasFrame canvasFrame = new CanvasFrame("Camera"); 
canvasFrame.setCanvasSize(frame.width(), frame.height()); 
while (canvasFrame.isVisible() && (frame = grabber.grab()) != null) { 
      canvasFrame.showImage(frame); 
} 
grabber.stop(); 
canvasFrame.dispose(); 

Pleade Help me 

Original issue reported on code.google.com by t910...@gmail.com on 13 Oct 2012 at 4:43

GoogleCodeExporter commented 8 years ago
You need to download the DLLs of FFmpeg as pointed out in the README.txt file.

Original comment by samuel.a...@gmail.com on 13 Oct 2012 at 7:11