question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to make vertical video with blurred background sides?

See original GitHub issue

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:5
  • Comments:7

github_iconTop GitHub Comments

15reactions
shanginncommented, Apr 27, 2020

I did it like this:

with VideoFileClip(video_path) as video:
    if video.aspect_ratio < 1.7:
        video.write_videofile(
            new_video_path,
            ffmpeg_params=['-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']
        )
0reactions
keikorocommented, Jan 13, 2022

Would anyone who commented or reacji’d on this issue create an example as suggested earlier? @shanginn, perhaps?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Create a Blurred Background for Vertical Videos
Go to Effects (on the bottom left side of your panel, you will see >> - that's where Effects are hiding). You'll have...
Read more >
How to Make Background Blur for Vertical Video - Clideo
Blur the background of a video online · Upload a video. Open Clideo's Video Resizer. · Edit the video. In the editor, select...
Read more >
How to Blur the Sides of a Portrait Vertical Video Using Capcut
How to Blur the Sides of a Portrait Vertical Video Using Capcut · Open Capcut. Tap on New Project. · From the toolbar...
Read more >
How to fix a vertical video and add blurred sides in VSDC for ...
Vertical video fix #1 – blurring its sides · Add your footage to the timeline. · Use the right mouse button to click...
Read more >
How to fill the lateral blanks of a vertical video (with blurred ...
Duplicate the video and put it on a layer on top of the old clip. Now you have two identical clips on top...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found