Stream quality problems with simple h264 encoder
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- cpp
调研方向
首先阅读 src/stream/video/SnpEncoderVaH264.cpp,并将其设置与 libva-utils 中的 H264 示例进行比较。在 VLC 中检查附加的编码流,并跟踪连续帧是如何进行编码和解码的。完成的标准是找出质量逐渐下降的原因,并记录或修正相关的编码器行为。
由索引模型根据 Issue 内容生成。
描述
I've written a simple h264 encoder using libva for a screen capture tool. The encoder is set up to create a single IDR frame with only P frames following. I've copied most of the code from the h264 example in libva-utils. I'm facing a problem with image quality of the encoded stream. Errors in the picture seem to accumulate over time and the visual quality deteriorates as more frames are encoded/decoded.
If i understand correctly, the quality should not get worse over time (as long as there are no transmission errors) - the encoder should know about the "reconstruction error" of individual frames and respect them when encoding another. The video I've attached shows a kind of "ghost picture" of past frames which gets more visible over time. I think I might be doing something wrong in my code, however I cannot find out.
The code can be found here:
https://github.com/martin19/snpserver/blob/main/src/stream/video/SnpEncoderVaH264.cpp
A dump of an encoded stream with QP set to constant value of 30 (can be viewed with VLC for example):
https://drive.google.com/file/d/1IdjtmxVxz6KTW8twdLvYodD7vrFhLU-a/view?usp=sharing
(..rgb components are swapped in the stream, so colors are not correct)
Can anyone please help here?
- 主要语言
- C
- 星标
- 244
- 派生
- 175
- 平均合并
- 9 天 7 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
intel/libva-utils 的其他 Issue
-
av1encode: reference_frames[2..7] left as surface 0 (memset only covers 8 bytes)可能已有人在做 @0z5a 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
intel/libva-utils#390 ·
-
难度 5/5 一周以上 新手友好度 35/100
intel/libva-utils#387 ·
-
难度 4/5 3-5 天 新手友好度 30/100
intel/libva-utils#378 · 6 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
intel/libva-utils#376 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
intel/libva-utils#374 ·
查看 intel/libva-utils 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
SanderMertens/flecs#2444 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 74/100
Cisco-Talos/clamav#1941 ·
维护者通常 2 天内回复
-
Status: Opened
难度 2/5 1-3 小时 新手友好度 68/100
espressif/esp-eth-drivers#201 ·
-
难度 1/5 1 小时以内 新手友好度 74/100
libsdl-org/SDL#16788 ·
维护者通常 1 天内回复