Ask Your Question

powlee's profile - activity

2012-09-26 05:35:39 -0600 commented answer VideoCapture stops replay at approx 1 GB in Win 7

Sorry it took so long, but it was a bit of work to get my project work with MSVC10. The compiler was the issue. Everything works fine now using MSVC10.

thx

2012-08-16 03:29:24 -0600 commented answer VideoCapture stops replay at approx 1 GB in Win 7

sry, just wanted to respond to your suggestions. The comment box didn't allow for that. I'll delte my answer.

2012-08-14 09:42:59 -0600 answered a question VideoCapture stops replay at approx 1 GB in Win 7

Hi, thx for your answer. To your points:

  • tried with H264 MPEG 4: now goes to approx 80.000 frames which is again about 1 GB because the file is now a lot smaller. I will go on and try other codecs as well, but hope is low.

  • i'm pretty sure its not a problem with the int because it works up to frame 37.000 on videos with smaller size and same length.

  • switching the compiler and rebuilding everything: came to my mind but as very last solution, because its a lot of work and I have no idea of the outcome.

  • i'm using the latest versions of the codecs etc as far as i know.

  • Sticking to Linux is my solution for the moment. I'm spreading the image of my Virtual Box to my colleagues right now. But I hoped this would only be for the moment till i can fix the issue somehow.

  • Splitting: due to the nature of the project splitting is not really a suitable option.

Thank you for your Input, I'll keep you up to date if i figure out a good solution.

2012-08-14 08:08:12 -0600 asked a question VideoCapture stops replay at approx 1 GB in Win 7

Hi,

I have a multiplatform application using OpenCV 2.4.2, and the problems only appears in Windows. The videos i use are up to 3 GB in size and form Axis cameras. Format is avi, mpeg 4. Playback / jumping to frames stops at approximately 1 GByte.

I estimated the file size because depending on the exact size of the video files it stops somewhere between 31.000 - 35.000 frames. Up to this boundary playback/jumping works perfectly fine. The framework is Qt. I used OpenCV 2.1.0 before and updated because i thought it may resolve the issue. I post the CMake output below.

Detected version of GNU GCC: 44 (404)
CUDA_TOOLKIT_ROOT_DIR not found or specified
Could NOT find CUDA (missing:  CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "4.1")
Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE) (Required is at least version "2.0")

General configuration for OpenCV 2.4.2 =====================================

  Platform:
    Host:                        Windows 6.1 x86
    CMake:                       2.8.4
    CMake generator:             MinGW Makefiles
    CMake build tool:            C:/Qt/2010.05/mingw/bin/mingw32-make.exe
    Configuration:               Release

  C/C++:
    Built as dynamic libs?:      YES
    C++ Compiler:                C:/Qt/2010.05/mingw/bin/g++.exe (ver 4.4.0)
    C++ flags (Release):         -mstackrealign -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -O2 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -mstackrealign -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -g  -O0 -DDEBUG -D_DEBUG -ggdb3
    C Compiler:                  C:/Qt/2010.05/mingw/bin/gcc.exe
    C flags (Release):           -mstackrealign -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -O2 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -mstackrealign -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -g  -O0 -DDEBUG -D_DEBUG -ggdb3
    Linker flags (Release):      
    Linker flags (Debug):        
    Precompiled headers:         YES

  OpenCV modules:
    To be built:                 core imgproc flann highgui features2d calib3d ml video objdetect contrib legacy nonfree photo stitching ts videostab
    Disabled:                    gpu
    Disabled by dependency:      -
    Unavailable:                 androidcamera java python world

  GUI: 
    QT 4.x:                      YES (ver 4.7.0 EDITION = OpenSource)
    QT OpenGL support:           NO
    OpenGL support:              NO

  Media I/O: 
    ZLib:                        build (ver 1.2.6)
    JPEG:                        build (ver 62)
    PNG:                         build (ver 1.5.9)
    TIFF:                        build (ver 42 - 4.0.1)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     NO

  Video I/O:
    FFMPEG:                      YES (prebuilt binaries)
      codec:                     YES (ver 53.61.100)
      format:                    YES (ver 53.32.100)
      util:                      YES (ver 51.35.100)
      swscale:                   YES (ver 2.1.100)
      gentoo-style:              YES
    OpenNI:                      NO
    OpenNI PrimeSensor Modules:  NO
    PvAPI:                       NO
    DirectShow:                  YES
    XIMEA:                       NO

  Other third-party libraries:
    Use IPP:                     NO
    Use TBB:                     NO
    Use Cuda ...
(more)
2012-08-14 03:30:52 -0600 received badge  Editor (source)
2012-08-13 09:52:49 -0600 answered a question VideoCapture is not working in OpenCV 2.4.2

Hi, i have a similar problem. But not after 2 frams but after about 30.000 - 34.000 depending on the video. I estimated this is about 1 GB. The problem only appears in windows not in Linux. (Its a cross platform project) I was working with openCV 2.1 before and switched to 2.4 (as I was using this in Linux and thought its the problem).

Anyone any ideas?

CMAKE output: Detected version of GNU GCC: 44 (404) CUDA_TOOLKIT_ROOT_DIR not found or specified Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "4.1") Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at least version "2.0")

General configuration for OpenCV 2.4.2 =====================================

Platform: Host: Windows 6.1 x86 CMake: 2.8.4 CMake generator: MinGW Makefiles CMake build tool: C:/Qt/2010.05/mingw/bin/mingw32-make.exe Configuration: Release

C/C++: Built as dynamic libs?: YES C++ Compiler: C:/Qt/2010.05/mingw/bin/g++.exe (ver 4.4.0) C++ flags (Release): -mstackrealign -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -O2 -DNDEBUG -DNDEBUG C++ flags (Debug): -mstackrealign -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -g -O0 -DDEBUG -D_DEBUG -ggdb3 C Compiler: C:/Qt/2010.05/mingw/bin/gcc.exe C flags (Release): -mstackrealign -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -O2 -DNDEBUG -DNDEBUG C flags (Debug): -mstackrealign -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -fdiagnostics-show-option -march=i686 -fomit-frame-pointer -msse -msse2 -mfpmath=sse -ffunction-sections -g -O0 -DDEBUG -D_DEBUG -ggdb3 Linker flags (Release):
Linker flags (Debug):
Precompiled headers: YES

OpenCV modules: To be built: core imgproc flann highgui features2d calib3d ml video objdetect contrib legacy nonfree photo stitching ts videostab Disabled: gpu Disabled by dependency: - Unavailable: androidcamera java python world

GUI: QT 4.x: YES (ver 4.7.0 EDITION = OpenSource) QT OpenGL support: NO OpenGL support: NO

Media I/O: ZLib: build (ver 1.2.6) JPEG: build (ver 62) PNG: build (ver 1.5.9) TIFF: build (ver 42 - 4.0.1) JPEG 2000: build (ver 1.900.1) OpenEXR: NO

Video I/O: FFMPEG: YES (prebuilt binaries) codec: YES (ver 53.61.100) format: YES (ver 53.32.100) util: YES (ver 51.35.100) swscale: YES (ver 2.1.100) gentoo-style: YES OpenNI: NO OpenNI PrimeSensor Modules: NO PvAPI: NO DirectShow: YES XIMEA: NO

Other third-party libraries: Use IPP: NO Use TBB: NO Use Cuda: NO Use Eigen: NO

Python: Interpreter: NO

Documentation: Build Documentation: NO Sphinx: NO PdfLaTeX compiler: NO

Tests and samples: Tests: YES Performance tests: YES Examples: NO