From owner-freebsd-multimedia@freebsd.org Mon Jan 6 18:08:43 2020 Return-Path: Delivered-To: freebsd-multimedia@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 213A61DB2A3 for ; Mon, 6 Jan 2020 18:08:43 +0000 (UTC) (envelope-from dima_bsd@inbox.lv) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47s3RG6dK3z429D for ; Mon, 6 Jan 2020 18:08:42 +0000 (UTC) (envelope-from dima_bsd@inbox.lv) Received: by mailman.nyi.freebsd.org (Postfix) id E1AC91DB2A2; Mon, 6 Jan 2020 18:08:42 +0000 (UTC) Delivered-To: multimedia@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E17051DB2A1 for ; Mon, 6 Jan 2020 18:08:42 +0000 (UTC) (envelope-from dima_bsd@inbox.lv) Received: from shark3.inbox.lv (shark3.inbox.lv [194.152.32.83]) (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 47s3RG1fMZz429C for ; Mon, 6 Jan 2020 18:08:41 +0000 (UTC) (envelope-from dima_bsd@inbox.lv) Received: from shark3.inbox.lv (localhost [127.0.0.1]) by shark3-out.inbox.lv (Postfix) with ESMTP id 9FC50280413 for ; Mon, 6 Jan 2020 20:08:40 +0200 (EET) Received: from mail.inbox.lv (pop1 [127.0.0.1]) by shark3-in.inbox.lv (Postfix) with ESMTP id 836DA28040E for ; Mon, 6 Jan 2020 20:08:40 +0200 (EET) Received: from [192.168.88.2] (unknown [85.234.183.113]) (Authenticated sender: dima_bsd@inbox.lv) by mail.inbox.lv (Postfix) with ESMTPA id 577F03D9CC8 for ; Mon, 6 Jan 2020 20:08:40 +0200 (EET) From: Dima D Subject: ffmpeg and libvpx-vp9 10-bit encoding To: multimedia@FreeBSD.org Message-ID: Date: Mon, 6 Jan 2020 20:06:26 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: OK X-ESPOL: G4mESnwDm3pCpsG2KJpt5uD4pKW+V0ZQziqGqKFSnX9Yt7TJtdp2dWuTB/eRFELmMn8= X-Rspamd-Queue-Id: 47s3RG1fMZz429C X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.03 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[inbox.lv:s=30062014]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:194.152.32.83:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[multimedia@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[inbox.lv.dwl.dnswl.org : 127.0.5.1]; RCVD_COUNT_THREE(0.00)[4]; IP_SCORE(-0.93)[ipnet: 194.152.32.0/23(-4.72), asn: 12993(-0.02), country: LV(0.08)]; DKIM_TRACE(0.00)[inbox.lv:+]; DMARC_POLICY_ALLOW(-0.50)[inbox.lv,quarantine]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:12993, ipnet:194.152.32.0/23, country:LV]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[83.32.152.194.list.dnswl.org : 127.0.5.1] X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jan 2020 18:08:43 -0000 This time without HTML. Hi, I am not sure whom to address this request. It is ffmpeg and libvpx related. I am trying to encode 10-bit VP9 video using "profile 2" coding profile. But looks like FreeBSD package of libvpx is build without "--enable-vp9-highbitdepth" option. Can you please add "--enable-vp9-highbitdepth" build option to libvpx port? Thanks. P.S. Input file: Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default) ffmpeg CLI: ffmpeg -i ./cut.mkv -speed 4 -pass 1 -pix_fmt yuv420p10le -color_range tv -colorspace bt2020nc -color_primaries bt2020 -color_trc smpte2084 -profile:v 2 -c:v libvpx-vp9 -b:v 1024k -an -dn -sn -f webm /dev/null Error message: Incompatible pixel format 'yuv420p10le' for codec 'libvpx-vp9', auto-selecting format 'yuv420p' [libvpx-vp9 @ 0x804f0bd00] v1.8.2 [libvpx-vp9 @ 0x804f0bd00] Failed to initialize encoder: Invalid parameter [libvpx-vp9 @ 0x804f0bd00] Additional information: Profile > 1 not supported in this build configuration Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height Conversion failed! pkg info: libvpx-1.8.2 ffmpeg-4.2.1_22,1