Inconsistent FPS during recording to mp4
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 一周以上
- 新手友好度
- 12/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
调研方向
The report covers Camera2Source with GenericStream in the Android library and gives no file name, test, or reproduction steps. Start by finding where the recorder and the video frame timestamps are handled, but expect to reproduce the drop on a device first. Done would mean a root cause for the intermittent fps drop, confirmed by a fix or a reproduction in the maintainer's own footage.
由索引模型根据 Issue 内容生成。
描述
Describe the bug
We have seen footage recorded have a transient bug which causes the FPS to drop while recording to an MP4 file. We are using h264 encoding w/ 1280x720p @ 30fps (android fps Range [30, 30]) w/ 4Mbps bitrate with AAC audio encoding @ 96Kbps bitrate. Normally, all the footage recorded follows the consistent 30fps setting, with ffprobe reporting ~29.82 fps or similar values. However, footage which have the bug present, will report an average fps from ffprobe of ~22fps or even as low as ~5 or ~6fps, which is below even the variable FPS range supported on our device (the lowest FPS range with a 30fps maximum is [7, 30]). This has become a problem because when footage is finished being recorded, the audio and video appear out of sync. For now, we have a process which detects footage with this bug, and simply trans-codes it to keep both tracks in sync by inserting duplicate frames. This makes the footage appear choppy or slowed, which is not ideal for our customers.
I know this is not a great description in terms of debugging, but we have not been able to reliably reproduce the problem yet. We are still trying, but currently we have only seen the issue on customer devices, and we cannot provide their footage as example. We are working to get example footage of our own, and to narrow down steps to reproduce the bug.
The devices which are recording the footage are all the same model of device, so this is not a device variation issue. The device runs AOSP version 9 (SDK 28).
Expected behavior
Recorded footage should maintain avg. fps @ 30 ([30, 30] on android).
Smartphone (please complete the following information):
- Library version: 2.5.5 & 2.6.0
- Device: Cammpro C8
- OS: Android 9
- Media server: nginx-rtmp
- Class used: GenericStream w/ Camera2Source.
- 主要语言
- Kotlin
- 星标
- 3k
- 派生
- 946
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 7
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pedroSG94/RootEncoder 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
pedroSG94/RootEncoder#2224 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
pedroSG94/RootEncoder#2213 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 43/100
pedroSG94/RootEncoder#2220 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
pedroSG94/RootEncoder#2207 · 1 个 reaction ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
pedroSG94/RootEncoder#2203 ·
维护者通常 2 天内回复
查看 pedroSG94/RootEncoder 的全部 Issue
相似的 Issue
-
index-request triaged
难度 1/5 1 小时以内 新手友好度 78/100
JetBrains/klibs-io#611 · 2 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 3 天内回复
-
afk-ok area:ci size:S
难度 2/5 1-3 小时 新手友好度 83/100
enorm-labs/event-junkie#4518 ·
维护者通常 1 天内回复
-
android:player
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复