From owner-freebsd-multimedia@freebsd.org Fri Nov 18 23:28:48 2016 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE4A2C48872 for ; Fri, 18 Nov 2016 23:28:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id A79D41DD9 for ; Fri, 18 Nov 2016 23:28:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id A428BC48871; Fri, 18 Nov 2016 23:28:48 +0000 (UTC) Delivered-To: multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A3C8FC48870 for ; Fri, 18 Nov 2016 23:28:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 88AC61DD8 for ; Fri, 18 Nov 2016 23:28:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uAINSmcV016737 for ; Fri, 18 Nov 2016 23:28:48 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: multimedia@FreeBSD.org Subject: [Bug 214644] cad/netgen: switch to multimedia/ffmpeg (2.0 API) Date: Fri, 18 Nov 2016 23:28:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter cc dependson Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2016 23:28:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214644 Bug ID: 214644 Summary: cad/netgen: switch to multimedia/ffmpeg (2.0 API) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: multimedia@FreeBSD.org, stephen@FreeBSD.org Depends on: 214199 CC: stephen@FreeBSD.org Building against ffmpeg 3.x requires fixing the following errors: ngpkg.cpp:2269:12: error: unknown type name 'CodecID'; did you mean 'AVCodecID'? static CodecID codec_id =3D CODEC_ID_MPEG1VIDEO; ^~~~~~~ AVCodecID /usr/local/include/libavcodec/avcodec.h:191:6: note: 'AVCodecID' declared h= ere enum AVCodecID { ^ ngpkg.cpp:2269:31: error: use of undeclared identifier 'CODEC_ID_MPEG1VIDEO= '; did you mean 'AV_CODEC_ID_MPEG1VIDEO'? static CodecID codec_id =3D CODEC_ID_MPEG1VIDEO; ^~~~~~~~~~~~~~~~~~~ AV_CODEC_ID_MPEG1VIDEO /usr/local/include/libavcodec/avcodec.h:195:5: note: 'AV_CODEC_ID_MPEG1VIDE= O' declared here AV_CODEC_ID_MPEG1VIDEO, ^ ngpkg.cpp:2341:28: error: use of undeclared identifier 'PIX_FMT_YUV420P'; d= id you mean 'AV_PIX_FMT_YUV420P'? context->pix_fmt =3D PIX_FMT_YUV420P; ^~~~~~~~~~~~~~~ AV_PIX_FMT_YUV420P /usr/local/include/libavutil/pixfmt.h:62:5: note: 'AV_PIX_FMT_YUV420P' decl= ared here AV_PIX_FMT_YUV420P, ///< planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample p= er 2x2 Y samples) ^ ngpkg.cpp:2354:22: error: use of undeclared identifier 'avcodec_alloc_frame' YUVpicture =3D avcodec_alloc_frame(); ^ ngpkg.cpp:2363:22: error: use of undeclared identifier 'avcodec_alloc_frame' RGBpicture =3D avcodec_alloc_frame(); ^ ngpkg.cpp:2408:53: error: use of undeclared identifier 'PIX_FMT_RGB24'; did= you mean 'AV_PIX_FMT_RGB24'? img_convert_ctx =3D sws_getContext( nx, ny, PIX_FMT_RGB24, ^~~~~~~~~~~~~ AV_PIX_FMT_RGB24 /usr/local/include/libavutil/pixfmt.h:64:5: note: 'AV_PIX_FMT_RGB24' declar= ed here AV_PIX_FMT_RGB24, ///< packed RGB 8:8:8, 24bpp, RGBRGB... ^ ngpkg.cpp:2409:53: error: use of undeclared identifier 'PIX_FMT_YUV420P'; d= id you mean 'AV_PIX_FMT_YUV420P'? nx, ny, PIX_FMT_YUV420P, ^~~~~~~~~~~~~~~ AV_PIX_FMT_YUV420P /usr/local/include/libavutil/pixfmt.h:62:5: note: 'AV_PIX_FMT_YUV420P' decl= ared here AV_PIX_FMT_YUV420P, ///< planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample p= er 2x2 Y samples) ^ ngpkg.cpp:2423:17: error: use of undeclared identifier 'avcodec_encode_vide= o'; did you mean 'avcodec_encode_video2'? bytes =3D avcodec_encode_video( context, buff.MPG, ^~~~~~~~~~~~~~~~~~~~ avcodec_encode_video2 /usr/local/include/libavcodec/avcodec.h:5322:5: note: 'avcodec_encode_video= 2' declared here int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, ^ ngpkg.cpp:2423:48: error: cannot initialize a parameter of type 'AVPacket *' with an lvalue of type 'uint8_t *' (aka 'unsigned char *') bytes =3D avcodec_encode_video( context, buff.MPG, ^~~~~~~~ /usr/local/include/libavcodec/avcodec.h:5322:60: note: passing argument to parameter 'avpkt' here int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, ^ ngpkg.cpp:2446:19: error: use of undeclared identifier 'avcodec_encode_vide= o'; did you mean 'avcodec_encode_video2'? bytes =3D avcodec_encode_video( context, buff.MPG, MPGbufsize, NU= LL ); ^~~~~~~~~~~~~~~~~~~~ avcodec_encode_video2 /usr/local/include/libavcodec/avcodec.h:5322:5: note: 'avcodec_encode_video= 2' declared here int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, ^ ngpkg.cpp:2446:50: error: cannot initialize a parameter of type 'AVPacket *' with an lvalue of type 'uint8_t *' (aka 'unsigned char *') bytes =3D avcodec_encode_video( context, buff.MPG, MPGbufsize, NU= LL ); ^~~~~~~~ /usr/local/include/libavcodec/avcodec.h:5322:60: note: passing argument to parameter 'avpkt' here int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, ^ ngpkg.cpp:2454:25: error: use of undeclared identifier 'CODEC_ID_MPEG1VIDEO= '; did you mean 'AV_CODEC_ID_MPEG1VIDEO'? if( codec_id =3D=3D CODEC_ID_MPEG1VIDEO ) { ^~~~~~~~~~~~~~~~~~~ AV_CODEC_ID_MPEG1VIDEO /usr/local/include/libavcodec/avcodec.h:195:5: note: 'AV_CODEC_ID_MPEG1VIDE= O' declared here AV_CODEC_ID_MPEG1VIDEO, ^ Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214199 [Bug 214199] cad/netgen: fails to build with ffmpeg 3.x (FFMPEG=3Don) --=20 You are receiving this mail because: You are on the CC list for the bug.=