Browse Source

fix: ffmpeg resize divisible by 2

HOME 1 year ago
parent
commit
8f8efdebed
1 changed files with 1 additions and 0 deletions
  1. 1 0
      BatchProcess/Program.cs

+ 1 - 0
BatchProcess/Program.cs

@@ -173,6 +173,7 @@ namespace BatchProcess
                         "-shortest",
                         
                         "-vf","scale=-1:480",
+                        "-vf","pad=ceil(iw/2)*2:ceil(ih/2)*2",
 
                         "-c:v","h264","-pix_fmt","yuv420p",
                         "-preset","placebo",