Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Feature]: Video Cropping support with fixed aspect ratio presets (remove letterbox/black bars)

未关闭
#830 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
csharp
领域
desktop

调研方向

Start by reading the existing image crop feature and the video processing entry points to understand how Filee presents previews and invokes FFmpeg. Add video frame cropping with the requested aspect ratio presets and orientation toggle, preserving audio where supported. The issue does not name files or tests; done means users can crop video dimensions to remove borders, with spatial cropping kept distinct from duration trimming.

由索引模型根据 Issue 内容生成。

描述

enhancement
What would you like Filee to do?

Add a spatial Video Cropping feature (similar to the existing image crop feature) that allows users to crop video dimensions and remove unwanted borders/black bars, with fixed aspect ratio presets (such as 16:9, 4:3, 1:1, 9:16) and orientation toggle (Landscape / Portrait).

Note: This is spatial cropping (frame dimensions), not trimming (video duration cut).

Why / when would you use it?

Use Case:
Many recorded, downloaded, or shared videos come with embedded black bars (letterboxing/pillarboxing) due to improper resolution matching. For instance, a 4:3 landscape video (e.g., 960x720) often gets wrapped inside a vertical 9:16 container (e.g., 720x1280) with huge black bars on top and bottom.

Current Friction / What gets in the way:
Currently, Filee has a great drag-and-drop workflow and image cropping, but there is no built-in way to crop video borders. Today, to fix this issue, I have to rely on external manual scripts (e.g., placing videos into an input/ folder, running an FFmpeg/Python script, and retrieving them from output/). This interrupts the fast, seamless offline workflow that Filee is so great at. Having this natively in Filee would save a lot of time.

Ideas for how it could work
  1. Crop Interface (similar to Image Crop):**

    • Provide a crop preview dialog when video processing is selected.
    • Fixed Aspect Ratio presets: 16:9, 4:3, 1:1, 9:16, 21:9.
    • Orientation switcher: Landscape / Portrait.
    • Unlike images, freeform crop is not strictly necessary; predefined aspect ratio boxes with an adjustable bounding box or center-crop would already cover 95% of use cases.
  2. Under the hood (FFmpeg integration):**

    • Apply FFmpeg's video filter: -vf "crop=out_w:out_h:x:y".
    • Keep audio stream untouched (-c:a copy) to maintain conversion speed and original audio quality.
    • (Optional / Advanced idea): A 1-click "Auto-detect Black Bars" option using FFmpeg's built-in cropdetect filter (e.g., cropdetect=24:2).
主要语言
C#
星标
3.6k
派生
192
平均合并
7 小时 12 分钟
30 天内合并 PR
344

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

KnifeLemon/Filee 的其他 Issue

查看 KnifeLemon/Filee 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。