VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. 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.
    Quote Quote  
  2. Code:
    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"
    https://ffmpeg.org/ffmpeg-filters.html#crop
    https://ffmpeg.org/ffmpeg-filters.html#pad-1
    https://forum.videohelp.com/threads/392160-VapourSynth-usage-and-Handbrake-Integration
    Quote Quote  
  3. Thank you! Exactly what I wanted!
    Quote Quote  



Similar Threads