ffmpeg -i “videoinput” -loop 1 -i “image.png” -pix_fmt yuv420p -t 00:04:38.470 -c:v h264_nvenc -filter_complex “[1:v]fade=in:st=0:d=5,fade=out:st=30:d=5,scale=80:40[over2];[0:v][over2]overlay=10:10” -c:v h264_nvenc -map 0:v -map 0:a -y output.mp4
This runs on my cpu i think because i have to add -loop 1 for the image input in order to get fade effects. Without the loop i get no overlay (at all).
ffmpeg -i “videoinput” -i “image.png” -pix_fmt yuv420p -t 00:04:38.470 -c:v h264_nvenc -filter_complex “[1:v]scale=80:40[over2];[0:v][over2]overlay=10:10” -c:v h264_nvenc -map 0:v -map 0:a -y output.mp4
This runs on my gpu and the overlay is displayed for the entire video duration.
Is there a way to get the overlay fade effect to run on the gpu?
Drawtext seems to work fine with fading in and out on the gpu but it uses way different mechanics.