i’m trying convert video using this command in bat file
@echo off
ffmpeg -i "%~1" -vf "scale='if(gt(a,1),-2,1080):if(gt(a,1),1080,-2)',format=yuv420p" -c:v libx264 -crf 20 -preset fast -movflags +faststart -profile:v high -level 4.2 -r 60 -pix_fmt yuv420p -colorspace bt709 -c:a aac -b:a 192k -ac 2 -ar 48000 "%userprofile%Videosconverted%~n1.mp4"
and show result like this instead execute the ffmpeg
offffmpeg -i "puchimas.mkv" -vf "scale='if(gt(a,1),-2,1080):if(gt(a,1),1080,-2)',format=yuv420p" -c:v libx264 -crf 20 -preset fast -movflags +faststart -profile:v high -level 4.2 -r 60 -pix_fmt yuv420p -colorspace bt709 -c:a aac -b:a 192k -ac 2 -ar 48000 "C:UsersFutamiVideosconvertedpuchimas.mp4"