Extend + scale a portrait video so the aspect ratio stays and the black borders become a blurry version of the video

前端 未结 1 878
暖寄归人
暖寄归人 2020-12-11 10:55

I have a 720 x 1280 pixels video. How do I extend and scale it to 1920 x 1080 such that the aspect ratio is being kept and the black borders are a blurry version of the vide

相关标签:
1条回答
  • 2020-12-11 11:25

    Use

    ffmpeg -i video720x1280.mp4
      -filter_complex
          "[0]scale=hd1080,setsar=1,boxblur=20:20[b];
           [0]scale=-1:1080[v];[b][v]overlay=(W-w)/2"   video1920x1080.mp4
    

    Adjust the two values in the boxblur filter for blur strength. Higher = more blurring.

    0 讨论(0)
提交回复
热议问题