SVT-AV1 3.1.2 hangs on certain videos
I use SVT-AV1 (libsvtav1) in ffmpeg 8, and noticed that certain videos tend to hung up while transcoding. No errors, ffmpeg continues to work, but frame count doesn't increase and it may stay like this forever (saw it stay like this few days, untill I killed ffmpeg process).
While trying to isolate problem, I found out that problem reproduces only with certain videos.
I found this variables leading to hung up:
- preset 3
- fast-decode 1 or 2
- GOP = 2 x input file FPS (example: video 23,976fps, gop 48)
- platform Ryzen 9 7945HX (asm level on system : up to avx512icl)
vf scale=w=-2:h=360
Command I used:
ffmpeg -loglevel debug -i 6232e7b3-034c-4cda-b7a3-5593233c8c3d -y -acodec copy -vcodec libsvtav1 -vf scale=w=-2:h=360 -g 48 -svtav1-params fast-decode=2 -preset 3 test.mp4
Source video: https://drive.google.com/file/d/1DlGtLb5hoF08m9FQ4HZ_Yh2SOIpqow3v/view?usp=drive_link
SVT-AV1 info
Svt[info]: -------------------------------------------
Svt[info]: SVT [version]: SVT-AV1 Encoder Lib v3.1.0
Svt[info]: SVT [build] : GCC 13.3.0 64 bit
Svt[info]: LIB Build date: Oct 17 2025 00:15:54
Svt[info]: -------------------------------------------
Svt[info]: Level of Parallelism: 6
Svt[info]: Number of PPCS 305
Svt[info]: [asm level on system : up to avx512icl]
Svt[info]: [asm level selected : up to avx512icl]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile tier (auto) level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps denominator : 640 / 360 / 24000 / 1001
Svt[info]: SVT [config]: bit-depth / color format : 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct : 3 / VQ / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type : 48 / 32 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor / max bitrate (kbps) : capped CRF / 26 / 3317
Svt[info]: SVT [config]: AQ mode / Variance Boost strength / octile / curve : 2 / 2 / 6 / 0
Svt[info]: SVT [config]: sharpness / luminance-based QP bias : 0 / 0
Svt[info]: -------------------------------------------
ffmpeg logs (debug level)
[vf#0:0 @ 0x636682888b80] Clipping frame in rate conversion by 0.010979
[libdav1d @ 0x63668288aa00] Frame 3: size 3840x2160 upscaled 3840 render 3840x2160 subsample 2x2 bitdepth 8 tiles 4x8.
[libdav1d @ 0x63668288aa00] Frame 6: size 3840x2160 upscaled 3840 render 3840x2160 subsample 2x2 bitdepth 8 tiles 4x8.
[libdav1d @ 0x63668288aa00] Frame 5: size 3840x2160 upscaled 3840 render 3840x2160 subsample 2x2 bitdepth 8 tiles 4x8.
[mp4 @ 0x6366828459c0] Delay between the first packet and last packet in the muxing queue is 10020000 > 10000000: forcing output
Last message repeated 5 times
[vf#0:0 @ 0x636682888b80] Clipping frame in rate conversion by 0.003990
[mp4 @ 0x6366828459c0] Delay between the first packet and last packet in the muxing queue is 10020000 > 10000000: forcing output
Last message repeated 3 times
[libdav1d @ 0x63668288aa00] Frame 7: size 3840x2160 upscaled 3840 render 3840x2160 subsample 2x2 bitdepth 8 tiles 4x8.
[mp4 @ 0x6366828459c0] Delay between the first packet and last packet in the muxing queue is 10020000 > 10000000: forcing output
Last message repeated 1 times
[vf#0:0 @ 0x636682888b80] Clipping frame in rate conversion by 0.006981
[libdav1d @ 0x63668288aa00] Frame 12: size 3840x2160 upscaled 3840 render 3840x2160 subsample 2x2 bitdepth 8 tiles 4x8.
[libdav1d @ 0x63668288aa00] Frame 10: size 3840x2160 upscaled 3840 render 3840x2160 subsample 2x2 bitdepth 8 tiles 4x8.
[libdav1d @ 0x63668288aa00] Frame 9: size 3840x2160 upscaled 3840 render 3840x2160 subsample 2x2 bitdepth 8 tiles 4x8.
[mp4 @ 0x6366828459c0] Delay between the first packet and last packet in the muxing queue is 10020000 > 10000000: forcing output
Last message repeated 3 times
[libdav1d @ 0x63668288aa00] Frame 11: size 3840x2160 upscaled 3840 render 3840x2160 subsample 2x2 bitdepth 8 tiles 4x8.
[mp4 @ 0x6366828459c0] Delay between the first packet and last packet in the muxing queue is 10020000 > 10000000: forcing output
Last message repeated 1 times
[vf#0:0 @ 0x636682888b80] Clipping frame in rate conversion by 0.009972