[FFmpeg-user] problem ffmpeg with cuda and scale

Michele Salerno mikysal78 at gmail.com
Tue Oct 15 23:25:24 EEST 2019


I don't speak English well I hope to be understood.
Hi to all users. :)

My hw is:
- CPU Core i7
- GPU Nvidia GTX 660 Ti
- RAM 32GB
My sw is:
- Debian Buster 64bit
- Driver nvidia packager manger and cuda toolkit

My /etc/modprobe.d/blacklist.conf
blacklist nouveau
blacklist nvidia-drm
options nouveau modeset-0

My script is:
#!/bin/bash
for i in *.mp4; do
    ffmpeg -hwaccel cuvid -c:v h264_cuvid -i "$i" -vf scale_npp=720:-1
-c:v h264_nvenc -preset slow "convert/$i";
done

i have this error:
AVFilterGraph @ 0x560380a8d6c0] No such filter: 'scale_npp'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!

if remove "-vf scale_npp=720:-1" it's ok.

I want the files in 720p, how can I do?

Thanks.

Michele

root at tux:~ # ffmpeg -h filter=scale_npp
ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --disable-decoder=amrnb --disable-decoder=libopenjpeg
--disable-libopencv --disable-outdev=sdl2 --disable-podpages
--disable-sndio --disable-stripping --enable-libaom --enable-avfilter
--enable-avresample --enable-gcrypt --disable-gnutls --enable-openssl
--enable-gpl --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libcdio --enable-libcodec2
--enable-libfdk-aac --enable-libfontconfig --enable-libfreetype
--enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc
--enable-libkvazaar --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-libpulse
--enable-librubberband --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libtesseract
--enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libx265 --enable-libzimg
--enable-libxvid --enable-libzvbi --enable-nonfree --enable-opencl
--enable-opengl --enable-postproc --enable-pthreads --enable-shared
--enable-version3 --enable-libwebp
--incdir=/usr/include/x86_64-linux-gnu
--libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --toolchain=hardened
--enable-frei0r --enable-chromaprint --enable-libx264
--enable-libiec61883 --enable-libdc1394 --enable-vaapi --enable-libmfx
--enable-libvmaf --disable-altivec
--shlibdir=/usr/lib/x86_64-linux-gnu
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Unknown filter 'scale_npp'.


More information about the ffmpeg-user mailing list