problem with of the ffmpeg-devel port opencv unable to reinstall in mac OS Version 10.9.5. Any idea?
[ 31%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:317:9: error: use of undeclared identifier 'avcodec_free_frame'; did you mean 'avcodec_get_name'? avcodec_free_frame(&picture); ^~~~~~~~~~~~~~~~~~ avcodec_get_name /usr/local/Cellar/ffmpeg/3.0/include/libavcodec/avcodec.h:5349:13: note: 'avcodec_get_name' declared here const char avcodec_get_name(enum AVCodecID id); ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:317:28: error: cannot initialize a parameter of type 'enum AVCodecID' with an rvalue of type 'AVFrame ' avcodec_free_frame(&picture); ^~~~~~~~ /usr/local/Cellar/ffmpeg/3.0/include/libavcodec/avcodec.h:5349:45: note: passing argument to parameter 'id' here const char *avcodec_get_name(enum AVCodecID id); ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:632:23: error: use of undeclared identifier 'avcodec_alloc_frame' picture = avcodec_alloc_frame(); ^ /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:635:41: error: use of undeclared identifier 'PIX_FMT_BGR24'; did you mean 'AV_PIX_FMT_BGR24'? avpicture_get_size( PIX_FMT_BGR24, ^~~~~~~~~~~~~ AV_PIX_FMT_BGR24 /usr/local/Cellar/ffmpeg/3.0/include/libavutil/pixfmt.h:66:5: note: 'AV_PIX_FMT_BGR24' declared here AV_PIX_FMT_BGR24, ///< packed RGB 8:8:8, 24bpp, BGRBGR... ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:638:29: error: use of undeclared identifier 'PIX_FMT_BGR24'; did you mean 'AV_PIX_FMT_BGR24'? PIX_FMT_BGR24, enc->width, enc->height ); ^~~~~~~~~~~~~ AV_PIX_FMT_BGR24 /usr/local/Cellar/ffmpeg/3.0/include/libavutil/pixfmt.h:66:5: note: 'AV_PIX_FMT_BGR24' declared here AV_PIX_FMT_BGR24, ///< packed RGB 8:8:8, 24bpp, BGRBGR... ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:738:67: error: use of undeclared identifier 'PIX_FMT_RGB24'; did you mean 'AV_PIX_FMT_RGB24'? avpicture_fill((AVPicture)&rgb_picture, rgb_picture.data[0], PIX_FMT_RGB24, ^~~~~~~~~~~~~ AV_PIX_FMT_RGB24 /usr/local/Cellar/ffmpeg/3.0/include/libavutil/pixfmt.h:65:5: note: 'AV_PIX_FMT_RGB24' declared here AV_PIX_FMT_RGB24, ///< packed RGB 8:8:8, 24bpp, RGBRGB... ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:756:17: error: use of undeclared identifier 'PIX_FMT_BGR24'; did you mean 'AV_PIX_FMT_BGR24'? PIX_FMT_BGR24, ^~~~~~~~~~~~~ AV_PIX_FMT_BGR24 /usr/local/Cellar/ffmpeg/3.0/include/libavutil/pixfmt.h:66:5: note: 'AV_PIX_FMT_BGR24' declared here AV_PIX_FMT_BGR24, ///< packed RGB 8:8:8, 24bpp, BGRBGR... ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1110:15: error: use of undeclared identifier 'avcodec_alloc_frame' picture = avcodec_alloc_frame(); ^ /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1113:33: error: unknown type name 'PixelFormat'; did you mean 'AVPixelFormat'? size = avpicture_get_size( (PixelFormat) pix_fmt, width, height); ^~~~~~~~~~~ AVPixelFormat /usr/local/Cellar/ffmpeg/3.0/include/libavutil/pixfmt.h:61:6: note: 'AVPixelFormat' declared here enum AVPixelFormat { ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1122:25: error: unknown type name 'PixelFormat'; did you mean 'AVPixelFormat'? (PixelFormat) pix_fmt, width, height); ^~~~~~~~~~~ AVPixelFormat /usr/local/Cellar/ffmpeg/3.0/include/libavutil/pixfmt.h:61:6: note: 'AVPixelFormat' declared here enum AVPixelFormat { ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1230:19: error: unknown type name 'PixelFormat'; did you mean 'AVPixelFormat'? c->pix_fmt = (PixelFormat) pixel_format; ^~~~~~~~~~~ AVPixelFormat /usr/local/Cellar/ffmpeg/3.0/include/libavutil/pixfmt.h:61:6: note: 'AVPixelFormat' declared here enum AVPixelFormat { ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1405:26: error: use of undeclared identifier 'PIX_FMT_BGR24'; did you mean 'AV_PIX_FMT_BGR24'? if (input_pix_fmt == PIX_FMT_BGR24) { ^~~~~~~~~~~~~ AV_PIX_FMT_BGR24 /usr/local/Cellar/ffmpeg/3.0/include/libavutil/pixfmt.h:66:5: note: 'AV_PIX_FMT_BGR24' declared here AV_PIX_FMT_BGR24, ///< packed RGB 8:8:8, 24bpp, BGRBGR... ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1410:31: error: use of undeclared identifier 'PIX_FMT_GRAY8'; did you mean 'AV_PIX_FMT_GRAY8'? else if (input_pix_fmt == PIX_FMT_GRAY8) { ^~~~~~~~~~~~~ AV_PIX_FMT_GRAY8 /usr/local/Cellar/ffmpeg/3.0/include/libavutil/pixfmt.h:71:5: note: 'AV_PIX_FMT_GRAY8' declared here AV_PIX_FMT_GRAY8, ///< Y , 8bpp ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1423:25: error: unknown type name 'PixelFormat'; did you mean 'AVPixelFormat'? (PixelFormat)input_pix_fmt, width, height); ^~~~~~~~~~~ AVPixelFormat /usr/local/Cellar/ffmpeg/3.0/include/libavutil/pixfmt.h:61:6: note: 'AVPixelFormat' declared here enum AVPixelFormat { ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1429:47: error: unknown type name 'PixelFormat'; did you mean 'AVPixelFormat'? (PixelFormat)input_pix_fmt, ^~~~~~~~~~~ AVPixelFormat /usr/local/Cellar/ffmpeg/3.0/include/libavutil/pixfmt.h:61:6: note: 'AVPixelFormat' declared here enum AVPixelFormat { ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1447:25: error: unknown type name 'PixelFormat'; did you mean 'AVPixelFormat'? (PixelFormat)input_pix_fmt, width, height); ^~~~~~~~~~~ AVPixelFormat /usr/local/Cellar/ffmpeg/3.0/include/libavutil/pixfmt.h:61:6: note: 'AVPixelFormat' declared here enum AVPixelFormat { ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1604:25: error: use of undeclared identifier 'PIX_FMT_BGR24'; did you mean 'AV_PIX_FMT_BGR24'? input_pix_fmt = PIX_FMT_BGR24; ^~~~~~~~~~~~~ AV_PIX_FMT_BGR24 /usr/local/Cellar/ffmpeg/3.0/include/libavutil/pixfmt.h:66:5: note: 'AV_PIX_FMT_BGR24' declared here AV_PIX_FMT_BGR24, ///< packed RGB 8:8:8, 24bpp, BGRBGR... ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1607:25: error: use of undeclared identifier 'PIX_FMT_GRAY8'; did you mean 'AV_PIX_FMT_GRAY8'? input_pix_fmt = PIX_FMT_GRAY8; ^~~~~~~~~~~~~ AV_PIX_FMT_GRAY8 /usr/local/Cellar/ffmpeg/3.0/include/libavutil/pixfmt.h:71:5: note: 'AV_PIX_FMT_GRAY8' declared here AV_PIX_FMT_GRAY8, ///< Y , 8bpp ^ In file included from /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg.cpp:45: /Users/tesfaz1/Downloads/opencv-3.0.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1683:25: error: use of undeclared identifier 'PIX_FMT_YUV422P'; did you mean 'AV_PIX_FMT_YUV422P'? codec_pix_fmt = PIX_FMT_YUV422P; ^~~~~~~~~~~~~~~ AV_PIX_FMT_YUV422P /usr/local/Cellar/ffmpeg/3.0/include/libavutil/pixfmt.h:67:5: note: 'AV_PIX_FMT_YUV422P' declared here AV_PIX_FMT_YUV422P, ///< planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples) ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o] Error 1 make[1]: [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2 make: * [all] Error 2