Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jan 2020 20:06:26 +0200
From:      Dima D <dima_bsd@inbox.lv>
To:        multimedia@FreeBSD.org
Subject:   ffmpeg and libvpx-vp9 10-bit encoding
Message-ID:  <e3ede409-9c25-765c-569f-94b91de4c459@inbox.lv>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e3ede409-9c25-765c-569f-94b91de4c459>