Stream quality problems with simple h264 encoder
まだ誰も着手していません。
評価
- 難易度
- 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時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 1週間以上 初心者へのやさしさ 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
-
ecs_ptr_from_json does not free the buffer of a string longer than 256 bytes on two error pathsオープン
難易度 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 日以内に返信