[FFmpeg-trac] #11523(ffmpeg:new): Conflicting requirements while encoding with SVTAV1
FFmpeg
trac at avcodec.org
Fri Mar 21 18:45:20 EET 2025
#11523: Conflicting requirements while encoding with SVTAV1
-------------------------------------+-------------------------------------
Reporter: Ilya Esin | Type: defect
Status: new | Priority: normal
Component: ffmpeg | Version: git-
Keywords: libsvtav1 | master
12bpp hdr10plus | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug: I'm getting warning "Incompatible pixel format
'yuv444p12le' for codec 'libsvtav1', auto-selecting format 'yuv420p10le'"
while trying to encode 12bpp video. The cruel part is following error
"Svt[error]: Instance 1: Profile 1 requires 4:4:4 color format"
How to reproduce:
{{{
ffmpeg -y -f lavfi -i anullsrc=channel_layout=mono:sample_rate=8000
-start_number 1 -r 25 -i DSC_%04d.jxl -shortest -pix_fmt yuv444p12le -c:v
libsvtav1 -crf 20 -svtav1-params profile=1:color-primaries=bt2020
:transfer-characteristics=bt2020-12:matrix-coefficients=bt2020-ncl:tune=0
-c:a aac -b:a 8k -movflags +faststart benchmark_4k_av1_crf20_12bpp.mp4
ffmpeg version N-118892-ge5d62e20c8-20250321 Copyright (c) 2000-2025 the
FFmpeg developers
built with gcc 14.2.0 (crosstool-NG 1.27.0.18_7458341)
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static
--pkg-config=pkg-config --cross-prefix=x86_64-ffbuild-linux-gnu-
--arch=x86_64 --target-os=linux --enable-version3 --disable-debug
--enable-iconv --enable-zlib --enable-libfreetype --enable-libfribidi
--enable-gmp --enable-libxml2 --enable-openssl --enable-lzma --enable-
fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl
--enable-libpulse --enable-libvmaf --enable-libxcb --enable-xlib --enable-
amf --enable-libaom --enable-libaribb24 --disable-avisynth --enable-
chromaprint --enable-libdav1d --disable-libdavs2 --disable-libdvdread
--disable-libdvdnav --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-
llvm --disable-frei0r --enable-libgme --enable-libkvazaar --enable-
libaribcaption --enable-libass --enable-libbluray --enable-libjxl
--enable-libmp3lame --enable-libopus --enable-librist --enable-libssh
--enable-libtheora --enable-libvpx --enable-libwebp --enable-libzmq
--enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg
--enable-libopenmpt --enable-librav1e --disable-librubberband --disable-
schannel --enable-sdl2 --enable-libsnappy --enable-libsoxr --enable-libsrt
--enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libdrm
--enable-vaapi --disable-libvidstab --enable-vulkan --enable-libshaderc
--enable-libplacebo --disable-libvvenc --disable-libx264 --disable-libx265
--disable-libxavs2 --disable-libxvid --enable-libzimg --enable-libzvbi
--extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-libs='-ldl
-lgomp' --extra-ldflags=-pthread --extra-ldexeflags=-pie --cc=x86_64
-ffbuild-linux-gnu-gcc --cxx=x86_64-ffbuild-linux-gnu-g++ --ar=x86_64
-ffbuild-linux-gnu-gcc-ar --ranlib=x86_64-ffbuild-linux-gnu-gcc-ranlib
--nm=x86_64-ffbuild-linux-gnu-gcc-nm --extra-version=20250321
libavutil 59. 60.100 / 59. 60.100
libavcodec 61. 33.102 / 61. 33.102
libavformat 61. 9.107 / 61. 9.107
libavdevice 61. 4.100 / 61. 4.100
libavfilter 10. 9.100 / 10. 9.100
libswscale 8. 13.103 / 8. 13.103
libswresample 5. 4.100 / 5. 4.100
[out @ 0x55c6cabd9440] The "sample_fmts" option is deprecated: set the
supported sample formats
[out @ 0x55c6cabd9440] The "all_channel_counts" option is deprecated:
accept all channel counts
Input #0, lavfi, from 'anullsrc=channel_layout=mono:sample_rate=8000':
Duration: N/A, start: 0.000000, bitrate: 64 kb/s
Stream #0:0: Audio: pcm_u8, 8000 Hz, mono, u8, 64 kb/s
Input #1, image2, from 'DSC_%04d.jxl':
Duration: 00:00:02.40, start: 0.000000, bitrate: N/A
Stream #1:0: Video: jpegxl (libjxl), rgb48le(12 bpc, pc,
gbr/bt709/iec61966-2-1), 4946x3280, 25 fps, 25 tbr, 25 tbn
Incompatible pixel format 'yuv444p12le' for codec 'libsvtav1', auto-
selecting format 'yuv420p10le'
Stream mapping:
Stream #1:0 -> #0:0 (jpegxl (libjxl) -> av1 (libsvtav1))
Stream #0:0 -> #0:1 (pcm_u8 (native) -> aac (native))
Press [q] to stop, [?] for help
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]: SVT-AV1 Encoder Lib v3.0.0-10-gaf1ccfc1
Svt[info]: SVT [build] : GCC 14.2.0 64 bit
Svt[info]: LIB Build date: Mar 7 2025 23:42:37
Svt[info]: -------------------------------------------
Svt[error]: Instance 1: Profile 1 requires 4:4:4 color format
[libsvtav1 @ 0x55c6cb0e8640] Error setting encoder parameters: bad
parameter (0x80001005)
[vost#0:0/libsvtav1 @ 0x55c6cb2a6000] [enc:libsvtav1 @ 0x55c6cabdf100]
Error while opening encoder - maybe incorrect parameters such as bit_rate,
rate, width or height.
[vf#0:0 @ 0x55c6cb0e9400] Error sending frames to consumers: Invalid
argument
[vf#0:0 @ 0x55c6cb0e9400] Task finished with error code: -22 (Invalid
argument)
[vf#0:0 @ 0x55c6cb0e9400] Terminating thread with return code -22 (Invalid
argument)
[vost#0:0/libsvtav1 @ 0x55c6cb2a6000] [enc:libsvtav1 @ 0x55c6cabdf100]
Could not open encoder before EOF
[vost#0:0/libsvtav1 @ 0x55c6cb2a6000] Task finished with error code: -22
(Invalid argument)
[vost#0:0/libsvtav1 @ 0x55c6cb2a6000] Terminating thread with return code
-22 (Invalid argument)
[out#0/mp4 @ 0x55c6cabde100] Nothing was written into output file, because
at least one of its streams received no packets.
frame= 0 fps=0.0 q=0.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A
[aac @ 0x55c6cb25d100] Qavg: 63853.320
Conversion failed!
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11523>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list