Skip to content

[FEATURE] Add "Pillarbox Blur" Background for Fit/Letterbox Mode #685

@Kritika200520

Description

@Kritika200520

Feature description
Add a "Pillarbox Blur" background option when resizing videos using the "Fit" (letterboxing) mode. Instead of showing solid black bars in the empty space, it should display a scaled-up, blurred version of the original video playing in the background.

Problem this solves
When users resize a horizontal video (e.g., 16:9) to a vertical format like TikTok, Reels, or Shorts (9:16) using the "Fit" mode, the top and bottom of the video are filled with solid black bars. While this preserves the entire video, it looks outdated and isn't optimized for modern social media aesthetics.

Proposed solution
I would like to add a "Blur Background" toggle that appears when a user selects "Fit" mode. Technically, this can be achieved by updating the FFmpeg filter graph (likely inside ffmpeg.ts where build commands are generated) to use the split, scale, boxblur, and overlay complex filters.

Example logic:

  1. Split the input video into two streams.
  2. Scale Stream A to fill the target resolution and apply boxblur.
  3. Scale Stream B to fit the target resolution.
  4. Overlay Stream B on top of Stream A.

Alternatives considered
We could just let users choose a solid background color (e.g., white instead of black), but a blurred duplicate of the video is the industry standard for repurposing horizontal content for vertical feeds and looks much more professional.

Metadata

Metadata

Assignees

Labels

enhancementImprovement to existing functionalityfeatureNew feature requesttype:featureNew feature

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions