Hello. I'm fairly new to FFMPEG for windows and I'm not sure how to get this done. I have 100 videos and I need to add 20pixel black borders to the top and bottom of each video. All videos are 1280x720. These borders must overlap the video so that the resolution remains the same. How could I run this command for all videos in a specific folder? Any help would be greatly appreciated.
+ Reply to Thread
Results 1 to 3 of 3
for %a in (*.*) do ffmpeg -i "%~a" -map 0 -vf "crop=w=1280:h=(720-40):x=0:y=20,pad=w=1280:h=720:x=0:y=20" -c:a copy -c:s copy "output_folder\%~a"
Thank you! Exactly what I wanted!