Skip to content

Release/eagle#467

Merged
max-lvs merged 7 commits intolinuxdeepin:release/eaglefrom
Resurgamz:release/eagle
Apr 30, 2026
Merged

Release/eagle#467
max-lvs merged 7 commits intolinuxdeepin:release/eaglefrom
Resurgamz:release/eagle

Conversation

@Resurgamz
Copy link
Copy Markdown

@Resurgamz Resurgamz commented Apr 30, 2026

Summary by Sourcery

Standardize video output format selection to use webm as the default and honor configuration where supported.

Bug Fixes:

  • Ensure configured mp4 output format is applied when FFmpeg encoding is available, regardless of board performance.

Enhancements:

  • Simplify and unify video format selection logic, defaulting to webm (index 0) with mp4 as an alternative option (index 1).

zhangjiarui added 2 commits April 27, 2026 16:38
Unify video format selection logic across all devices. Change default
format from mp4 to webm for better compatibility.

统一所有设备的视频格式选择逻辑,将默认格式从 mp4 改为 webm 以提升兼容性。

Log: 修改默认录制视频格式为 webm
PMS: https://pms.uniontech.com/bug-view-358869.html
Influence: 新用户默认使用 webm 格式录制视频,用户仍可在设置中切换为 mp4。已有用户配置不受影响。
bump version

Log: bump version
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 30, 2026

CLA Assistant Lite bot:

如果你是以企业贡献者的身份进行提交,请联系我们签署企业贡献者许可协议
If you submit as corporate contributor, please contact us to sign our Corporate Contributor License Agreement

感谢您的提交,我们非常感谢。 像许多开源项目一样,在接受您的贡献之前,我们要求您签署我们的个人贡献者许可协议。 您只需发布与以下格式相同的评论即可签署个人贡献者许可协议
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Individual Contributor License Agreement before we can accept your contribution. You can sign the Individual Contributor License Agreement by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA.


提交邮箱中包含我们的合作伙伴,但您似乎并非合作伙伴的成员或对接人,请联系相关对接人将您添加至组织之中,或由其重新发起 Pull Request。
The commit email domain belongs to one of our partners, but it seems you are not yet a member of the current organization, please contact the contact person to add you to the organization or let them submit the Pull Request.

zhangjiarui seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request

@github-actions
Copy link
Copy Markdown

TAG Bot

TAG: 6.0.13
EXISTED: no
DISTRIBUTION: unstable

@deepin-ci-robot
Copy link
Copy Markdown

Hi @Resurgamz. Thanks for your PR.

I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Apr 30, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Standardizes video format selection to use webm as the default regardless of board performance, simplifies the configuration-dependent format choice, and aligns the settings UI list ordering with the new default/backup format semantics.

Flow diagram for runtime video format selection in videowidget

flowchart TD
    A[Start videowidget constructor] --> B[Check encodeEnv == FFmpeg_Env]
    B -->|No| C[Set m_videoFormat = webm]
    B -->|Yes| D[Check encExists]
    D -->|No| C
    D -->|Yes| E[Read formatIndex = option outsetting.outformat.vidformat]
    E -->|formatIndex == 1| F[Set m_videoFormat = mp4]
    E -->|formatIndex != 1| C
    C --> G[End]
    F --> G
Loading

Flow diagram for Settings init video format list population

flowchart TD
    A[Start Settings init] --> B[Check encodeEnv == FFmpeg_Env]
    B -->|No| H[videoFormatList << webm]
    B -->|Yes| C[Check encExists]
    C -->|No| D[videoFormatList << webm]
    D --> E[Set option outsetting.outformat.vidformat = 0]
    C -->|Yes| F[loadCameraConf]
    F --> G[videoFormatList << webm << mp4]
    H --> I[End]
    E --> I
    G --> I
Loading

File-Level Changes

Change Details Files
Refactor video format selection logic in the video widget to default to webm and honor the settings index only when FFmpeg encoding and encoder binary are available.
  • Remove low-performance board checks from determining the default video format.
  • Set webm as the default format when FFmpeg environment or encoder is unavailable.
  • When FFmpeg and encoder are available, read the configured format index (0 or 1) and map 0 to webm and 1 to mp4 explicitly.
  • Eliminate the previous conditional that forced webm on low-performance boards even when configuration chose otherwise.
src/src/videowidget.cpp
Simplify settings initialization so that the video format list order is fixed with webm as index 0 and mp4 as index 1, independent of board performance.
  • Remove low-performance board–dependent ordering of the video format list.
  • Initialize the video format list as [webm, mp4] when FFmpeg and encoder are available.
  • Retain the fallback case where only webm is available and ensure the stored setting index is 0.
src/src/Settings.cpp
Update packaging metadata for the Eagle release.
  • Append or modify the Debian changelog entry to reflect the new release.
debian/changelog

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • The previous special-casing for low-performance boards has been removed; if that constraint is still relevant, consider either preserving a guard (e.g., disallowing mp4 on low-performance boards) or explicitly documenting why it is now safe to honor the user setting there.
  • In videowidget and Settings, the video format index is assumed to be 0 or 1; it might be safer to clamp or validate the vidformat option value before using it so unexpected values don't silently map to the wrong format.
  • The literal format strings ("webm"/"mp4") and their index meanings are now duplicated across videowidget and Settings; consider centralizing this mapping (e.g., constants or an enum) to keep behavior consistent if formats change in the future.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The previous special-casing for low-performance boards has been removed; if that constraint is still relevant, consider either preserving a guard (e.g., disallowing mp4 on low-performance boards) or explicitly documenting why it is now safe to honor the user setting there.
- In videowidget and Settings, the video format index is assumed to be 0 or 1; it might be safer to clamp or validate the `vidformat` option value before using it so unexpected values don't silently map to the wrong format.
- The literal format strings ("webm"/"mp4") and their index meanings are now duplicated across `videowidget` and `Settings`; consider centralizing this mapping (e.g., constants or an enum) to keep behavior consistent if formats change in the future.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@deepin-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: max-lvs, Resurgamz

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@max-lvs max-lvs merged commit def69ea into linuxdeepin:release/eagle Apr 30, 2026
17 of 21 checks passed
@deepin-bot
Copy link
Copy Markdown
Contributor

deepin-bot Bot commented Apr 30, 2026

TAG Bot

Tag created successfully

📋 Tag Details
  • Tag Name: 6.0.13
  • Tag SHA: ab65a72cf0df09e852d1fc26fdb5d0e67d175ba2
  • Commit SHA: 2babbad995ab8efb8936ff53753637a57de446d0
  • Tag Message:
    Release deepin-camera 6.0.13
    
    
  • Tagger:
    • Name: Resurgamz
  • Distribution: unstable

@Resurgamz Resurgamz mentioned this pull request Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants