0

I want to make a horizontal video get converted to vertical video using FFMPEG for automation purposes. I tried with this, which works for vertical to horizontal

    ffmpeg -i input.mp4 \
  -vf 'split[original][copy];[copy]scale=ih*16/9:-1,crop=h=iw*9/16,gblur=sigma=20[blurred];[blurred][original]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2' \
  output.mp4

And tried to change the "16/9" and "9/16" parameters backwards so it makes the reverse procedure, but i get an error.

I don't really need the blur thing, because i want to put some images on the black boxes that will result from doing this process.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.