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

macOS camera recording produces empty 0-byte camera.mp4 while the live preview works

未关闭
#2,116 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
macos, rust

调研方向

首先跟踪摄像头编码器的初始化,以及录制日志中描述的帧尺寸验证。使用 macOS 摄像头录制重现该问题,然后验证传入的 1920x1080 帧是否得到一致处理,并确认完成的录制包含非空的 camera.mp4。

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

描述

bug

Cap version: 0.5.9 (latest)
macOS: 14.8.8
Camera: iphone 11 pro

Expected:
Camera track should be recorded.

Actual:
The preview works, Cap receives frames, but camera.mp4 is 0 bytes.

Relevant recording log:
Cap initializes the camera encoder at 1280x720, but frames arrive at 1920x1080:
Frame dimension mismatch, dropping frame to protect writer
expected_width=1280 expected_height=720
frame_width=1920 frame_height=1080

Then:
Failed to finish camera MP4 encoder: NotWriting

ARZOPA 08.24 PM — camera-missing.log
ARZOPA 10.38 PM — camera-missing.log
ARZOPA 10.39 PM — camera-missing.log

This happens consistently in multiple recordings.

主要语言
Rust
星标
22.8k
派生
2k
平均合并
10 小时 41 分钟
30 天内合并 PR
89

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

CapSoftware/Cap 的其他 Issue

查看 CapSoftware/Cap 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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