cloudelin / javacv

Automatically exported from code.google.com/p/javacv
0 stars 0 forks source link

Unable to play a video using JavaCV #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Just trying to run the code.

What is the expected output? What do you see instead?
I expect to a window streaming the video. But I get the following error :

java.lang.Exception: cvCreateFileCapture() Error: Could not create camera 
capture.
at name.audet.samuel.javacv.OpenCVFrameGrabber.start(OpenCVFrameGrabber.java:93)
at mainPrg.main(mainPrg.java:22)

What version of the product are you using? On what operating system?
OpenCV 2.0 on Windows 7 Professinal

Please provide any additional information below.
I have recompiled the OpenCV source code without SSE and OpenMP instructions 
(as suggested).

I'm attaching the code :

Original issue reported on code.google.com by bhanukir...@gmail.com on 3 Sep 2010 at 4:06

Attachments:

GoogleCodeExporter commented 9 years ago
This can be fixed by using FFmpegFrameGrabber instead of OpenCVFrameGrabber... 
If FFmpegFrameGrabber also does not work, reopen the issue, thank you.

Original comment by samuel.a...@gmail.com on 11 Sep 2010 at 2:55

GoogleCodeExporter commented 9 years ago
I tried to use this code and changed OpenCVFrameGrabber to OpenCVFrameGrabber. 
I got three exception. First one: "Unable to load library 'avutil-50':" I 
downloaded 'avutil-50.dll'. Then got: 'Unable to load library 'avcodec-52':' 
and downloaded 'avcodec-52.dll'. At last one I didn't fix: "Exception in thread 
"main" java.lang.UnsatisfiedLinkError: Error looking up function 
'av_log_missing_feature':" I'm attaching the code.

Original comment by omur.cam...@gmail.com on 21 Oct 2010 at 2:33

Attachments:

GoogleCodeExporter commented 9 years ago
Which version of FFmpeg? FFmpegFrameGrabber only support version 0.6 (and 
probably point versions like 0.6.1 as well)

Original comment by samuel.a...@gmail.com on 22 Oct 2010 at 5:38

GoogleCodeExporter commented 9 years ago
Closing this long-standing issue, assuming that FFmpeg 0.6 did the trick. 
Please reopen the issue if that is not the case, thank you.

Original comment by samuel.a...@gmail.com on 4 Nov 2010 at 10:35