video – I need FFMPEG conversion code modification

[
            "ffmpeg", "-y", "-hwaccel", "cuda", "-hwaccel_output_format", "cuda",
            "-i", input_file, "-i", "logo_blue_rectangleS.png",
            "-filter_complex", "[0:v]scale_cuda=w=1920:h=1080:format=yuv420p:interp_algo=lanczos,hwdownload[base];[base][1:v]overlay=(main_w-overlay_w)-35:(main_h-overlay_h)-25:enable="between(t,0,99999)",fps=fps=30,format=yuv420p",
            "-c:v", "h264_nvenc", "-c:a", "copy", output_file
        ]

I have this code but the output result quality is really bad…

Ideally, I dont want to give a size/res, whatever the input video resolution is, output should be the same, but I could not manage that bit…
Whats wrong with this code? Why the output quality is so bad 🙁

Read more here: Source link