Il giorno mar 15 ott 2019 alle ore 23:33 Dennis Mungai <[email protected]> ha scritto: > > On Tue, 15 Oct 2019 at 23:47, Carl Eugen Hoyos <[email protected]> wrote: > > > > Am Di., 15. Okt. 2019 um 22:25 Uhr schrieb Michele Salerno > > <[email protected]>: > > > > > ffmpeg version 4.1.4 Copyright (c) 2000-2019 the FFmpeg developers > > > > This looks old. > > > > Carl Eugen > > And secondly, if you want the scale_npp filter, you must compile > FFmpeg from source with --enable-cuda-nvcc option passed to the > ./configure script. Note that the CUDA SDK must be installed on the > system you're building and running FFmpeg on. > > Since you have nvenc present and enabled, you should be able to use > the scale_cuda filter, yadif_cuda, thumbnail_cuda and hwupload_cuda > filters respectively as they're dependent on the ffnvcodec headers > package needed to enable the NVENC feature set. > > For usage, see: > > ffmpeg -h filter=scale_cuda > Unknown filter 'scale_cuda'.
> So with your command, substitute scale_npp with scale_cuda as shown: > > #!/bin/bash > for i in *.mp4; do > ffmpeg -threads 8 -hwaccel nvdec -i "$i" -vf scale_cuda=720:-1 > -c:v h264_nvenc -preset slow "convert/$i"; > done > > NVDEC should be available on your platform as ffmpeg was configured > with the aforementioned ffnvcodec header package. > Note the thread count limit I've added to the command above, as nvdec > will warn you on high thread counts exceeding ~16. > thanks. _______________________________________________ ffmpeg-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
