Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FFmpeg: How to convert vertical video with black sides, to video 16:9, with blurred background sides

Vertical video with blurred background sides

How to make this by using FFmpeg?

Example without FFmpeg:
Adobe After Effects
Sony Vegas Pro

like image 686
Andrey Avatar asked Jun 11 '15 19:06

Andrey


1 Answers

I solved!

ffmpeg -i input.mp4 -lavfi '[0:v]scale=ih*16/9:-1,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[bg][0:v]overlay=(W-w)/2:(H-h)/2,crop=h=iw*9/16' -vb 800K output.webm 

Input: https://www.youtube.com/watch?v=17uHCHfgs60
Output: http://www.youtube.com/watch?v=CgZsDLfzrTs

like image 169
Andrey Avatar answered Sep 22 '22 13:09

Andrey