libavcodec/libsvtav1.c:438:70: error: too many arguments to function call, expected 2, have 3
Hello ffmpeg experts, I'm building ffmpeg(current git head) but get the following error, and then can't step up next... libavcodec/libsvtav1.c:438:70: error: too many arguments to function call, expected 2, have 3 438 | svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, svt_enc, &svt_enc->enc_params); my configuration option of ffmpeg: ./configure --prefix=${TARGET} --pkg-config-flags=--static --enable-gpl --enable-version3 --enable-nonfree \ --enable-libmp3lame --enable-libfdk-aac --enable-libvo-amrwbenc \ --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis --enable-libspeex \ --enable-libopus --enable-libgsm --enable-libtwolame --enable-libsoxr \ --enable-libmodplug --enable-libopenjpeg --enable-libwebp \ --enable-libtheora --enable-libx264 --enable-libopenh264 --enable-libx265 \ --enable-libxvid --enable-libvpx --enable-libxavs \ --enable-libfreetype --enable-libharfbuzz --enable-fontconfig --enable-libfribidi \ --enable-libass --enable-libbluray --enable-libvidstab \ --enable-libsnappy --enable-libzmq --enable-libzvbi \ --enable-libzimg --enable-libaom --enable-libdav1d --enable-libmysofa \ --enable-librubberband --enable-libshine \ --enable-libvmaf --enable-libsvtav1 --enable-libxml2 \ --enable-libplacebo I'm exporting following compiler flags: export LDFLAGS="-L${TARGET}/lib -lc++ -Wl,-rpath,/usr/local/lib" export CFLAGS="-I${TARGET}/include -lstdc++" Please help me!!
On Fri, Jan 31, 2025 at 18:21:44 +0900, 桃源老師 wrote:
I'm building ffmpeg(current git head) but get the following error, and then can't step up next...
libavcodec/libsvtav1.c:438:70: error: too many arguments to function call, expected 2, have 3 438 | svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, svt_enc, &svt_enc->enc_params);
The API of svtav1 changed recently: https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/988e930c1083ce518ead1d364e3... Until ffmpeg fixes the problem, you need to either use a slightly older version of svtav1, or patch ffmpeg with the patch included in that commit: https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/988e930c1083ce518ead1d364e3a4... Cheers, Moritz
On 2025-01-31 03:57 pm, Moritz Barsnick via ffmpeg-user wrote:
On Fri, Jan 31, 2025 at 18:21:44 +0900, 桃源老師 wrote:
I'm building ffmpeg(current git head) but get the following error, and then can't step up next...
libavcodec/libsvtav1.c:438:70: error: too many arguments to function call, expected 2, have 3 438 | svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, svt_enc, &svt_enc->enc_params); The API of svtav1 changed recently: https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/988e930c1083ce518ead1d364e3...
Until ffmpeg fixes the problem, you need to either use a slightly older version of svtav1, or patch ffmpeg with the patch included in that commit:
The hold-up is due to SVT-AV1: https://gitlab.com/AOMediaCodec/SVT-AV1/-/merge_requests/2355#note_230617198... Regards, Gyan
Hello Gyan-san,
2025/01/31 午後7:55、Gyan Doshi <ffmpeg@gyani.pro>のメール:
On 2025-01-31 03:57 pm, Moritz Barsnick via ffmpeg-user wrote:
On Fri, Jan 31, 2025 at 18:21:44 +0900, 桃源老師 wrote:
I'm building ffmpeg(current git head) but get the following error, and then can't step up next...
libavcodec/libsvtav1.c:438:70: error: too many arguments to function call, expected 2, have 3 438 | svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, svt_enc, &svt_enc->enc_params); The API of svtav1 changed recently: https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/988e930c1083ce518ead1d364e3...
Until ffmpeg fixes the problem, you need to either use a slightly older version of svtav1, or patch ffmpeg with the patch included in that commit:
The hold-up is due to SVT-AV1: https://gitlab.com/AOMediaCodec/SVT-AV1/-/merge_requests/2355#note_230617198...
It seems that the discussion is still on the way... Do you think I should not use the patch until the discussion would be end up? Best Regards, Kimio Miyamura
2025/02/01 午前0:39、桃源老師 <xanadu6291@dream.jp>のメール:
Hello Gyan-san,
2025/01/31 午後7:55、Gyan Doshi <ffmpeg@gyani.pro>のメール:
On 2025-01-31 03:57 pm, Moritz Barsnick via ffmpeg-user wrote:
On Fri, Jan 31, 2025 at 18:21:44 +0900, 桃源老師 wrote:
I'm building ffmpeg(current git head) but get the following error, and then can't step up next...
libavcodec/libsvtav1.c:438:70: error: too many arguments to function call, expected 2, have 3 438 | svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, svt_enc, &svt_enc->enc_params); The API of svtav1 changed recently: https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/988e930c1083ce518ead1d364e3...
Until ffmpeg fixes the problem, you need to either use a slightly older version of svtav1, or patch ffmpeg with the patch included in that commit:
The hold-up is due to SVT-AV1: https://gitlab.com/AOMediaCodec/SVT-AV1/-/merge_requests/2355#note_230617198...
It seems that the discussion is still on the way... Do you think I should not use the patch until the discussion would be end up?
The discussion seems to have ended. Since SVT-AV1 team says the fix *hopefully* released on Mid Feb, I decided to use older version of SVT-AV1. The version is "71d8659cf1436f0ea522903e258a11824447df3a", "Make av1_cospi_arr_s32_data static". Committed on Jan 4, 2025. As a side-note, I updated my ffmpeg compile guide which is written in Japanese contains above rollback. The URL is: https://wp.me/pf3IF8-2f Best Regards, Kimio Miyamura
Hello Moritz-san, Thank you for prompt reply...
2025/01/31 午後7:27、Moritz Barsnick via ffmpeg-user <ffmpeg-user@ffmpeg.org>のメール:
On Fri, Jan 31, 2025 at 18:21:44 +0900, 桃源老師 wrote:
I'm building ffmpeg(current git head) but get the following error, and then can't step up next...
libavcodec/libsvtav1.c:438:70: error: too many arguments to function call, expected 2, have 3 438 | svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, svt_enc, &svt_enc->enc_params);
The API of svtav1 changed recently: https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/988e930c1083ce518ead1d364e3...
Oh, that is the reason why I get error...
Until ffmpeg fixes the problem, you need to either use a slightly older version of svtav1, or patch ffmpeg with the patch included in that commit:
https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/988e930c1083ce518ead1d364e3a4...
Thank you, but Gyan-san seems to have some opinion for using this patch. Should I wait for end of the discussion between he and SVT-AV1 team? So make SVT-AV1 slightly older is better choice? Best Regards, Kimio Miyamura
participants (3)
-
Gyan Doshi -
Moritz Barsnick -
桃源老師