7.0.1-nvidia2204: no such filter scale_cuda
akshetpandey opened this issue · comments
root@809311c9143d:/# ffmpeg -version
ffmpeg version 7.0.1 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
configuration: --disable-debug --disable-doc --disable-ffplay --enable-cuda --enable-cuvid --enable-fontconfig --enable-gpl --enable-libaom --enable-libaribb24 --enable-libass --enable-libbluray --enable-libfdk_aac --enable-libfreetype --enable-libkvazaar --enable-libmp3lame --enable-libnpp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libsrt --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg --enable-libzmq --enable-nonfree --enable-nvenc --enable-openssl --enable-postproc --enable-shared --enable-small --enable-version3 --extra-cflags='-I/opt/ffmpeg/include -I/opt/ffmpeg/include/ffnvcodec -I/usr/local/cuda/include/' --extra-ldflags='-L/opt/ffmpeg/lib -L/usr/local/cuda/lib64 -L/usr/local/cuda/lib32/' --extra-libs=-ldl --extra-libs=-lpthread --prefix=/opt/ffmpeg
libavutil 59. 8.100 / 59. 8.100
libavcodec 61. 3.100 / 61. 3.100
libavformat 61. 1.100 / 61. 1.100
libavdevice 61. 1.100 / 61. 1.100
libavfilter 10. 1.100 / 10. 1.100
libswscale 8. 1.100 / 8. 1.100
libswresample 5. 1.100 / 5. 1.100
libpostproc 58. 1.100 / 58. 1.100
ffmpeg -hwaccel cuda -hwaccel_output_format cuda -extra_hw_frames 18 -i video.mp4 -vf "scale_cuda=w=1080:h=-2:interp_algo=lanczos:force_original_aspect_ratio=decrease:force_divisible_by=2:passthrough=0" -c:v h264_nvenc -b:v 5M -maxrate:v 5M -bufsize:v 10M -c:a aac -ac:a 2 -ar:a 48000 -b:a 128k video1080p.mp4
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5642a8029cc0] Unknown cover type: 0x1.
[AVFilterGraph @ 0x5642a8042140] No such filter: 'scale_cuda'
[vost#0:0/h264_nvenc @ 0x5642a8041540] Error initializing a simple filtergraph
Error opening output file video1080p.mp4.
Error opening output files: Filter not found
maybe is better use scale_npp and transpose_npp
That requires --enable-cuda-nvcc
I use this version and works fine using cuda or npp