I'm adding overlay images to a video. and I'm trying to make the output very similar to the original video in order to get the best quality for example if the original video (like the one in the screenshot)Date Rate: 23296 kbpsTotal bitrate: 23613 kbps
My ffmpeg code will look like this:
for %%a in ("*.mp4") do C:\ffmpeg\ffmpeg.exe -threads 18 -i "%%a" -i Logo.png -filter_complex "overlay=main_w-overlay_w-40:40" -crf 23 -c:v libx264 -preset fast -profile:v high -b 15000k -maxrate 15000k -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low "LogoHD\%%~na.mp4"
Any suggestion to improve the output and keep it as similar to the original it will appreciate.