Bug#1041541: ffmpeg: libsvtav1 encoding broken
On 2023-07-20 17:16:38 +0200, Wouter Verhelst wrote:
> Package: ffmpeg
> Version: 7:5.1.3-1
> Severity: normal
>
> Dear Maintainer,
>
> I ran the following on a bookworm machine:
>
> ffmpeg -i foo.mp4 -c:a libopus -c:v libsvtav1 -crf 35 -preset 8 -y foo.webm
>
> This proceeded to encode the video in AV1. However, when I tried the
> same on unstable, I received the following output:
>
> wouter@pc220518:~$ ffmpeg -i foo.mp4 -c:a libopus -c:v libsvtav1 -preset 8 -crf 35 -y foo.webm
> ffmpeg version 5.1.3-1 Copyright (c) 2000-2022 the FFmpeg developers
> built with gcc 12 (Debian 12.2.0-14)
> configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
> libavutil 57. 28.100 / 57. 28.100
> libavcodec 59. 37.100 / 59. 37.100
> libavformat 59. 27.100 / 59. 27.100
> libavdevice 59. 7.100 / 59. 7.100
> libavfilter 8. 44.100 / 8. 44.100
> libswscale 6. 7.100 / 6. 7.100
> libswresample 4. 7.100 / 4. 7.100
> libpostproc 56. 6.100 / 56. 6.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'foo.mp4':
> Metadata:
> major_brand : isom
> minor_version : 512
> compatible_brands: isomiso2avc1mp41
> title : Make the code work for you: Flutter Code Generation
> date : 2022-02-05
> encoder : Lavf58.45.100
> Duration: 00:38:59.68, start: 0.000000, bitrate: 564 kb/s
> Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 430 kb/s, 24.98 fps, 25 tbr, 12800 tbn (default)
> Metadata:
> handler_name : VideoHandler
> vendor_id : [0][0][0][0]
> Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 96000 Hz, mono, fltp, 125 kb/s (default)
> Metadata:
> handler_name : SoundHandler
> vendor_id : [0][0][0][0]
> Stream mapping:
> Stream #0:0 -> #0:0 (h264 (native) -> av1 (libsvtav1))
> Stream #0:1 -> #0:1 (aac (native) -> opus (libopus))
> Press [q] to stop, [?] for help
> [libopus @ 0x564c58b50d80] No bit rate set. Defaulting to 64000 bps.
> Svt[info]: -------------------------------------------
> Svt[info]: SVT [version]: SVT-AV1 Encoder Lib v1.6.0
> Svt[info]: SVT [build] : GCC 12.3.0 64 bit
> Svt[info]: -------------------------------------------
> Svt[error]: Instance 1: MinQpAllowed must be smaller than MaxQpAllowed
> Svt[error]: Instance 1 : Invalid use_qp_file. use_qp_file must be [0 - 1]
> [libsvtav1 @ 0x564c58b51d80] Error setting encoder parameters: bad parameter (0x80001005)
> 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
> [libopus @ 0x564c58b50d80] 1 frames left in the queue on closing
> Conversion failed!
>
> If any further information is required, please do not hesitate to let me
> know.
libsvtav1 broke its ABI without a transition. See #1041302.
Cheers
--
Sebastian Ramacher
Reply to: