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:
- Split the input video into two streams.
- Scale Stream A to fill the target resolution and apply
boxblur.
- Scale Stream B to fit the target resolution.
- 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.
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.tswhere build commands are generated) to use thesplit,scale,boxblur, andoverlaycomplex filters.Example logic:
boxblur.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.