Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Highgui fails 10 of 17 tests / cvCreateFileCapture Does not work in code

Hi,

I recently reloaded Ubuntu 12.04 onto my computer and have been trying to get my previously working OpenCV code to run again. It compiles, but cvCreateFileCapture always returns null with the video I am sending it. I checked and the video is definitely present (I used absolute path). I made sure FFMPEG and libav-tools were properly installed like many other forums suggested. Even when I would uninstall and reinstall OpenCV, I would see that the CMake configuration output recognizes FFMPEG.

Unfortunately, I do not remember the version of OpenCV I had before when it worked. How do I get this working?

Thanks!

click to hide/show revision 2
No.2 Revision

Highgui fails 10 of 17 tests / cvCreateFileCapture Does does not work in codework

Hi,

I recently reloaded Ubuntu 12.04 onto my computer and have been trying to get my previously working OpenCV code to run again. It compiles, but cvCreateFileCapture always returns null with the video I am sending it. I checked and the video is definitely present (I used absolute path). I made sure FFMPEG and libav-tools were properly installed like many other forums suggested. Even when I would uninstall and reinstall OpenCV, I would see that the CMake configuration output recognizes FFMPEG.

Unfortunately, I do not remember the version of OpenCV I had before when it worked. How do I get this working?

Thanks!

click to hide/show revision 3
added tags

cvCreateFileCapture does not work

Hi,

I recently reloaded Ubuntu 12.04 onto my computer and have been trying to get my previously working OpenCV code to run again. It compiles, but cvCreateFileCapture always returns null with the video I am sending it. I checked and the video is definitely present (I used absolute path). I made sure FFMPEG and libav-tools were properly installed like many other forums suggested. Even when I would uninstall and reinstall OpenCV, I would see that the CMake configuration output recognizes FFMPEG.

Unfortunately, I do not remember the version of OpenCV I had before when it worked. How do I get this working?

Thanks!

click to hide/show revision 4
Added test code output

cvCreateFileCapture does not work

Hi,

I recently reloaded Ubuntu 12.04 onto my computer and have been trying to get my previously working OpenCV code to run again. It compiles, but cvCreateFileCapture always returns null with the video I am sending it. I checked and the video is definitely present (I used absolute path). I made sure FFMPEG and libav-tools were properly installed like many other forums suggested. Even when I would uninstall and reinstall OpenCV, I would see that the CMake configuration output recognizes FFMPEG.

Unfortunately, I do not remember the version of OpenCV I had before when it worked. How do I get this working?

Thanks!

Update 7 JUL 2012: Output from ./opencv_test_highgui, the test function provided with OpenCV:

[==========] Running 17 tests from 4 test cases.
[----------] Global test environment set-up.
[----------] 3 tests from Highgui_Drawing
[ RUN      ] Highgui_Drawing.cpp_regression
[       OK ] Highgui_Drawing.cpp_regression (5 ms)
[ RUN      ] Highgui_Drawing.c_regression
[       OK ] Highgui_Drawing.c_regression (7 ms)
[ RUN      ] Highgui_Drawing.fillconvexpoly_clipping
[       OK ] Highgui_Drawing.fillconvexpoly_clipping (0 ms)
[----------] 3 tests from Highgui_Drawing (12 ms total)

[----------] 8 tests from Highgui_Video
[ RUN      ] Highgui_Video.seek_progressive
/home/dherms/OpenCV-2.4.2/modules/ts/src/ts.cpp:514: Failure
Failed

    failure reason: Invalid test data
    test case #-1
    seed: ffffffffffffffff
-----------------------------------
    LOG: 

Source files directory: video/

Reading video file in video/big_buck_bunny.avi...

File information (video 1): 

Name: big_buck_bunny.avi
FAILED

Error: cannot read source video file.

Reading video file in video/big_buck_bunny.mov...

File information (video 2): 

Name: big_buck_bunny.mov
FAILED

Error: cannot read source video file.

Reading video file in video/big_buck_bunny.mp4...

File information (video 3): 

Name: big_buck_bunny.mp4
FAILED

Error: cannot read source video file.

Reading video file in video/big_buck_bunny.mpg...

File information (video 4): 

    Name: big_buck_bunny.mpg
FAILED

Error: cannot read source video file.

Successfull experiments: 0 (0%)
Failed experiments: 4 (100%)

-----------------------------------

[  FAILED  ] Highgui_Video.seek_progressive (24 ms)
[ RUN      ] Highgui_Video.seek_random
/home/dherms/OpenCV-2.4.2/modules/ts/src/ts.cpp:514: Failure
Failed

    failure reason: Invalid test data
    test case #-1
    seed: ffffffffffffffff
-----------------------------------
    LOG: 

Source files directory: video/

Reading video file in video/big_buck_bunny.avi...

File information (video 1): 

Name: big_buck_bunny.avi
FAILED

Error: cannot read source video file.

Reading video file in video/big_buck_bunny.mov...

File information (video 2): 

Name: big_buck_bunny.mov
FAILED

Error: cannot read source video file.

Reading video file in video/big_buck_bunny.mp4...

File information (video 3): 

Name: big_buck_bunny.mp4
FAILED

Error: cannot read source video file.

Successfull experiments: 1 (25%)
Failed experiments: 3 (75%)

-----------------------------------

[  FAILED  ] Highgui_Video.seek_random (0 ms)
[ RUN      ] Highgui_Video.framecount
/home/dherms/OpenCV-2.4.2/modules/ts/src/ts.cpp:514: Failure
Failed

    failure reason: Invalid test data
    test case #-1
    seed: ffffffffffffffff
-----------------------------------
    LOG: 

Source files directory: video/

File information (video 1): 

Name: big_buck_bunny.avi
FAILED

Error: cannot read source video file.

-----------------------------------

[  FAILED  ] Highgui_Video.framecount (0 ms)
[ RUN      ] Highgui_Video.seek_random_synthetic
/home/dherms/OpenCV-2.4.2/modules/ts/src/ts.cpp:514: Failure
Failed

    failure reason: Hardware/OS exception
    test case #-1
    seed: ffffffffffffffff
-----------------------------------
    LOG: 
File: /tmp/__opencv_temp.XmoSAj.XVID.avi

-----------------------------------

[  FAILED  ] Highgui_Video.seek_random_synthetic (1 ms)
[ RUN      ] Highgui_Video.regression
/home/dherms/OpenCV-2.4.2/modules/ts/src/ts.cpp:514: Failure
Failed

    failure reason: Unexpected output
    test case #-1
    seed: ffffffffffffffff
-----------------------------------
    LOG: reading video : ../cv/shared/video_for_test.avi and converting it to /tmp/__opencv_temp.fvgFjQ.XVID.avi
reading video : ../cv/shared/video_for_test.avi and converting it to /tmp/__opencv_temp.TEQs2m.MPEG.avi
reading video : ../cv/shared/video_for_test.avi and converting it to /tmp/__opencv_temp.ZgXgLT.MJPG.avi
reading video : ../cv/shared/video_for_test.avi and converting it to /tmp/__opencv_temp.xBF5tq.XVID.mkv
reading video : ../cv/shared/video_for_test.avi and converting it to /tmp/__opencv_temp.5BXUcX.MPEG.mkv
reading video : ../cv/shared/video_for_test.avi and converting it to /tmp/__opencv_temp.pPWKVt.MJPG.mkv
reading video : ../cv/shared/video_for_test.avi and converting it to /tmp/__opencv_temp.BctBE0.mp4v.mov

-----------------------------------

[  FAILED  ] Highgui_Video.regression (1 ms)
[ RUN      ] Highgui_Video.write_read
[NULL @ 0x89c2b60] insufficient thread locking around avcodec_open/close()
Could not open codec 'mpeg4': Unspecified errorSegmentation fault (core dumped)

cvCreateFileCapture does not work

Hi,

I recently reloaded Ubuntu 12.04 onto my computer and have been trying to get my previously working OpenCV code to run again. It compiles, but cvCreateFileCapture always returns null with the video I am sending it. I checked and the video is definitely present (I used absolute path). I made sure FFMPEG and libav-tools were properly installed like many other forums suggested. Even when I would uninstall and reinstall OpenCV, I would see that the CMake configuration output recognizes FFMPEG.

Unfortunately, I do not remember the version of OpenCV I had before when it worked. How do I get this working?

Thanks!

Update 7 JUL 2012: Output from ./opencv_test_highgui, the test function provided with OpenCV:

[==========] Running 17 tests from 4 test cases.
[----------] Global test environment set-up.
[----------] 3 tests from Highgui_Drawing
[ RUN      ] Highgui_Drawing.cpp_regression
[       OK ] Highgui_Drawing.cpp_regression (5 ms)
[ RUN      ] Highgui_Drawing.c_regression
[       OK ] Highgui_Drawing.c_regression (7 ms)
[ RUN      ] Highgui_Drawing.fillconvexpoly_clipping
[       OK ] Highgui_Drawing.fillconvexpoly_clipping (0 ms)
[----------] 3 tests from Highgui_Drawing (12 ms total)

[----------] 8 tests from Highgui_Video
[ RUN      ] Highgui_Video.seek_progressive
/home/dherms/OpenCV-2.4.2/modules/ts/src/ts.cpp:514: Failure
Failed

    failure reason: Invalid test data
    test case #-1
    seed: ffffffffffffffff
-----------------------------------
    LOG: 

Source files directory: video/

Reading video file in video/big_buck_bunny.avi...

File information (video 1): 

Name: big_buck_bunny.avi
FAILED

Error: cannot read source video file.

Reading video file in video/big_buck_bunny.mov...

File information (video 2): 

Name: big_buck_bunny.mov
FAILED

Error: cannot read source video file.

Reading video file in video/big_buck_bunny.mp4...

File information (video 3): 

Name: big_buck_bunny.mp4
FAILED

Error: cannot read source video file.

Reading video file in video/big_buck_bunny.mpg...

File information (video 4): 

    Name: big_buck_bunny.mpg
FAILED

Error: cannot read source video file.

Successfull experiments: 0 (0%)
Failed experiments: 4 (100%)

-----------------------------------

[  FAILED  ] Highgui_Video.seek_progressive (24 ms)
[ RUN      ] Highgui_Video.seek_random
/home/dherms/OpenCV-2.4.2/modules/ts/src/ts.cpp:514: Failure
Failed

    failure reason: Invalid test data
    test case #-1
    seed: ffffffffffffffff
-----------------------------------
    LOG: 

Source files directory: video/

Reading video file in video/big_buck_bunny.avi...

File information (video 1): 

Name: big_buck_bunny.avi
FAILED

Error: cannot read source video file.

Reading video file in video/big_buck_bunny.mov...

File information (video 2): 

Name: big_buck_bunny.mov
FAILED

Error: cannot read source video file.

Reading video file in video/big_buck_bunny.mp4...

File information (video 3): 

Name: big_buck_bunny.mp4
FAILED

Error: cannot read source video file.

Successfull experiments: 1 (25%)
Failed experiments: 3 (75%)

-----------------------------------

[  FAILED  ] Highgui_Video.seek_random (0 ms)
[ RUN      ] Highgui_Video.framecount
/home/dherms/OpenCV-2.4.2/modules/ts/src/ts.cpp:514: Failure
Failed

    failure reason: Invalid test data
    test case #-1
    seed: ffffffffffffffff
-----------------------------------
    LOG: 

Source files directory: video/

File information (video 1): 

Name: big_buck_bunny.avi
FAILED

Error: cannot read source video file.

-----------------------------------

[  FAILED  ] Highgui_Video.framecount (0 ms)
[ RUN      ] Highgui_Video.seek_random_synthetic
/home/dherms/OpenCV-2.4.2/modules/ts/src/ts.cpp:514: Failure
Failed

    failure reason: Hardware/OS exception
    test case #-1
    seed: ffffffffffffffff
-----------------------------------
    LOG: 
File: /tmp/__opencv_temp.XmoSAj.XVID.avi

-----------------------------------

[  FAILED  ] Highgui_Video.seek_random_synthetic (1 ms)
[ RUN      ] Highgui_Video.regression
/home/dherms/OpenCV-2.4.2/modules/ts/src/ts.cpp:514: Failure
Failed

    failure reason: Unexpected output
    test case #-1
    seed: ffffffffffffffff
-----------------------------------
    LOG: reading video : ../cv/shared/video_for_test.avi and converting it to /tmp/__opencv_temp.fvgFjQ.XVID.avi
reading video : ../cv/shared/video_for_test.avi and converting it to /tmp/__opencv_temp.TEQs2m.MPEG.avi
reading video : ../cv/shared/video_for_test.avi and converting it to /tmp/__opencv_temp.ZgXgLT.MJPG.avi
reading video : ../cv/shared/video_for_test.avi and converting it to /tmp/__opencv_temp.xBF5tq.XVID.mkv
reading video : ../cv/shared/video_for_test.avi and converting it to /tmp/__opencv_temp.5BXUcX.MPEG.mkv
reading video : ../cv/shared/video_for_test.avi and converting it to /tmp/__opencv_temp.pPWKVt.MJPG.mkv
reading video : ../cv/shared/video_for_test.avi and converting it to /tmp/__opencv_temp.BctBE0.mp4v.mov

-----------------------------------

[  FAILED  ] Highgui_Video.regression (1 ms)
[ RUN      ] Highgui_Video.write_read
[NULL @ 0x89c2b60] insufficient thread locking around avcodec_open/close()
Could not open codec 'mpeg4': Unspecified errorSegmentation fault (core dumped)