Modify /opt/opencv/opencv-3.2.0/modules/videoio/src/cap_ffmpeg_impl.hpp, add the following in the header:
#define AV_CODEC_FLAG_GLOBAL_HEADER (1 << 22) #define CODEC_FLAG_GLOBAL_HEADER AV_CODEC_FLAG_GLOBAL_HEADER #define AVFMT_RAWPICTURE 0x0020
Save and recompile.
Similar Posts:
- [Solved] Ubuntu 18.04 Compile opencv-3.4.16 Error: “c++: internal compiler error: Killed (program cc1plus)”
- [Solved] Lego-loam Error: opencv fatal error: cv.h: No such file or directory
- [Solved] Opencv3.4.0 Install error: fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory
- Consider using the `–user` option or check the permissions.
- [Solved] OpenCV 4 (C++) Error: “error: ‘CV_FOURCC’ was not declared in this scope”
- Python OpenCV Save Image error: (-215:Assertion failed) !_img.empty()
- [Solved] torch.cuda.CudaError: CUDA driver version is insufficient for CUDA runtime version (35) [ WARN:0
- Opencv learning notes 05 face detection and recognition attributeerror: module ‘CV2’ has no attribute ‘face’
- AttributeError: module ‘cv2’ has no attribute ‘SIFT’ [How to Solve]
- MAC OS Install opencv ModuleNotFoundError: No module named ‘cv2’