-
Notifications
You must be signed in to change notification settings - Fork 800
Description
I have CUDA 12.8 installed and latest build of VMAF and ffmpeg from source on WSL Ubuntu 22.04
I use the following command
ffmpeg -hwaccel cuda -hwaccel_output_format cuda -codec:v av1_cuvid -i test1.y4m -hwaccel cuda -hwaccel_output_fo rmat cuda -codec:v av1_cuvid -i output.mp4 -filter_complex " [0:v]scale_cuda=format=yuv420p[dis]; \ [1:v]scale_cuda=format=yuv420p[ref]; \ [dis][ref]libvmaf_cuda=log_fmt=json:log_path=output.json " -f null -
and i get the following error:
ffmpeg -hwaccel cuda -hwaccel_output_format cuda -codec:v av1_cuvid -i test1.y4m -hwaccel cuda -hwaccel_output_fo
rmat cuda -codec:v av1_cuvid -i output.mp4 -filter_complex "
[0:v]scale_cuda=format=yuv420p[dis];
[1:v]scale_cuda=format=yuv420p[ref];
[dis][ref]libvmaf_cuda=log_fmt=json:log_path=output.json
" -f null -
ffmpeg version N-119165-gf3f1a48a07 Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
configuration: --enable-nonfree --enable-cuda-nvcc --enable-libnpp --extra-cflags=-I/usr/local/cuda-12.8/include --extra-ldflags=-L/usr/local/cuda-12.8/lib64 --enable-gpl --enable-gnutls --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nvenc --enable-libvmaf --enable-version3
libavutil 60. 1.100 / 60. 1.100
libavcodec 62. 0.101 / 62. 0.101
libavformat 62. 0.100 / 62. 0.100
libavdevice 62. 0.100 / 62. 0.100
libavfilter 11. 0.100 / 11. 0.100
libswscale 9. 0.100 / 9. 0.100
libswresample 6. 0.100 / 6. 0.100
libpostproc 59. 0.100 / 59. 0.100
Input #0, yuv4mpegpipe, from 'test1.y4m':
Duration: 00:00:10.08, start: 0.000000, bitrate: 552962 kb/s
Stream #0:0: Video: av1 (libaom-av1), yuv420p(progressive), 1280x720, SAR 1:1 DAR 16:9, 50 fps, 50 tbr, 50 tbn
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomav01iso2mp41
encoder : Lavf62.0.100
Duration: 00:00:10.08, start: 0.000000, bitrate: 5209 kb/s
Stream #1:00x1: Video: av1 (libaom-av1) (Main) (av01 / 0x31307661), yuv420p(tv, progressive), 1280x720 [SAR 1:1 DAR 16:9], 5206 kb/s, 50 fps, 50 tbr, 12800 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
encoder : Lavc62.0.101 av1_nvenc
Stream mapping:
Stream #0:0 (av1_cuvid) -> scale_cuda:default
Stream #1:0 (av1_cuvid) -> scale_cuda:default
libvmaf_cuda:default -> Stream #0:0 (wrapped_avframe)
Press [q] to stop, [?] for help
[av1_cuvid @ 0x55a0c0f482c0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed -> CUDA_ERROR_UNKNOWN: unknown error
[vist#0:0/av1 @ 0x55a0c0f35ec0] [dec:av1_cuvid @ 0x55a0c0f47700] Error submitting packet to decoder: Generic error in an external library
[av1_cuvid @ 0x55a0c0f482c0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed -> CUDA_ERROR_UNKNOWN: unknown error
[vist#0:0/av1 @ 0x55a0c0f35ec0] [dec:av1_cuvid @ 0x55a0c0f47700] Error submitting packet to decoder: Generic error in an external library
[av1_cuvid @ 0x55a0c0f482c0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed -> CUDA_ERROR_UNKNOWN: unknown error
[vist#0:0/av1 @ 0x55a0c0f35ec0] [dec:av1_cuvid @ 0x55a0c0f47700] Error submitting packet to decoder: Generic error in an external library
.....................................................
[av1_cuvid @ 0x55a0c0f482c0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed -> CUDA_ERROR_UNKNOWN: unknown error
[vist#0:0/av1 @ 0x55a0c0f35ec0] [dec:av1_cuvid @ 0x55a0c0f47700] Error submitting packet to decoder: Generic error in an external library
[av1_cuvid @ 0x55a0c0f482c0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed -> CUDA_ERROR_UNKNOWN: unknown error
[vist#0:0/av1 @ 0x55a0c0f35ec0] [dec:av1_cuvid @ 0x55a0c0f47700] Error submitting packet to decoder: Generic error in an external library
[av1_cuvid @ 0x55a0c0f482c0] ctx->cvdl->cuvidParseVideoData(ctx->cuparser, &cupkt) failed -> CUDA_ERROR_UNKNOWN: unknown error
[vist#0:0/av1 @ 0x55a0c0f35ec0] [dec:av1_cuvid @ 0x55a0c0f47700] Error submitting packet to decoder: Generic error in an external library
[vist#0:0/av1 @ 0x55a0c0f35ec0] [dec:av1_cuvid @ 0x55a0c0f47700] Decode error rate 1 exceeds maximum 0.666667
[vist#0:0/av1 @ 0x55a0c0f35ec0] [dec:av1_cuvid @ 0x55a0c0f47700] Task finished with error code: -1145393733 (Error number -1145393733 occurred)
[vist#0:0/av1 @ 0x55a0c0f35ec0] [dec:av1_cuvid @ 0x55a0c0f47700] Terminating thread with return code -1145393733 (Error number -1145393733 occurred)
[graph 0 input from stream 0:0 @ 0x7fd324005e40] Setting BufferSourceContext.pix_fmt to a HW format requires hw_frames_ctx to be non-NULL!
[fc#0 @ 0x55a0c0f2ee00] Error reinitializing filters!
[fc#0 @ 0x55a0c0f2ee00] Task finished with error code: -22 (Invalid argument)
[fc#0 @ 0x55a0c0f2ee00] Terminating thread with return code -22 (Invalid argument)
[vost#0:0/wrapped_avframe @ 0x55a0c0f46040] [enc:wrapped_avframe @ 0x55a0c0f46940] Could not open encoder before EOF
[vost#0:0/wrapped_avframe @ 0x55a0c0f46040] Task finished with error code: -22 (Invalid argument)
[vost#0:0/wrapped_avframe @ 0x55a0c0f46040] Terminating thread with return code -22 (Invalid argument)
[out#0/null @ 0x55a0c0f45640] 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
Conversion failed!